diff --git a/Displays.md b/Displays.md index c502ae08..b21bb233 100644 --- a/Displays.md +++ b/Displays.md @@ -8,7 +8,7 @@ All display commands: DisplayAddress | `0..255` = set display module address DisplayDimmer | `0` = switch the display off
`1..100` = switch the display on
`0..100` = set display luminosity *(only on 8x8 Dot-Matrix displays)* DisplayMode | `0..5` = set to display [predefined content](#displaymode-parameters) according to display type - DisplayModel | Set model of your display:
`1` = [I2C LCD Display](https://learn.adafruit.com/i2c-spi-lcd-backpack) (default addresses `0x27`, `0x3F`)
`2` = [SSD1306](https://learn.adafruit.com/monochrome-oled-breakouts/arduino-library-and-examples) OLED 128x32/128x64 (default i2c addresses `0x3C`, `0x3D`)
`3` = [HT16K33](https://www.adafruit.com/product/1427) 8x8 Dot-Matrix
`4` = [ILI9341](https://www.adafruit.com/product/1770) TFT LCD
`5` = [2.9 inch E-Paper Display](https://www.waveshare.com/wiki/2.9inch_e-Paper_Module) 296x128 (software 3 wire SPI)
`6` = [4.2 inch E-Paper Display](https://www.waveshare.com/wiki/4.2inch_e-Paper_Module) 400x300 (software 3 wire SPI)
`7` = [SH1106](https://www.ebay.de/itm/1-3-OLED-Display-Weis-SH1106-128x64-I2C-Modul-Arduino-Raspberry-Pi/162572755829?hash=item25da176375:g:hdgAAOSwQKZdQZ10) OLED 128x64 (default i2c address `0x3c`)
`8` = [ILI9488](https://www.buydisplay.com/default/lcd-3-5-inch-320x480-tft-display-module-optl-touch-screen-w-breakout-board) TFT 480x320 (hardware 3 wire SPI)
`9` = [SSD1351](https://www.ebay.de/itm/1-5-128x128-OLED-Display-Modul-RGB-SPI-Interface-Arduino-Raspberry-Pi/123256209315?hash=item1cb2a47fa3:g:WtsAAOSwZb5bTfjF) color OLED 128x128 (hardware 3 wire SPI)
`10` = [RA8867](https://www.buydisplay.com/default/spi-7-inch-tft-lcd-dislay-module-1024x600-ra8876-optl-touch-screen-panel) TFT LCD 1026x600 (hardware 4 wire SPI) + DisplayModel | Set model of your display:
`1` = [I2C LCD Display](https://learn.adafruit.com/i2c-spi-lcd-backpack) (default addresses `0x27`, `0x3F`)
`2` = [SSD1306](https://learn.adafruit.com/monochrome-oled-breakouts/arduino-library-and-examples) OLED 128x32/128x64 (default i2c addresses `0x3C`, `0x3D`)
`3` = [HT16K33](https://www.adafruit.com/product/1427) 8x8 Dot-Matrix
`4` = [ILI9341](https://www.adafruit.com/product/1770) TFT LCD
`5` = [2.9 inch E-Paper Display](https://www.waveshare.com/wiki/2.9inch_e-Paper_Module) 296x128 (software 3 wire SPI)
`6` = [4.2 inch E-Paper Display](https://www.waveshare.com/wiki/4.2inch_e-Paper_Module) 400x300 (software 3 wire SPI)
`7` = [SH1106](https://www.ebay.de/itm/1-3-OLED-Display-Weis-SH1106-128x64-I2C-Modul-Arduino-Raspberry-Pi/162572755829?hash=item25da176375:g:hdgAAOSwQKZdQZ10) OLED 128x64 (default i2c address `0x3c`)
`8` = [ILI9488](https://www.buydisplay.com/default/lcd-3-5-inch-320x480-tft-display-module-optl-touch-screen-w-breakout-board) TFT 480x320 (capacitive touch, hardware 3 wire SPI)
`9` = [SSD1351](https://www.ebay.de/itm/1-5-128x128-OLED-Display-Modul-RGB-SPI-Interface-Arduino-Raspberry-Pi/123256209315?hash=item1cb2a47fa3:g:WtsAAOSwZb5bTfjF) color OLED 128x128 (hardware 3 wire SPI)
`10` = [RA8867](https://www.buydisplay.com/default/spi-7-inch-tft-lcd-dislay-module-1024x600-ra8876-optl-touch-screen-panel) TFT LCD 1024x600 (capacitive touch, hardware 4 wire SPI) DisplayRefresh | `1..7` = set time in seconds to update predefined content when using `DisplayMode` ≠ `0` DisplaySize | `1..4` = set display scale-up size (only for `DisplayModel 2` (SSD1306 OLED) and `DisplayModel 4` (ILI9341 TFT LCD)) DisplayRotate | Set rotation angle
`0` = 0°
`1` = 90°
`2` = 180°
`3` = 270° @@ -51,7 +51,7 @@ USE_DISPLAY_RA8876 | enables TFT RA8876 display need also USE_SPI USE_TOUCH_BUTTONS | enable virtual touch button support with touch displays SHOW_SPLASH | enable init message on display USE_AWATCH | enables support analog watch -USE_GRAPH | enable line charts (default is 4 graphs) +USE_GRAPH | enable line charts also define e.g. `#define NUM_GRAPHS 4` # DisplayText Use @@ -115,9 +115,9 @@ align right `wp` = draws an analog watch with radius p (#define USE_AWATCH) `Pfilename:` = display an rgb 16bit color image when sdcard file system is present -Touch Buttons (`#define USE_TOUCH_BUTTONS`): +### Touch Buttons -Draw up to 16 GFX buttons to switch real Tasmota devices such as relays. +Draw up to 16 GFX buttons to switch real Tasmota devices such as relays. (`#define USE_TOUCH_BUTTONS`) - Button number + 256 - a virtual touch toggle button is created (MQTT => TBT) - Button number + 512 - a virtual touch push button is created (MQTT => PBT) @@ -135,12 +135,12 @@ ts = text size text: = button text (must end with a colon :) (max 9 chars) -Line chart: +### Line chart Up to 4 line charts may be defined. Ticks may be defined by adding tick numbers to the 1. parameter n like this =\> n = graph number (0-3) + x ticks (16\*number of x ticks) + y ticks (1024\*number of y -ticks) (#define USE\_GRAPH #define NUM\_GRAPHS 4 (16 max)) +ticks) (`#define USE_GRAPH` `#define NUM_GRAPHS 4 (16 max)`) parameters, separated by colons >*Gn:xp:yp:xs:ys:t:fmax:fmin* = defines a line chart.