/custom-i2c-displays

Examples of custom I²C displays using an STM32F103 MCU and Rust

Primary LanguageRustApache License 2.0Apache-2.0

Custom I²C Displays

LED Bar Matrix Display VFD Display

Here are three examples of custom I²C displays written in Rust for the STM32F103 Microcontroller. These are commonly found on "Blue-Pill" development boards.

There is an accompanying blog post walking through the details.

Requirements

See the stm32f1xx Quickstart Guide for more details on the dev environment and flashing.

Running the examples

Testing the LEDs:

cargo build --release --bin led-test
cargo flash --release --bin led-test --chip STM32F103C8

I²C LED Bar:

cargo build --release --bin i2c-leds
cargo flash --release --bin i2c-leds --chip STM32F103C8
cargo embed --release --bin led-test --chip STM32F103C8

7-Segment 4-Digit I²C Display:

cargo build --release --bin i2c-7-segment
cargo flash --release --bin i2c-7-segment --chip STM32F103C8
cargo embed --release --bin i2c-7-segment --chip STM32F103C8

4 Digit Vacuum Fluorescent Display over I²C:

cargo build --release --bin i2c-vfd`
cargo flash --release --bin i2c-vfd --chip STM32F103C8
cargo embed --release --bin i2c-vfd --chip STM32F103C8

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.