O'Reilly logo

Mastering Arduino by Jon Hoffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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);

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required