From e2d7bc56ecd2efa2371c9a4030986f40608f33cb Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Fri, 17 Mar 2023 17:17:28 +0000 Subject: [PATCH] Add other files for compass exercise to exercise page. --- src/exercises/bare-metal/compass.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/exercises/bare-metal/compass.md b/src/exercises/bare-metal/compass.md index 67fc2de7..fc94989f 100644 --- a/src/exercises/bare-metal/compass.md +++ b/src/exercises/bare-metal/compass.md @@ -12,17 +12,35 @@ shouldn't be necessary for this exercise. If you have time, try displaying it on the LEDs somehow too, or use the buttons somehow. +`src/main.rs`: ```rust,compile_fail {{#include compass/src/main.rs:top}} use microbit::{hal::uarte::{Baudrate, Parity, Uarte}, Board}; {{#include compass/src/main.rs:main}} + // TODO {{#include compass/src/main.rs:loop}} + // TODO } } ``` +`Cargo.toml` (you shouldn't need to change this): +```toml +{{#include compass/Cargo.toml}} +``` + +`Embed.toml` (you shouldn't need to change this): +```toml +{{#include compass/Embed.toml}} +``` + +`.cargo/config.toml` (you shouldn't need to change this): +```toml +{{#include compass/.cargo/config.toml}} +``` + See the serial output with ```sh