gemu2015 / Sonoff-Tasmota

Tasmota Fork TCS34725,PN532_i2,ccc1101 Moritz support,m5stack 4,7 epaper, hotplug drivers
GNU General Public License v3.0
24 stars 19 forks source link

Lanbon L8 special pins #32

Closed blakadder closed 3 years ago

blakadder commented 3 years ago

This is what I cobbled together, redefined pins to make all the features on the device work. Scuse the basic undefs :D Rework as you see fit.

note: had to uncomment line 222 in scripter.ino to make it compile

complete setup on https://templates.blakadder.com/lanbon_L8-HS.html

gemu2015 commented 3 years ago

ok merged into Tasmota, you may correct the docs to use Tasmota instead of my fork.

if you are interested in picture buttons my last recent fork enables jpeg pictures as buttons.

additional defines

define JPEG_PICTS

define USE_SCRIPT_FATFS -1 or SDCARD

on file system store a jpeg picture with .jpg ending in button definition as button name give path to picture /pname ommit the .jpg here because very limited label buffer size (only 9 chars) the picture is drawn in original size, no clipping so choose button size equal to picture size

selected picture is color inverted, so black and white would possibly give the best results

gemu2015 commented 3 years ago

now support for extra on/off state picture if picture name ends with 1 selected state gets picture with ending 2