mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests/pkg_qr-code-generator: adapt for stm32f746g-disco screen
This commit is contained in:
parent
9f4d6da505
commit
b0489b74ed
@ -7,4 +7,4 @@ config APPLICATION
|
||||
config BOARD_HAS_DISPLAY
|
||||
bool
|
||||
default y
|
||||
depends on BOARD_PINETIME || BOARD_ADAFRUIT_CLUE || BOARD_STM32F429I_DISC1 || BOARD_STM32F429I_DISCO || BOARD_ESP32_WROVER_KIT
|
||||
depends on BOARD_PINETIME || BOARD_ADAFRUIT_CLUE || BOARD_STM32F429I_DISC1 || BOARD_STM32F429I_DISCO || BOARD_STM32F746G_DISCO || BOARD_ESP32_WROVER_KIT
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Boards with a screen can use disp_dev
|
||||
ifneq (,$(filter stm32f429i-disc% pinetime adafruit-clue esp32-wrover-kit,$(BOARD)))
|
||||
ifneq (,$(filter stm32f429i-disc% stm32f746g-disco pinetime adafruit-clue esp32-wrover-kit,$(BOARD)))
|
||||
USEMODULE += disp_dev
|
||||
endif
|
||||
|
@ -42,7 +42,11 @@ static uint8_t qr0[qrcodegen_BUFFER_LEN_FOR_VERSION(ENCODER_VERSION)];
|
||||
static uint8_t buffer[qrcodegen_BUFFER_LEN_FOR_VERSION(ENCODER_VERSION)];
|
||||
|
||||
#ifdef MODULE_DISP_DEV
|
||||
#ifdef LCD_SCREEN_WIDTH
|
||||
#define DISPLAY_BUFFER_MAX_SIZE (LCD_SCREEN_WIDTH)
|
||||
#else
|
||||
#define DISPLAY_BUFFER_MAX_SIZE (320)
|
||||
#endif
|
||||
static uint16_t display_buffer[DISPLAY_BUFFER_MAX_SIZE] = { 0 };
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user