write_fmt() method needed for write!() macro
Include `use core::fmt::Write;` in serial example.
This commit is contained in:
@@ -24,6 +24,7 @@ To read and write to the serial bus from your computer, you will need to configu
|
||||
## Code
|
||||
|
||||
``` rust
|
||||
use core::fmt::Write;
|
||||
use microbit::hal::prelude::*;
|
||||
use microbit::hal::serial;
|
||||
use microbit::hal::serial::BAUD115200;
|
||||
|
||||
Reference in New Issue
Block a user