mirror of
https://github.com/xreef/PCF8574_library.git
synced 2024-08-30 18:12:18 +00:00
Add the possibility to insert address at begin()
This commit is contained in:
parent
dac17ed3bc
commit
fb05aecc88
@ -181,6 +181,12 @@ PCF8574::PCF8574(uint8_t address, uint8_t interruptPin, void (*interruptFunctio
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool PCF8574::begin(uint8_t address){
|
||||||
|
_address = address;
|
||||||
|
return PCF8574::begin();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wake up i2c controller
|
* wake up i2c controller
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* PCF8574 GPIO Port Expand
|
* PCF8574 GPIO Port Expand
|
||||||
*
|
*
|
||||||
* AUTHOR: Renzo Mischianti
|
* AUTHOR: Renzo Mischianti
|
||||||
* VERSION: 2.3.6
|
* VERSION: 2.3.7
|
||||||
*
|
*
|
||||||
* https://www.mischianti.org/2019/01/02/pcf8574-i2c-digital-i-o-expander-fast-easy-usage/
|
* https://www.mischianti.org/2019/01/02/pcf8574-i2c-digital-i-o-expander-fast-easy-usage/
|
||||||
*
|
*
|
||||||
@ -125,6 +125,7 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool begin();
|
bool begin();
|
||||||
|
bool begin(uint8_t address);
|
||||||
void pinMode(uint8_t pin, uint8_t mode, uint8_t output_start = HIGH);
|
void pinMode(uint8_t pin, uint8_t mode, uint8_t output_start = HIGH);
|
||||||
|
|
||||||
void encoder(uint8_t pinA, uint8_t pinB);
|
void encoder(uint8_t pinA, uint8_t pinB);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* PCF8574 GPIO Port Expand
|
* PCF8574 GPIO Port Expand
|
||||||
*
|
*
|
||||||
* AUTHOR: Renzo Mischianti
|
* AUTHOR: Renzo Mischianti
|
||||||
* VERSION: 2.3.6
|
* VERSION: 2.3.7
|
||||||
*
|
*
|
||||||
* https://www.mischianti.org/2019/01/02/pcf8574-i2c-digital-i-o-expander-fast-easy-usage/
|
* https://www.mischianti.org/2019/01/02/pcf8574-i2c-digital-i-o-expander-fast-easy-usage/
|
||||||
*
|
*
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#### If you need more pins [here](https://www.mischianti.org/2019/07/22/pcf8575-i2c-16-bit-digital-i-o-expander/) you can find the pcf8575 16bit version of the IC.
|
#### If you need more pins [here](https://www.mischianti.org/2019/07/22/pcf8575-i2c-16-bit-digital-i-o-expander/) you can find the pcf8575 16bit version of the IC.
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
- 01/02/2024: v2.3.7 Add the possibility to insert address at begin()
|
||||||
- 10/07/2023: v2.3.6 Support for Arduino UNO R4
|
- 10/07/2023: v2.3.6 Support for Arduino UNO R4
|
||||||
- 08/02/2023: v2.3.5 Fix STM32 support and add support for Raspberry Pi Pico and other rp2040 boards
|
- 08/02/2023: v2.3.5 Fix STM32 support and add support for Raspberry Pi Pico and other rp2040 boards
|
||||||
- 10/08/2022: v2.3.4 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/).
|
- 10/08/2022: v2.3.4 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/).
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "PCF8574 library",
|
"name": "PCF8574 library",
|
||||||
"version": "2.3.6",
|
"version": "2.3.7",
|
||||||
"keywords": "digital, i2c, encoder, expander, pcf8574, pcf8574a, esp32, esp8266, stm32, SAMD, Arduino, wire, rp2040, Raspberry",
|
"keywords": "digital, i2c, encoder, expander, pcf8574, pcf8574a, esp32, esp8266, stm32, SAMD, Arduino, wire, rp2040, Raspberry",
|
||||||
"description": "Most starred PCF8574 library. 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.",
|
"description": "Most starred PCF8574 library. 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/category/my-libraries/pcf8574/",
|
"homepage": "https://www.mischianti.org/category/my-libraries/pcf8574/",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name=PCF8574 library
|
name=PCF8574 library
|
||||||
version=2.3.6
|
version=2.3.7
|
||||||
author=Renzo Mischianti <renzo.mischianti@gmail.com>
|
author=Renzo Mischianti <renzo.mischianti@gmail.com>
|
||||||
maintainer=Renzo Mischianti <renzo.mischianti@gmail.com>
|
maintainer=Renzo Mischianti <renzo.mischianti@gmail.com>
|
||||||
sentence=Most starred PCF8574 library for Arduino (standard and SAMD), Raspberry Pi Pico and rp2040 boards, ESP8266, smt32 and esp32
|
sentence=Most starred PCF8574 library for Arduino (standard and SAMD), Raspberry Pi Pico and rp2040 boards, ESP8266, smt32 and esp32
|
||||||
|
Loading…
Reference in New Issue
Block a user