Skip to content

Commit 1fc6cc8

Browse files
committed
micro:bit2: Ensure we don't initialise the I2C1 peripheral (we use software I2C internally)
1 parent aea3be7 commit 1fc6cc8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
Bangle.js2: Fix issue when an onchange callback from E.showMenu submenu changes the menu immediately
2424
Bangle.js: Added 'bpmMin/bpmMax' and 'activity' to 'health' event and 'Bangle.getHealthStatus'
2525
Fix potential overflow of locks - favour small memory leak over accidental free if this ever happens (fix #2616)
26+
micro:bit2: Ensure we don't initialise the I2C1 peripheral (we use software I2C internally)
2627

2728
2v25 : ESP32C3: Get analogRead working correctly
2829
Graphics: Adjust image alignment when rotating images to avoid cropping (fix #2535)

libs/microbit/jswrap_microbit.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ void jswrap_microbit_init() {
154154
#endif
155155
i2cInfo.pinSCL = INTERNAL_I2C_SCL_PIN;
156156
i2cInfo.pinSDA = INTERNAL_I2C_SDA_PIN;
157+
#ifndef MICROBIT2
157158
jshI2CSetup(EV_I2C1, &i2cInfo);
159+
#endif
158160

159161
unsigned char d[2];
160162
#ifndef MICROBIT2

0 commit comments

Comments
 (0)