[stm32l475][RTduino] modify macros and files name
This commit is contained in:
parent
ef426851ea
commit
b6382d2a00
|
@ -1,5 +1,3 @@
|
|||
CONFIG_BSP_USING_ARDUINO=y
|
||||
CONFIG_BSP_USING_ARDUINO_ST7789=y
|
||||
CONFIG_BSP_USING_ARDUINO_ST7789_DEMO=y
|
||||
CONFIG_BSP_USING_ARDUINO_AHT10=y
|
||||
CONFIG_BSP_USING_ARDUINO_AHT10_DEMO=y
|
|
@ -0,0 +1,4 @@
|
|||
CONFIG_BSP_USING_ARDUINO=y
|
||||
CONFIG_BSP_USING_ARDUINO_ST7789=y
|
||||
CONFIG_BSP_USING_ARDUINO_ST7789_ADAFRUIT_GFX=y
|
||||
CONFIG_BSP_USING_ARDUINO_ST7789_ADAFRUIT_GFX_DEMO=y
|
|
@ -0,0 +1,4 @@
|
|||
CONFIG_BSP_USING_ARDUINO=y
|
||||
CONFIG_BSP_USING_ARDUINO_ST7789=y
|
||||
CONFIG_BSP_USING_ARDUINO_ST7789_TFT_ESPI=y
|
||||
CONFIG_BSP_USING_ARDUINO_ST7789_TFT_ESPI_DEMO=y
|
|
@ -46,15 +46,33 @@ menu "Onboard Peripheral Drivers"
|
|||
select BSP_USING_SPI3
|
||||
select BSP_SPI3_TX_USING_DMA
|
||||
select BSP_USING_PWM4_CH2
|
||||
select PKG_USING_ARDUINO_ADAFRUIT_ST7735
|
||||
depends on !BSP_USING_SPI_LCD
|
||||
default n
|
||||
|
||||
config BSP_USING_ARDUINO_ST7789_DEMO
|
||||
bool "Enable Arduino LCD (ST7789) library demo"
|
||||
depends on BSP_USING_ARDUINO_ST7789
|
||||
if BSP_USING_ARDUINO_ST7789
|
||||
choice
|
||||
prompt "Arduino GUI Framework"
|
||||
|
||||
config BSP_USING_ARDUINO_ST7789_ADAFRUIT_GFX
|
||||
bool "Adafruit GFX"
|
||||
select PKG_USING_ARDUINO_ADAFRUIT_ST7735
|
||||
|
||||
config BSP_USING_ARDUINO_ST7789_TFT_ESPI
|
||||
bool "TFT eSPI"
|
||||
select PKG_USING_ARDUINO_TFT_ESPI
|
||||
endchoice
|
||||
|
||||
config BSP_USING_ARDUINO_ST7789_ADAFRUIT_GFX_DEMO
|
||||
bool "Enable ST7789 Adafruit demo"
|
||||
depends on BSP_USING_ARDUINO_ST7789_ADAFRUIT_GFX
|
||||
default n
|
||||
|
||||
config BSP_USING_ARDUINO_ST7789_TFT_ESPI_DEMO
|
||||
bool "Enable ST7789 TFT eSPI demo"
|
||||
depends on BSP_USING_ARDUINO_ST7789_TFT_ESPI
|
||||
default n
|
||||
endif
|
||||
|
||||
config BSP_USING_ARDUINO_AHT10
|
||||
bool "Enable Arduino AHT10 sensor library"
|
||||
select BSP_USING_I2C4
|
||||
|
|
|
@ -3,8 +3,10 @@ from building import *
|
|||
cwd = GetCurrentDir()
|
||||
src = []
|
||||
|
||||
if GetDepend(['BSP_USING_ARDUINO_ST7789_DEMO']):
|
||||
src += ['ST7789_demo.cpp']
|
||||
if GetDepend(['BSP_USING_ARDUINO_ST7789_ADAFRUIT_GFX_DEMO']):
|
||||
src += ['ST7789_adafruit_gfx_demo.cpp']
|
||||
elif GetDepend(['BSP_USING_ARDUINO_ST7789_ADAFRUIT_GFX_DEMO']):
|
||||
src += ['ST7789_tft_espi_demo.cpp']
|
||||
|
||||
group = DefineGroup('RTduino-libraries', src, depend = ['BSP_USING_ARDUINO'])
|
||||
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2023, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2023-10-05 Meco Man port to RTduino
|
||||
*/
|
||||
|
||||
#include <RTduino.h>
|
||||
|
||||
static void st7789_setup(void)
|
||||
{
|
||||
}
|
||||
|
||||
static void st7789_loop(void)
|
||||
{
|
||||
delay(500);
|
||||
}
|
||||
RTDUINO_SKETCH_LOADER("ST7789", st7789_setup, st7789_loop);
|
Loading…
Reference in New Issue