mirror of
https://github.com/xreef/PCF8574_library.git
synced 2024-08-30 18:12:18 +00:00
Fix for Tensduino
This commit is contained in:
parent
47b017b6d0
commit
2cc745328c
@ -53,7 +53,7 @@ PCF8574::PCF8574(uint8_t address, uint8_t interruptPin, void (*interruptFunctio
|
||||
_usingInterrupt = true;
|
||||
};
|
||||
|
||||
#if !defined(__AVR) && !defined(__STM32F1__)
|
||||
#if !defined(__AVR) && !defined(__STM32F1__) && !defined(TEENSYDUINO)
|
||||
/**
|
||||
* Constructor
|
||||
* @param address: i2c address
|
||||
@ -156,7 +156,7 @@ PCF8574::PCF8574(uint8_t address, uint8_t interruptPin, void (*interruptFunctio
|
||||
* wake up i2c controller
|
||||
*/
|
||||
void PCF8574::begin(){
|
||||
#if !defined(__AVR) && !defined(__STM32F1__)
|
||||
#if !defined(__AVR) && !defined(__STM32F1__) && !defined(TEENSYDUINO)
|
||||
_wire->begin(_sda, _scl);
|
||||
#else
|
||||
// Default pin for AVR some problem on software emulation
|
||||
|
@ -83,7 +83,7 @@ public:
|
||||
PCF8574(uint8_t address);
|
||||
PCF8574(uint8_t address, uint8_t interruptPin, void (*interruptFunction)() );
|
||||
|
||||
#if !defined(__AVR) && !defined(__STM32F1__)
|
||||
#if !defined(__AVR) && !defined(__STM32F1__) && !defined(TEENSYDUINO)
|
||||
PCF8574(uint8_t address, uint8_t sda, uint8_t scl);
|
||||
PCF8574(uint8_t address, uint8_t sda, uint8_t scl, uint8_t interruptPin, void (*interruptFunction)());
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user