Skip to content

Embedded Rust drives an OLED SSD1309 display via SPI on RaspberryPi Pico

License

Notifications You must be signed in to change notification settings

HerrMuellerluedenscheid/rp2040-oled-1309-spi

Repository files navigation

Embedded Rust Raspberrypi Pico (RP2040) OLED Example

This project was based off of the [Project template for rp2040-hal](https://github.com/rp-rs/rp2040-project-template). Check their README for setup.

The logic to drive the display via SPI has been ported from the [TIVA-C example](https://github.com/HerrMuellerluedenscheid/tm4c-oled-example). The OLED display is the exact same SPI driven SSD1309.

OLED SPI example

Wiring
OLED pin RP2040 pin
CS GND
DC GP5
RES GP6
SDA GP3
SCL GP2
VCC 3.3V
GND GND

Run the example

I used [pyOCD](https://pyocd.io/docs/installing):

pyocd gdbserver -t rp2040_core0

You may want to change the runner from arm-none-eabi-gdb to e.g. gdb-multiarch dependent on the platform and setup you are using.

Then:

cargo run

About

Embedded Rust drives an OLED SSD1309 display via SPI on RaspberryPi Pico

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks