I’m going through Knurling Sessions 2020 Q4, an excellent course/project from the Knurling project. It was originally available only to sponsors of the project but is now open to everyone for free.
I decided to use the latest version of all crates instead of following the instructions to the letter. Here are some notes on things that have changed as of May 2021.
2.2.1.1. Hello World: while editing
to set up the first project, the instructions show a flag that is no longer in the app template; config.toml
no longer supports the probe-run
flag, just skip it.--defmt
[target.'cfg(all(target_arch = "arm", target_os = "none"))'] runner = "probe-run --chip nRF52840_xxAA"
2.2.1.3. Internal Temperature Sensor: defmt has changed its syntax from
to {:f32}
.{=f32}
let temperature = temp.measure().to_num(); defmt::info!("{=f32}", temperature);
2.2.2.1. Hello Sensor: need to add
when declaring .into_floating_input()
scl
and sda
.
let scl = pins.p0_30.degrade().into_floating_input(); let sda = pins.p0_31.degrade().into_floating_input();
Leave a Reply