From 94eafee6bb1969f6aa3b740ae2b0d9afd151544f Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Tue, 14 Mar 2023 11:58:56 +0000 Subject: [PATCH] Add more notes. --- src/bare-metal/microcontrollers/examples/src/bin/hal.rs | 2 +- src/bare-metal/microcontrollers/mmio.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bare-metal/microcontrollers/examples/src/bin/hal.rs b/src/bare-metal/microcontrollers/examples/src/bin/hal.rs index aa99c1b0..8b858e68 100644 --- a/src/bare-metal/microcontrollers/examples/src/bin/hal.rs +++ b/src/bare-metal/microcontrollers/examples/src/bin/hal.rs @@ -29,7 +29,7 @@ use nrf52833_hal::{ fn main() -> ! { let p = Peripherals::take().unwrap(); - // GPIO port 0. + // Create HAL wrapper for GPIO port 0. let gpio0 = p0::Parts::new(p.P0); // Configure GPIO 0 pins 21 and 28 as push-pull outputs. diff --git a/src/bare-metal/microcontrollers/mmio.md b/src/bare-metal/microcontrollers/mmio.md index 9355a5a2..57f37119 100644 --- a/src/bare-metal/microcontrollers/mmio.md +++ b/src/bare-metal/microcontrollers/mmio.md @@ -9,6 +9,8 @@ micro:bit:
+* GPIO 0 pin 21 is connected to the first column of the LED matrix, and pin 28 to the first row. + Run the example with: ```sh