diff --git a/PCF8575.cpp b/PCF8575.cpp index 24058fb..3f5e694 100644 --- a/PCF8575.cpp +++ b/PCF8575.cpp @@ -53,7 +53,7 @@ PCF8575::PCF8575(uint8_t address, uint8_t interruptPin, void (*interruptFunctio _usingInterrupt = true; }; -#if !defined(__AVR) && !defined(ARDUINO_ARCH_SAMD) && !defined(TEENSYDUINO) +#if !defined(__AVR) && !defined(ARDUINO_ARCH_SAMD) && !defined(TEENSYDUINO) && !defined(ARDUINO_ARCH_RENESAS) /** * Constructor * @param address: i2c address @@ -90,7 +90,7 @@ PCF8575::PCF8575(uint8_t address, uint8_t interruptPin, void (*interruptFunctio }; #endif -#if defined(ESP32) || defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_ARCH_STM32) +#if defined(ESP32) || defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_ARCH_STM32) || defined(ARDUINO_ARCH_RENESAS) /** * Constructor * @param address: i2c address @@ -158,7 +158,7 @@ PCF8575::PCF8575(uint8_t address, uint8_t interruptPin, void (*interruptFunctio * wake up i2c controller */ void PCF8575::begin(){ -#if !defined(__AVR) && !defined(ARDUINO_ARCH_SAMD) && !defined(TEENSYDUINO) +#if !defined(__AVR) && !defined(ARDUINO_ARCH_SAMD) && !defined(TEENSYDUINO) && !defined(ARDUINO_ARCH_RENESAS) DEBUG_PRINT(F("begin(sda, scl) -> "));DEBUG_PRINT(_sda);DEBUG_PRINT(F(" "));DEBUG_PRINTLN(_scl); // _wire->begin(_sda, _scl); #ifdef ARDUINO_ARCH_STM32 diff --git a/PCF8575.h b/PCF8575.h index ba759ce..af9c65b 100644 --- a/PCF8575.h +++ b/PCF8575.h @@ -117,12 +117,12 @@ class PCF8575 { PCF8575(uint8_t address); PCF8575(uint8_t address, uint8_t interruptPin, void (*interruptFunction)() ); -#if !defined(__AVR) && !defined(ARDUINO_ARCH_SAMD) && !defined(TEENSYDUINO) +#if !defined(__AVR) && !defined(ARDUINO_ARCH_SAMD) && !defined(TEENSYDUINO) && !defined(ARDUINO_ARCH_RENESAS) PCF8575(uint8_t address, int sda, int scl); PCF8575(uint8_t address, int sda, int scl, uint8_t interruptPin, void (*interruptFunction)()); #endif -#if defined(ESP32) || defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_ARCH_STM32) +#if defined(ESP32) || defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_ARCH_STM32) || defined(ARDUINO_ARCH_RENESAS) ///// changes for second i2c bus PCF8575(TwoWire *pWire, uint8_t address); PCF8575(TwoWire *pWire, uint8_t address, uint8_t interruptPin, void (*interruptFunction)() ); diff --git a/README.md b/README.md index ac2a12d..eb8a74b 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Library to use i2c analog IC with arduino and esp8266. Can read and write digital value with only 2 wire (perfect for ESP-01). + - 10/07/2023: v1.1.1 Add support for Arduino UNO R4 - 16/02/2023: v1.1.0 - Fix STM32 support and add support for Raspberry Pi Pico and other rp2040 boards - Add support for custom SERCOM interface of Arduino SAMD devices. Force SDA SCL to use GPIO numeration for STM32 bug (https://www.mischianti.org/forums/topic/compatible-with-stm32duino/). diff --git a/library.json b/library.json index aff497e..d2cbb42 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "PCF8575 library", - "version": "1.1.0", + "version": "1.1.1", "keywords": "digital, i2c, encoder, expander, pcf8575, pcf8575a, esp32, esp8266, stm32, SAMD, Arduino, wire, Raspberry, rp2040", "description": "PCF8575 library. i2c digital expander for i2c digital expander for Arduino, Raspberry Pi Pico and rp2040 boards, esp32, SMT32 and ESP8266. Can read write digital values with only 2 wire. Very simple to use and encoder support.", "homepage": "https://www.mischianti.org/2019/07/22/pcf8575-i2c-16-bit-digital-i-o-expander/", diff --git a/library.properties b/library.properties index 2731c7b..b848e10 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=PCF8575 library -version=1.1.0 +version=1.1.1 author=Renzo Mischianti maintainer=Renzo Mischianti sentence=PCF8575, library for Arduino, Raspberry Pi Pico and rp2040 boards, esp32, SMT32 and ESP8266.