1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/pkg/ucglib
2024-02-05 00:45:42 +01:00
..
tests tests: move pkg_ application to tests/pkg subdirectory 2023-05-06 07:55:01 +02:00
logo.h tests: move pkg_ application to tests/pkg subdirectory 2023-05-06 07:55:01 +02:00
main.c tests: move pkg_ application to tests/pkg subdirectory 2023-05-06 07:55:01 +02:00
Makefile tests: move pkg_ application to tests/pkg subdirectory 2023-05-06 07:55:01 +02:00
Makefile.ci boards/weact-g030f6: add new board 2024-02-05 00:45:42 +01:00
README.md tests: move pkg_ application to tests/pkg subdirectory 2023-05-06 07:55:01 +02:00

Ucglib Package Test

About

This is a test application for the Ucglib package. This package is a graphical color display library, including display drivers.

Usage

This test application will initialize the Ucglib to output on one of the following:

  • output to dummy screen.
  • output to SDL virtual screen.
  • output to SPI graphics screen.

Note: you may have to run make clean between different output modes.

Output to dummy

To output to this virtual screen, supply TEST_OUTPUT=1 to the make command.

It logs internal calls to screen and is used for testing the package internals only.

Output to SDL

To output to this virtual screen, supply TEST_OUTPUT=2 to the make command.

This is a native-only option and requires SDL2 (32-bits) to be installed.

Output to SPI

To output to screen, supply TEST_OUTPUT=3 to the make command.

  • TEST_SPI — The SPI device.
  • TEST_PIN_CS — If applicable, the CS pin.
  • TEST_PIN_CD — If applicable, the Command/Data pin.
  • TEST_PIN_RESET — If applicable, the reset pin.
  • TEST_DISPLAY — The used display driver (see https://github.com/olikraus/ucglib/wiki/displays). Make sure you select a SPI compatible display.
  • TEST_DISPLAY_EXT — The applicable display extension (additional commands).

Expected result

The output of this test depends on the output mode and used hardware. If it works, the application cycles through three screens with the text: 'This is RIOT-OS'.