File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 29
29
run : bash ci/doxy_gen_and_deploy.sh
30
30
31
31
- name : Test the code on supported platforms
32
- run : python3 ci/build_platform.py main_platforms zero feather32u4
32
+ run : python3 ci/build_platform.py main_platforms zero feather32u4 trinket_5v
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ uint8_t Adafruit_I2CDevice::address(void) { return _addr; }
261
261
* Not necessarily that the speed was achieved!
262
262
*/
263
263
bool Adafruit_I2CDevice::setSpeed (uint32_t desiredclk) {
264
- #if defined(__AVR__ ) // fix arduino core set clock
264
+ #if defined(__AVR_ATmega328__) || defined(__AVR_ATmega328P__ ) // fix arduino core set clock
265
265
// calculate TWBR correctly
266
266
uint8_t prescaler = 1 ;
267
267
uint32_t atwbr = ((F_CPU / desiredclk) - 16 ) / 2 ;
You can’t perform that action at this time.
0 commit comments