Skip to content

Commit

Permalink
feat(i2c): add oled demo
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jun 24, 2024
1 parent d823191 commit fb783b0
Show file tree
Hide file tree
Showing 5 changed files with 387 additions and 5 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ embassy-executor = { version = "0.5.0", features = [
] }
defmt = "0.3.8"
defmt-rtt = "0.4.1"
embedded-graphics = "0.8.1"


[profile.release]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ This crate is a working-in-progress and not ready for use.
- [x] GPIO, Flex, Input, Output
- [x] RTT support (defmt, defmt-rtt)
- [x] UART support
- [x] blocking TX
- [x] blocking RX

- [x] blocking TX, RX
- [x] I2C support
- [x] blocking, eh traits
- MCUs
- HPM5300 - currently it's the only supported series

Expand Down
10 changes: 10 additions & 0 deletions examples/BANNER
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
----------------------------------------------------------------------
$$\ $$\ $$$$$$$\ $$\ $$\ $$\
$$ | $$ |$$ __$$\ $$$\ $$$ |\__|
$$ | $$ |$$ | $$ |$$$$\ $$$$ |$$\ $$$$$$$\ $$$$$$\ $$$$$$\
$$$$$$$$ |$$$$$$$ |$$\$$\$$ $$ |$$ |$$ _____|$$ __$$\ $$ __$$\
$$ __$$ |$$ ____/ $$ \$$$ $$ |$$ |$$ / $$ | \__|$$ / $$ |
$$ | $$ |$$ | $$ |\$ /$$ |$$ |$$ | $$ | $$ | $$ |
$$ | $$ |$$ | $$ | \_/ $$ |$$ |\$$$$$$$\ $$ | \$$$$$$ |
\__| \__|\__| \__| \__|\__| \_______|\__| \______/
----------------------------------------------------------------------
4 changes: 2 additions & 2 deletions examples/embassy_blinky.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ async fn main(spawner: Spawner) -> ! {
let p = hal::init(Default::default());

// println!("{}", BANNER);
println!("Rust SDK: hpm5361-hal v0.0.1");
println!("Embassy driver: hpm5361-hal v0.0.1");
println!("Rust SDK: hpm-hal v0.0.1");
println!("Embassy driver: hpm-hal v0.0.1");
println!("Author: @andelf");
println!("==============================");
println!(" {} clock summary", BOARD_NAME);
Expand Down
Loading

0 comments on commit fb783b0

Please sign in to comment.