diff --git a/library.properties b/library.properties index f2bd877..883a6dc 100644 --- a/library.properties +++ b/library.properties @@ -6,5 +6,5 @@ sentence=Arduino Library for the Atmel/Microchip ECC508 and ECC608 crypto chips paragraph= category=Communication url=https://github.com/arduino-libraries/ArduinoECCX08 -architectures=samd,megaavr,mbed,mbed_nano,mbed_portenta +architectures=samd,megaavr,mbed,mbed_nano,mbed_portenta,esp32 includes=ArduinoECCX08.h diff --git a/src/ECCX08.cpp b/src/ECCX08.cpp index 8bb1a9a..6145dd4 100644 --- a/src/ECCX08.cpp +++ b/src/ECCX08.cpp @@ -38,6 +38,12 @@ ECCX08Class::~ECCX08Class() { } +int ECCX08Class::begin(uint8_t i2cAddress) +{ + _address = i2cAddress; + return begin(); +} + int ECCX08Class::begin() { _wire->begin(); diff --git a/src/ECCX08.h b/src/ECCX08.h index 50490a5..0439b17 100644 --- a/src/ECCX08.h +++ b/src/ECCX08.h @@ -30,6 +30,7 @@ class ECCX08Class virtual ~ECCX08Class(); int begin(); + int begin(uint8_t i2cAddress); void end(); int serialNumber(byte sn[]);