diff --git a/.github/workflows/githubci.yml b/.github/workflows/githubci.yml index 568eda2..3f97f62 100644 --- a/.github/workflows/githubci.yml +++ b/.github/workflows/githubci.yml @@ -29,4 +29,4 @@ jobs: run: bash ci/doxy_gen_and_deploy.sh - name: Test the code on supported platforms - run: python3 ci/build_platform.py main_platforms zero feather32u4 + run: python3 ci/build_platform.py main_platforms zero feather32u4 trinket_5v diff --git a/Adafruit_I2CDevice.cpp b/Adafruit_I2CDevice.cpp index 6b3d809..0c1ff70 100644 --- a/Adafruit_I2CDevice.cpp +++ b/Adafruit_I2CDevice.cpp @@ -261,7 +261,7 @@ uint8_t Adafruit_I2CDevice::address(void) { return _addr; } * Not necessarily that the speed was achieved! */ bool Adafruit_I2CDevice::setSpeed(uint32_t desiredclk) { -#if defined(__AVR__) // fix arduino core set clock +#if defined(__AVR_ATmega328__) || defined(__AVR_ATmega328P__) // fix arduino core set clock // calculate TWBR correctly uint8_t prescaler = 1; uint32_t atwbr = ((F_CPU / desiredclk) - 16) / 2;