nRF5 SDK v17.1.0
GFX Library Example

The GFX library example demonstrates how to use it in practice. It uses the GFX library API functions to draw objects, such as lines, rectangles, and circles.

The example uses the ILI9341 controller. You can also configure it to use the ST7735 controller. Drivers for both controllers can be found under <InstallFolder>\components\drivers_ext.

Setup

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\gfx

Testing

Test the GFX library example application by performing the following steps:

  1. Compile and program the application.
  2. Connect an LCD with the ILI9341 or the ST7735 controller.
  3. Start a terminal emulator like PuTTY and connect to the used COM port with the following UART settings:
    • Baud rate: 115.200
    • 8 data bits
    • 1 stop bit
    • No parity
    • HW flow control: None
  4. After a reset, basic information about the example is displayed on UART.
  5. The GFX library draws graphic objects presenting its capabilities.

Documentation feedback | Developer Zone | Subscribe | Updated