File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
libraries/Wire/src/utility Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ nona4809.build.board=AVR_UNO_NONA_4809
5858nona4809.build.core=arduino
5959nona4809.build.variant=nona4809
6060nona4809.build.text_section_start=.text=0x0
61- nona4809.build.extra_flags={build.328emulation} -DMILLIS_USE_TIMERB3
61+ nona4809.build.extra_flags={build.328emulation} -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP
6262#nona4809.build.extra_flags=-B{runtime.tools.atpack.path}/gcc/dev/{build.mcu}
6363
6464nona4809.bootloader.tool=avrdude
Original file line number Diff line number Diff line change @@ -65,9 +65,10 @@ void TWI_MasterInit(uint32_t frequency)
6565 if (twi_mode != TWI_MODE_UNKNOWN ) return ;
6666
6767 // Enable pullups just in case, should have external ones though
68- //pinMode(PIN_WIRE_SDA, INPUT_PULLUP);
69- //pinMode(PIN_WIRE_SCL, INPUT_PULLUP);
70-
68+ #ifdef NO_EXTERNAL_I2C_PULLUP
69+ pinMode (PIN_WIRE_SDA , INPUT_PULLUP );
70+ pinMode (PIN_WIRE_SCL , INPUT_PULLUP );
71+ #endif
7172 PORTMUX .TWISPIROUTEA |= TWI_MUX ;
7273
7374 twi_mode = TWI_MODE_MASTER ;
Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ static const uint8_t SCL = PIN_WIRE_SCL;
9494#define PIN_A1 (16)
9595#define PIN_A2 (15)
9696#define PIN_A3 (14)
97- #define PIN_A4 (20 ) // fixme
98- #define PIN_A5 (21 ) // fixme
97+ #define PIN_A4 (26 ) // PF2 / AIN12
98+ #define PIN_A5 (27 ) // PF3 / AIN13
9999#define PIN_A6 (18)
100100#define PIN_A7 (19)
101101
You can’t perform that action at this time.
0 commit comments