Basic shapes

The Adafruit library also enables us to create basic shapes on the LCD. These include circles, rectangles and rounded rectangles. There are also functions that enable us to create these shapes and fill them in. The following code and screenshots show how to use the circle functions:

display.drawCircle(display.width()/2, display.height()/2, 6, BLACK);

Get Mastering Arduino now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.