Skip to content

Commit

Permalink
reverts i2c pins, updates compat.h
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianhugo committed Jan 10, 2024
1 parent 9da8046 commit 89dc9b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions inc/compat/MicroBitCompat.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,11 @@ const uint16_t MICROBIT_ID_MBED_TICKER __attribute__ ((deprecated)) = 83;
#define MICROBIT_ID_IO_P13 ID_PIN_P13
#define MICROBIT_ID_IO_P14 ID_PIN_P14
#define MICROBIT_ID_IO_P15 ID_PIN_P15
#define MICROBIT_ID_IO_A1_RX ID_PIN_P16 //#define MICROBIT_ID_IO_P16
#define MICROBIT_ID_IO_A1_TX ID_PIN_P17 //#define MICROBIT_ID_IO_P17
#define MICROBIT_ID_IO_P18 ID_PIN_P18
#define MICROBIT_ID_IO_A0_SCL ID_PIN_P19
#define MICROBIT_ID_IO_A0_SDA ID_PIN_P20 //#define MICROBIT_ID_IO_P20
#define MICROBIT_ID_IO_P16 ID_PIN_P16
#define MICROBIT_ID_IO_P17 ID_PIN_P17 //[Calliope] add
#define MICROBIT_ID_IO_P18 ID_PIN_P18 //[Calliope] add
#define MICROBIT_ID_IO_P19 ID_PIN_P19
#define MICROBIT_ID_IO_P20 ID_PIN_P20
#define MICROBIT_ID_LOGO ID_PIN_LOGO

// Calliope mini3
Expand Down
2 changes: 1 addition & 1 deletion model/MicroBit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ MicroBit::MicroBit() :
io(adc, touchSensor),
serial(io.usbTx, io.usbRx, NRF_UARTE0),
_i2c(io.sda, io.scl),
i2c(io.A0SDA, io.A0SCL),
i2c(io.P20, io.P20),
power(_i2c, io, systemTimer),
flash(_i2c, io, power),
internalFlash(MICROBIT_STORAGE_PAGE, 1, MICROBIT_CODEPAGESIZE),
Expand Down

0 comments on commit 89dc9b9

Please sign in to comment.