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

Filled rounded rectangle

display.fillRoundRect(15,15,30,15,8,BLACK);

The first four parameters for the round rectangle functions are the same as the regular rectangle functions, which are the coordinates for the upper left and lower right corners of the rectangle. The next parameter is how much to round the corners, and the last parameter is the color to draw the rounded rectangle and the color to fill it.

As we can see from the examples in this chapter, we can do a lot more than text with the Nokia 5110 LCD display, and the Adafruit library makes it very easy to use.

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