mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-26 20:56:37 +00:00
Add config files
This commit is contained in:
parent
b97e9aae35
commit
71ba30c109
13
include/hasp_conf.h
Normal file
13
include/hasp_conf.h
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define LV_USE_HASP 1
|
||||||
|
|
||||||
|
#define LV_USE_HASP_WIFI 1
|
||||||
|
#define LV_USE_HASP_MQTT 1
|
||||||
|
#define LV_USE_HASP_HTTP 1
|
||||||
|
#define LV_USE_HASP_SPIFFS 1
|
||||||
|
|
||||||
|
#define LV_DEMO_WALLPAPER 0 /*Create a wallpaper too*/
|
||||||
|
|
||||||
|
//#define LV_HASP_HOR_RES_MAX 128
|
||||||
|
//#define LV_HASP_VER_RES_MAX 160
|
@ -14,14 +14,15 @@
|
|||||||
;***************************************************
|
;***************************************************
|
||||||
[platformio]
|
[platformio]
|
||||||
default_envs =
|
default_envs =
|
||||||
|
; Comment unneeded environments or create extra
|
||||||
esp32dev
|
esp32dev
|
||||||
esp12e
|
esp12e
|
||||||
d1mini-lolintft24
|
d1mini-lolintft24
|
||||||
|
|
||||||
include_dir =
|
include_dir =
|
||||||
include
|
include
|
||||||
;lvgl
|
|
||||||
;lv_lib_zifont
|
;lv_lib_zifont
|
||||||
|
;lvgl
|
||||||
;png_decoder
|
;png_decoder
|
||||||
|
|
||||||
[lcd]
|
[lcd]
|
||||||
@ -44,10 +45,10 @@ monitor_speed = 115200
|
|||||||
upload_speed = 921600
|
upload_speed = 921600
|
||||||
; -- Shared library dependencies in all environments
|
; -- Shared library dependencies in all environments
|
||||||
lib_deps =
|
lib_deps =
|
||||||
;lvgl@^7.0.0
|
;lvgl@^7.0.0 ; Not in library yet
|
||||||
TFT_eSPI@^1.5.0
|
TFT_eSPI@^1.5.0
|
||||||
PubSubClient@^2.7.0 ; MQTT client
|
PubSubClient@^2.7.0 ; MQTT client
|
||||||
ArduinoJson@>6.13.0
|
ArduinoJson@^6.14.0
|
||||||
Syslog@^2.0.0
|
Syslog@^2.0.0
|
||||||
|
|
||||||
; -- littlevgl config options ----------------------
|
; -- littlevgl config options ----------------------
|
||||||
@ -59,7 +60,6 @@ build_flags =
|
|||||||
-D ARDUINOJSON_DECODE_UNICODE=1 ; for utf-8 symbols
|
-D ARDUINOJSON_DECODE_UNICODE=1 ; for utf-8 symbols
|
||||||
-D ARDUINOJSON_ENABLE_PROGMEM=1 ; for PROGMEM arguments
|
-D ARDUINOJSON_ENABLE_PROGMEM=1 ; for PROGMEM arguments
|
||||||
-I include ; include lv_conf.h and hasp_conf.h
|
-I include ; include lv_conf.h and hasp_conf.h
|
||||||
; -I drivers/stm32f429_disco
|
|
||||||
|
|
||||||
;***************************************************
|
;***************************************************
|
||||||
; ESP32 build
|
; ESP32 build
|
||||||
@ -165,33 +165,6 @@ lib_deps =
|
|||||||
Ethernet@<2.0.0
|
Ethernet@<2.0.0
|
||||||
|
|
||||||
|
|
||||||
;***************************************************
|
|
||||||
; STM32f103 Baite Maple
|
|
||||||
;***************************************************
|
|
||||||
[env:maple]
|
|
||||||
platform = ststm32
|
|
||||||
board = maple
|
|
||||||
monitor_port = COM6 ; Change to the correct port
|
|
||||||
upload_port = COM6 ; Change to the correct port
|
|
||||||
build_flags =
|
|
||||||
${env.build_flags}
|
|
||||||
; -- TFT_eSPI build options ------------------------
|
|
||||||
-D TFT_ROTATION=${lcd.TFT_ROTATION}
|
|
||||||
-D TFT_WIDTH=${lcd.TFT_WIDTH}
|
|
||||||
-D TFT_HEIGHT=${lcd.TFT_HEIGHT}
|
|
||||||
-D USER_SETUP_LOADED=1
|
|
||||||
-D ST7735_DRIVER=1
|
|
||||||
-D ST7735_BLACKTAB=1
|
|
||||||
-D TFT_MISO=-1 ;NC
|
|
||||||
-D TFT_MOSI=13 ;D7
|
|
||||||
-D TFT_SCLK=14 ;D5
|
|
||||||
-D TFT_CS=15 ;D8
|
|
||||||
-D TFT_DC=0 ;D3
|
|
||||||
-D TFT_RST=2 ;D4
|
|
||||||
-D TOUCH_CS=-1 ;NC
|
|
||||||
-D SPI_FREQUENCY=27000000
|
|
||||||
-I "Arduino.h"
|
|
||||||
|
|
||||||
; -- Library options -------------------------------
|
; -- Library options -------------------------------
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${env.lib_deps}
|
${env.lib_deps}
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
// This file contains the default settings that are
|
||||||
|
// burned into the compiled firmware.
|
||||||
|
//
|
||||||
|
// These default settings can be changed at runtime
|
||||||
|
//
|
||||||
|
// To use: Save a copy as user_config_override.h
|
||||||
|
|
||||||
/***************************************************
|
/***************************************************
|
||||||
WiFi Settings
|
WiFi Settings
|
||||||
**************************************************/
|
**************************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user