Embedded Rust is fun!
Last updated: 2021-02-22
A test of what I want to write about here: for example tinkering with microcontrollers in Rust.
Why embedded, and why Rust? Because:
- it’s cool
- I like it
- I’m learning new things!
So in embedded Rust, you start with something like this:
#[no_main]
#[no_std]
use panic_halt as _;
fn main() -> ! {
let mut x: u8 = 42;
println!("Your lucky number is {}!", x); //this won't really work here
}
And after you add some more code to initialize various element of the microcontroller and such, you can see something like this:
Categories: rust embedded