The I2C compatible Two-Wire Interface Master (TWIM) communicating with an SSD1306 OLED Display demo. This demo uses the TWIM peripheral along with the embedded_graphics library to draw "Hello Rust!" to an SSD1306 OLED screen. Note that you need to set a chip feature to get this to compile.
TWI write example using an SSD1306 OLED display: https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf
After running it you should see the words "Hello Rust!" on the display.
Pin Connection P0.26 SCL P0.27 SDA
This is designed for the nRF52-DK & the nRF52840-DK board: https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52-DK https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-DK
The TWI device is a 128x64px SSD1306 https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf
If using probe-run
, see parent folder readme for setup and then just run
$ cargo run