Skip to content

TFT LCD Display Example

The TFT LCD Display Example shows how to use the GFX library API functions to draw graphic objects on the LCD.

Tip

Before you start building, remember to set up the nRF5 SDK development environment first. See Setup the nRF5 SDK for details.

Building the example

You can find the source code and the project file of the example in the following folder: examples/nrf5-sdk/gfx.

Open terminal and navigate to the directory with the example Makefile:

cd ./examples/nrf5-sdk/gfx/armgcc

Run make to build the example:

make

Programming the firmware

If compiled successfully, the firmware is located in gfx/armgcc/_build with the name nrf52840_xxaa.hex.

Connect the debugger USB port to your PC using the provided USB-C Cable. A disk drive called M2-DOCK will be automatically detected by the computer.

Run the following command in gfx/armgcc to program the board:

make flash_all

Tip

See Programming section for details about how to program the nRF52840 M.2 Module.

Testing

Test the example by performing the following steps:

Program the application and observe the graphic objects on the LCD screen:

LCD Displaying

Create an Issue

Interested in contributing to this project? Want to report a bug? Feel free to click here: