OXRS-IO / OXRS-IO-TouchPanel-ESP32-FW

OXRS compatible firmware for WT32-xxx touch screen displays
https://oxrs.io/docs/firmware/touch-panel-esp32.html
BSD 3-Clause "New" or "Revised" License
20 stars 3 forks source link

colorBg, screenColorBg and tileColorBg via cmnd/ and conf/ #44

Closed moinmoin-sh closed 2 years ago

moinmoin-sh commented 2 years ago

colorBg, screenColorBg and tileColorBg can be set via conf/ or cmnd/ payloads

Please check the jsonConfigSchema if it fits your expectations

sample config payload

 {
  "screens": [
    {
      "screen": 2,
      "label": "Demo",
      "backgroundColorRgb": {"r": 255, "g": 0, "b": 0 },
      "tiles": [
        {
          "tile": 1,
          "style": "button",
          "icon": "_bulb",
          "backgroundColorRgb": {"r": 0, "g": 255, "b": 0 },
          "label": "Lamps"
        }
      ]
    }
  ]
}

new additional cmnd/ payload

{
    "backgroundColorRgb":{"r":100, "g":0, "b":0}
}

existing cmnd/ and conf/ payloads regarding background colors were not changed.