Updated Displays (markdown)

gemu 2019-08-20 17:43:47 +02:00
parent d678b68f2e
commit 7acf44e2a6
1 changed files with 44 additions and 12 deletions

@ -114,22 +114,54 @@ align right <BR>
`Bi _p_` = set background index color (0..18) for color displays (see index color table below)<BR> `Bi _p_` = set background index color (0..18) for color displays (see index color table below)<BR>
`w _p_` = draws an analog watch with radius p (#define USE_AWATCH) <BR> `w _p_` = draws an analog watch with radius p (#define USE_AWATCH) <BR>
`Pfilename:` = display an rgb 16bit color image when sdcard file system is present<BR> `Pfilename:` = display an rgb 16bit color image when sdcard file system is present<BR>
Draw GFX Buttons (up to 16) Touch Buttons:
buttons switch real Tasmota devices like relais. When button number + 256 a virtual touch toggle button is created (MQTT => TBT)
Draw GFX Buttons (up to 16) buttons switch real Tasmota devices like relais. When button number + 256 a virtual touch toggle button is created (MQTT => TBT)
when button number + 512 a virtual touch push button is created (MQTT => PBT) when button number + 512 a virtual touch push button is created (MQTT => PBT)
(#define USE\_TOUCH\_BUTTONS) (#define USE\_TOUCH\_BUTTONS)
parameters, separated by colons
example b0:260:260:100:50:2:11:4:2:Rel 1:
>b _p_ =button number 0-15 >b _p_ =button number 0-15
x _p_ = x position xp = x position
y _p_ = y position yp = y position
x _s_ = x size xa = x size
y _s_ = y size ys = y size
o _c_ = outline color oc = outline index color
f _c_ = fill color fc = fill index color
t _c_ = text color tc = text index color
t _s_ = text size ts = text size
b _text_: = button text (must end with a colon :) (max 9 chars) text: = button text (must end with a colon :) (max 9 chars)
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))
parameters, separated by colons
>*Gn:xp:yp:xs:ys:t:fmax:fmin* = defines a line chart.
n = number up to 4 charts (0-3) + optional ticks
xp = x position
yp = y position
xs = x size (if xs<0) graph is not reinitialized on second call (e.g. restart of scripter)
ys = y size
t = time in minutes for total chart
ymin = float chart minimum y
ymax = float chart maximum y
icol = line indexcolor (only for color graphs)
>gn:v Adds a value to the chart buffer
n = number up to 4 charts (0-3)
v = float value to add
>Gdn:m = set graph n draw mode 0=off, 1=on when on, redraw graph
Gsn:path: = save graph n to path (if optional sdcard present)
Grn:path: = restore graph n from path (if optional sdcard present)
### Index colors selected in the color panels ILI9488,SSD1351,RA8876 with Ci and Bi ### Index colors selected in the color panels ILI9488,SSD1351,RA8876 with Ci and Bi