Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
/ pmodoled Public archive

Demo: Drive a Digilent pmodOLED module from a HiFive board through SPI

Notifications You must be signed in to change notification settings

laanwj/pmodoled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drive Digilent pmodOLED module from a HiFive board

  • SPI interface attached via GPIO pins. Uses SiFive SPI device, or alternatively simple GPIO bitbanging.
  • SSD1306 controller.
  • 128x32 display.

SiFive with connected display

(note: this is an older version of the software when the wiring was different).

Wiring up

See display.c under "Wiring" how to wire connect the PMOD connector to the HiFive GPIO pins.

Usage

  • Build the freedom-e-sdk
  • Check out this repository into the software subdirectory.
cd software
git clone https://github.com/laanwj/pmodoled.git
cd ..
  • Compile
make software PROGRAM=pmodoled

Alternatively you can run make -C software/pmodoled yourself. This is useful during incremental development as no automatic make clean will be run.

  • Upload program to device
make upload PROGRAM=pmodoled

Demo

The program will automatically launch after it is uploaded.

Initially it will display a zooming mandelbrot set on the display, and log a bit of debug information to the UART.

At the moment there are two modes:

  • Mandelbrot mode: Show a zooming mandelbrot set. To switch mode, type any character on the serial console.

  • Terminal mode: the device will act as a simple terminal: everything you enter on the serial console will be printed to the display. Newline and backspace should work as expected. Escape exits to the next mode.

About

Demo: Drive a Digilent pmodOLED module from a HiFive board through SPI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published