switch deviceAddress to the Wire library's preferred data type

pull/18/head
Jesse Vincent 10 years ago
parent c098e7cc32
commit 80c403aa17

@ -31,7 +31,7 @@
sx1509Class::sx1509Class(byte address, byte resetPin, byte interruptPin, byte oscillatorPin)
{
// Store the received parameters into member variables
deviceAddress = address;
deviceAddress = (uint8_t)address;
pinInterrupt = interruptPin;
pinOscillator = oscillatorPin;
pinReset = resetPin;

@ -43,7 +43,7 @@ class sx1509Class
private: // These private functions are not available to Arduino sketches.
// If you need to read or write directly to registers, consider
// putting the writeByte, readByte functions in the public section
byte deviceAddress; // I2C Address of SX1509
uint8_t deviceAddress; // I2C Address of SX1509
// Pin definitions:
byte pinInterrupt;
byte pinOscillator;

Loading…
Cancel
Save