AccelStepperI2C  v0.2.2
I2C wrapper (and a bit more) for the AccelStepper Arduino library
I2Cwrapper.h File Reference

A helper class for the AccelStepperI2C and related libraries. More...

Detailed Description

A helper class for the AccelStepperI2C and related libraries.

Author

Copyright (c) 2022 juh

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.

Todo:

Enhance diagnostics with a self-diagnosing function to determine the optimal/minimal I2Cdelay in a given master-slave setup.

AccelStepperI2C and ServoI2C should be derived from a common base class, atm there's some unhealthy copy and pasteimplemented with I2Cwrapper, but with client instead of inheritance relation.

Classes

class  I2Cwrapper
 A helper class for the AccelStepperI2C and related libraries. More...
 

Variables

const uint16_t maxBufDefault = 20
 
const unsigned long I2CdefaultDelay = 10
 
const uint8_t resetCmd = 241
 
const uint8_t changeI2CaddressCmd = 242
 
const uint8_t setInterruptPinCmd = 243
 
const uint8_t clearInterruptCmd = 244
 
const uint8_t clearInterruptResult = 1
 
const uint8_t getVersionCmd = 245
 
const uint8_t getVersionResult = 4
 
const uint8_t interruptReason_none = 0
 You should not encounter this, as you don't want to be interrupted without a reason... More...
 

Variable Documentation

◆ changeI2CaddressCmd

const uint8_t changeI2CaddressCmd = 242

◆ clearInterruptCmd

const uint8_t clearInterruptCmd = 244

◆ clearInterruptResult

const uint8_t clearInterruptResult = 1

◆ getVersionCmd

const uint8_t getVersionCmd = 245

◆ getVersionResult

const uint8_t getVersionResult = 4

◆ I2CdefaultDelay

const unsigned long I2CdefaultDelay = 10

◆ maxBufDefault

const uint16_t maxBufDefault = 20

◆ resetCmd

const uint8_t resetCmd = 241

◆ setInterruptPinCmd

const uint8_t setInterruptPinCmd = 243