Skip to content

Commit 10484c6

Browse files
committed
The uart RX TX pin types have to be swapped
The schematic names them the wrong way around.
1 parent 7fd7df2 commit 10484c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

microbit-common/src/v2/board.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ impl Board {
192192
sda: p1parts.p1_00.into_floating_input(),
193193
},
194194
uart: UartPins {
195-
tx: p1parts.p1_08.into_push_pull_output(Level::Low),
196-
rx: p0parts.p0_06.into_floating_input(),
195+
tx: p0parts.p0_06.into_push_pull_output(Level::High),
196+
rx: p1parts.p1_08.into_floating_input(),
197197
},
198198

199199
// Core peripherals

microbit-common/src/v2/gpio.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ pub type SCL = p0::P0_26<Input<Floating>>;
114114
pub type SDA = p1::P1_00<Input<Floating>>;
115115

116116
/* uart */
117-
pub type UART_TX = p1::P1_08<Output<PushPull>>;
118-
pub type UART_RX = p0::P0_06<Input<Floating>>;
117+
pub type UART_TX = p0::P0_06<Output<PushPull>>;
118+
pub type UART_RX = p1::P1_08<Input<Floating>>;
119119

120120
/* speaker */
121121
pub type SPEAKER = p0::P0_00<Output<PushPull>>;

0 commit comments

Comments
 (0)