1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/drivers: rename st3577 test to more generic st77xx

This commit is contained in:
Gunar Schorcht 2023-07-13 09:11:33 +02:00
parent 1c2cce7c66
commit f64890a43b
5 changed files with 23 additions and 6 deletions

View File

@ -2,7 +2,24 @@ BOARD ?= stm32f429i-disc1
include ../Makefile.drivers_common
USEMODULE += st7735
ST7789_BOARDS = \
esp32s2-lilygo-ttgo-t8 \
esp32s3-usb-otg \
#
ST7796_BOARDS = \
#
ifneq (,$(filter $(ST7789_BOARDS),$(BOARD)))
DRIVER ?= st7789
endif
ifneq (,$(filter $(ST7796_BOARDS),$(BOARD)))
DRIVER ?= st7796
endif
DRIVER ?= st7735
USEMODULE += $(DRIVER)
USEMODULE += ztimer
USEMODULE += ztimer_msec

View File

@ -1,5 +1,5 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_ST7735=y
CONFIG_MODULE_ST77XX=y
CONFIG_MODULE_ZTIMER=y
CONFIG_MODULE_ZTIMER_MSEC=y

View File

@ -28,13 +28,13 @@
#include "riot_logo.h"
#include "st7735.h"
#include "st7735_params.h"
#include "st77xx.h"
#include "st77xx_params.h"
int main(void)
{
lcd_t dev;
dev.driver = &lcd_st7735_driver;
dev.driver = &lcd_st77xx_driver;
puts("lcd TFT display test application");
@ -46,7 +46,7 @@ int main(void)
BACKLIGHT_ON;
#endif
if (lcd_init(&dev, &st7735_params[0]) == 0) {
if (lcd_init(&dev, &st77xx_params[0]) == 0) {
puts("[OK]");
}
else {