mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
Add image sonoff-display
Add define USE_DISPLAYS for selecting image sonoff-display
This commit is contained in:
parent
ec421e6144
commit
40052a343f
@ -16,6 +16,7 @@ env_default = sonoff
|
|||||||
;env_default = sonoff-classic
|
;env_default = sonoff-classic
|
||||||
;env_default = sonoff-knx
|
;env_default = sonoff-knx
|
||||||
;env_default = sonoff-sensors
|
;env_default = sonoff-sensors
|
||||||
|
;env_default = sonoff-display
|
||||||
;env_default = sonoff-BG
|
;env_default = sonoff-BG
|
||||||
;env_default = sonoff-BR
|
;env_default = sonoff-BR
|
||||||
;env_default = sonoff-CN
|
;env_default = sonoff-CN
|
||||||
@ -167,6 +168,20 @@ upload_resetmethod = ${common.upload_resetmethod}
|
|||||||
upload_speed = ${common.upload_speed}
|
upload_speed = ${common.upload_speed}
|
||||||
extra_scripts = ${common.extra_scripts}
|
extra_scripts = ${common.extra_scripts}
|
||||||
|
|
||||||
|
[env:sonoff-display]
|
||||||
|
platform = ${common.platform}
|
||||||
|
framework = ${common.framework}
|
||||||
|
board = ${common.board}
|
||||||
|
board_build.flash_mode = ${common.board_build.flash_mode}
|
||||||
|
board_build.f_cpu = ${common.board_build.f_cpu}
|
||||||
|
build_unflags = ${common.build_unflags}
|
||||||
|
build_flags = ${common.build_flags} -DUSE_DISPLAYS
|
||||||
|
monitor_speed = ${common.monitor_speed}
|
||||||
|
upload_port = ${common.upload_port}
|
||||||
|
upload_resetmethod = ${common.upload_resetmethod}
|
||||||
|
upload_speed = ${common.upload_speed}
|
||||||
|
extra_scripts = ${common.extra_scripts}
|
||||||
|
|
||||||
[env:sonoff-BG]
|
[env:sonoff-BG]
|
||||||
platform = ${common.platform}
|
platform = ${common.platform}
|
||||||
framework = ${common.framework}
|
framework = ${common.framework}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
* Remove restart after ntpserver change and force NTP re-sync (#3890)
|
* Remove restart after ntpserver change and force NTP re-sync (#3890)
|
||||||
* Release full Shelly2 support
|
* Release full Shelly2 support
|
||||||
* Released tools/decode-config.py by Norbert Richter to decode configuration data. See file for information
|
* Released tools/decode-config.py by Norbert Richter to decode configuration data. See file for information
|
||||||
|
* Add define USE_DISPLAYS for selecting image sonoff-display
|
||||||
*
|
*
|
||||||
* 6.2.1.6 20180922
|
* 6.2.1.6 20180922
|
||||||
* Removed commands PowerCal, VoltageCal and CurrentCal as more functionality is provided by commands PowerSet, VoltageSet and CurrentSet
|
* Removed commands PowerCal, VoltageCal and CurrentCal as more functionality is provided by commands PowerSet, VoltageSet and CurrentSet
|
||||||
|
@ -51,7 +51,7 @@ void KNX_CB_Action(message_t const &msg, void *arg);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define USE_DHT // Default DHT11 sensor needs no external library
|
#define USE_DHT // Default DHT11 sensor needs no external library
|
||||||
#define USE_ENERGY_SENSOR // Use energy sensors
|
#define USE_ENERGY_SENSOR // Use energy sensors (+14k code)
|
||||||
#define USE_HLW8012 // Use energy sensor for Sonoff Pow and WolfBlitz
|
#define USE_HLW8012 // Use energy sensor for Sonoff Pow and WolfBlitz
|
||||||
#define USE_CSE7766 // Use energy sensor for Sonoff S31 and Pow R2
|
#define USE_CSE7766 // Use energy sensor for Sonoff S31 and Pow R2
|
||||||
|
|
||||||
@ -167,6 +167,30 @@ void KNX_CB_Action(message_t const &msg, void *arg);
|
|||||||
#undef USE_EMULATION // Disable Belkin WeMo and Hue Bridge emulation for Alexa (-16k code, -2k mem)
|
#undef USE_EMULATION // Disable Belkin WeMo and Hue Bridge emulation for Alexa (-16k code, -2k mem)
|
||||||
#endif // USE_KNX_NO_EMULATION
|
#endif // USE_KNX_NO_EMULATION
|
||||||
|
|
||||||
|
/*********************************************************************************************\
|
||||||
|
* [sonoff-display.bin]
|
||||||
|
* Provide an image with display drivers enabled
|
||||||
|
\*********************************************************************************************/
|
||||||
|
|
||||||
|
#ifdef USE_DISPLAYS
|
||||||
|
|
||||||
|
#undef USE_ENERGY_SENSOR // Disable energy sensors (-14k code)
|
||||||
|
#undef USE_EMULATION // Disable Belkin WeMo and Hue Bridge emulation for Alexa (-16k code, -2k mem)
|
||||||
|
|
||||||
|
#define USE_I2C // I2C using library wire (+10k code, 0k2 mem, 124 iram)
|
||||||
|
#define USE_DISPLAY // Add I2C Display Support (+2k code)
|
||||||
|
#define USE_DISPLAY_MODES1TO5 // Enable display mode 1 to 5 in addition to mode 0
|
||||||
|
#define USE_DISPLAY_LCD // [DisplayModel 1] Enable Lcd display (I2C addresses 0x27 and 0x3F) (+6k code)
|
||||||
|
#define USE_DISPLAY_SSD1306 // [DisplayModel 2] Enable SSD1306 Oled 128x64 display (I2C addresses 0x3C and 0x3D) (+16k code)
|
||||||
|
#define USE_DISPLAY_MATRIX // [DisplayModel 3] Enable 8x8 Matrix display (I2C adresseses see below) (+11k code)
|
||||||
|
|
||||||
|
#define USE_SPI // Hardware SPI using GPIO12(MISO), GPIO13(MOSI) and GPIO14(CLK) in addition to two user selectable GPIOs(CS and DC)
|
||||||
|
#define USE_DISPLAY_ILI9341 // [DisplayModel 4] Enable ILI9341 Tft 480x320 display (+19k code)
|
||||||
|
|
||||||
|
#undef USE_ARILUX_RF // Remove support for Arilux RF remote controller (-0k8 code, 252 iram (non 2.3.0))
|
||||||
|
#undef USE_RF_FLASH // Remove support for flashing the EFM8BB1 chip on the Sonoff RF Bridge. C2CK must be connected to GPIO4, C2D to GPIO5 on the PCB (-3k code)
|
||||||
|
#endif // USE_DISPLAYS
|
||||||
|
|
||||||
/*********************************************************************************************\
|
/*********************************************************************************************\
|
||||||
* Mandatory define for DS18x20 if changed by above image selections
|
* Mandatory define for DS18x20 if changed by above image selections
|
||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
|
@ -321,7 +321,7 @@
|
|||||||
#endif // USE_I2C
|
#endif // USE_I2C
|
||||||
|
|
||||||
// -- SPI sensors ---------------------------------
|
// -- SPI sensors ---------------------------------
|
||||||
//#define USE_SPI // SPI using library TasmotaTFT
|
//#define USE_SPI // Hardware SPI using GPIO12(MISO), GPIO13(MOSI) and GPIO14(CLK) in addition to two user selectable GPIOs(CS and DC)
|
||||||
|
|
||||||
#ifdef USE_SPI
|
#ifdef USE_SPI
|
||||||
#ifndef USE_DISPLAY
|
#ifndef USE_DISPLAY
|
||||||
@ -384,6 +384,7 @@
|
|||||||
//#define USE_CLASSIC // Create sonoff-classic with initial configuration tools WPS, SmartConfig and WifiManager
|
//#define USE_CLASSIC // Create sonoff-classic with initial configuration tools WPS, SmartConfig and WifiManager
|
||||||
//#define USE_SENSORS // Create sonoff-sensors with useful sensors enabled
|
//#define USE_SENSORS // Create sonoff-sensors with useful sensors enabled
|
||||||
//#define USE_KNX_NO_EMULATION // Create sonoff-knx with KNX but without Emulation
|
//#define USE_KNX_NO_EMULATION // Create sonoff-knx with KNX but without Emulation
|
||||||
|
//#define USE_DISPLAYS // Create sonoff-display with display drivers enabled
|
||||||
//#define BE_MINIMAL // Create sonoff-minimal as intermediate firmware for OTA-MAGIC
|
//#define BE_MINIMAL // Create sonoff-minimal as intermediate firmware for OTA-MAGIC
|
||||||
|
|
||||||
/*********************************************************************************************\
|
/*********************************************************************************************\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user