1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/pkg_u8g2
Marian Buschsieweke 0e90e6195f
tests: Updated Updated BOARD_INSUFFICIENT_MEMORY
Added arduino-nano to BOARD_INSUFFICIENT_MEMORY/BOARD_BLACKLIST following suit
of how arduino-uno is marked, as arduino-nano is mostly an Uno in a different
form factor.
2019-03-14 15:39:54 +01:00
..
tests tests: move testrunner import up 2018-08-13 14:11:24 +02:00
main.c tests: pkg_u8g2: adapt to new version. 2018-04-15 11:05:58 +02:00
Makefile tests: Updated Updated BOARD_INSUFFICIENT_MEMORY 2019-03-14 15:39:54 +01:00
README.md tests: pkg_u8g2: simplify Makefile + default display per output type 2016-09-05 16:48:43 +02:00

U8g2 Package Test

About

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

Usage

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

  • output to terminal virtual screen.
  • output to SDL virtual screen.
  • output to I2C graphics screen.
  • output to SPI graphics screen.

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

Output to terminal

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

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 SDL (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_DC — 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/u8g2/wiki/u8g2setupc). Make sure you select a SPI compatible display.

Output to I2C

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

Furthermore, you can configure the following:

  • TEST_I2C — The I2C device.
  • TEST_ADDR — The address to write commands to.
  • TEST_PIN_RESET — If applicable, the reset pin.
  • TEST_DISPLAY — The used display driver (see https://github.com/olikraus/u8g2/wiki/u8g2setupc). Make sure you select an I2C compatible display.

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'.