Skip to content

Kezii/Rust-M5Stack-Cardputer

Repository files navigation

Rust on M5Stack Cardputer

actions

Implemented drivers

  • display
  • keyboard
  • speaker (needs testing, #2)
  • sd card
  • battery
  • microphone
  • rgb led

Utilities

  • double buffering
  • keyboard input events (typing, shift/fn etc)
  • sd card filesystem ?
  • app loader ?

Getting started

First, install cargo or rustup using your (Linux) package manager, or from the official website

https://doc.rust-lang.org/cargo/getting-started/installation.html

Then, install the toolchain for esp32, following their official book

https://esp-rs.github.io/book/installation/riscv-and-xtensa.html

Examples

3d graphics demo

output3.mp4

Interactive 3d graphics demo based on embedded-gfx

Use (orange) arrow keys to move, EASD to look around

cargo run --release --bin graphics

Terminal emulator with rink-core

terminal

Terminal emulator with rink-core built-in, with a reduced set of (gnu) units so it fits on the ram

You can use it as a simple units-aware calculator

cargo run --release --bin rink

ESP-NOW remote keyboard

Sends key events over ESP-NOW, using the Cardputer as a remote keyboard

An ESP-NOW receiver with a wifi access point is required

cargo run --release --bin espnow_remote

Credits

Upstream display driver

https://github.com/almindor/st7789

About

Rust firmware hal and examples for M5Stack Cardputer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages