Fix for Tensduino

This commit is contained in:
Renzo Mischianti 2019-09-13 16:02:23 +02:00
parent 47b017b6d0
commit 2cc745328c
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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