|
|
@ -44,6 +44,9 @@ private: // These private functions are not available to Arduino sketches.
|
|
|
|
// If you need to read or write directly to registers, consider
|
|
|
|
// If you need to read or write directly to registers, consider
|
|
|
|
// putting the writeByte, readByte functions in the public section
|
|
|
|
// putting the writeByte, readByte functions in the public section
|
|
|
|
uint8_t deviceAddress; // I2C Address of SX1509
|
|
|
|
uint8_t deviceAddress; // I2C Address of SX1509
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unsigned int pinData; // used for the keyboardio hacks to do fewer i2c calls
|
|
|
|
|
|
|
|
|
|
|
|
// Pin definitions:
|
|
|
|
// Pin definitions:
|
|
|
|
byte pinInterrupt;
|
|
|
|
byte pinInterrupt;
|
|
|
|
byte pinOscillator;
|
|
|
|
byte pinOscillator;
|
|
|
@ -134,6 +137,10 @@ public:
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
byte readPin(byte pin);
|
|
|
|
byte readPin(byte pin);
|
|
|
|
byte rawReadPin(byte pin);
|
|
|
|
byte rawReadPin(byte pin);
|
|
|
|
|
|
|
|
void fetchPinStates(void);
|
|
|
|
|
|
|
|
void sendPinStates(void);
|
|
|
|
|
|
|
|
byte readPrefetchedPin(byte pin);
|
|
|
|
|
|
|
|
void updatePinState(byte pin, byte highLow);
|
|
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// ledDriverInit(byte pin, byte freq, bool log): This function initializes LED
|
|
|
|
// ledDriverInit(byte pin, byte freq, bool log): This function initializes LED
|
|
|
|