These are some basic examples that cover some common use cases. They are intentionally crude and simple so that just the functional aspects of the displayio library can be seen. A fun thing to do would be to take one of these examples and modify it to try and add something new. Change the text color, make a sprite move around, etc.

A Note on Display Setup

Most of these examples assume a board with a built in display. See the Display and Display Bus section for information on built in vs. external displays. If you are not using a board with a built in display, then this line:

display = board.DISPLAY

in the examples will not work. That would need to be substituted for lines that configure an external display.

This guide was first published on Apr 30, 2019. It was last updated on Apr 17, 2024.

This page (Examples) was last updated on Mar 08, 2024.

Text editor powered by tinymce.