Demo: Drive a Digilent pmodOLED module from a HiFive board through SPI
Drive Digilent pmodOLED module from a HiFive board
(note: this is an older version of the software when the wiring was different).
See display.c under “Wiring” how to wire connect the PMOD connector
to the HiFive GPIO pins.
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
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.