Displaying text on a PmodOLED

This demonstration shows how to display text on a PmodOLED using the board.

The Digilent Pmod OLED is required. In this example it should be connected to PMODA.


In [1]:
from pynq.overlays.base import BaseOverlay
from pynq.lib import Pmod_OLED

base = BaseOverlay("base.bit")

pmod_oled = Pmod_OLED(base.PMODA)

In [2]:
pmod_oled.clear()
pmod_oled.write('Welcome to \nPYNQ!')

You should now see the text output on the OLED, so let's try another message.


In [3]:
pmod_oled.clear()
pmod_oled.write('Python and Zynq\nproductivity &  performance')

That's it! Please try to write your own messages to the PmodOLED.