manual fixes

This commit is contained in:
Michael Droogleever Fortuyn
2019-11-30 20:37:55 +01:00
parent 037bcc3c64
commit ded6d7f3d8
3 changed files with 5 additions and 5 deletions

View File

@@ -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();

View File

@@ -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"

View File

@@ -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() -> ! {