manual fixes
This commit is contained in:
@@ -20,7 +20,7 @@ fn main() -> ! {
|
||||
writeln!(stdout, "Start").unwrap();
|
||||
if let Some(p) = microbit::Peripherals::take() {
|
||||
// Split GPIO
|
||||
let mut gpio = p.GPIO.split();
|
||||
let gpio = p.GPIO.split();
|
||||
// Configure RX and TX pins accordingly
|
||||
let tx = gpio.pin24.into_push_pull_output().downgrade();
|
||||
let rx = gpio.pin25.into_floating_input().downgrade();
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
[package]
|
||||
name = "microbit"
|
||||
version = "0.1.0"
|
||||
name = "micro"
|
||||
version = "0.2.0"
|
||||
|
||||
[dependencies]
|
||||
cortex-m-rt="~0.6"
|
||||
cortex-m-semihosting="~0.3"
|
||||
panic-halt = "~0.2"
|
||||
panic-semihosting = "~0.5"
|
||||
microbit="~0.7"
|
||||
microbit="~0.8"
|
||||
|
||||
@@ -13,7 +13,7 @@ use sh::hio;
|
||||
use microbit::hal::prelude::*;
|
||||
use microbit::hal::serial;
|
||||
use microbit::hal::serial::BAUD115200;
|
||||
use microbit::nb::block;
|
||||
use microbit::hal::nb::block;
|
||||
|
||||
#[entry]
|
||||
fn main() -> ! {
|
||||
|
||||
Reference in New Issue
Block a user