From 856c4ff59b007647d779a479abf819ebfb1b3527 Mon Sep 17 00:00:00 2001 From: LuBeDa Date: Fri, 28 Apr 2023 17:54:05 +0200 Subject: [PATCH] renamed to ehmtxv2 --- README copy.md | 8 +- components/{ehmtx => ehmtxv2}/EHMTX.cpp | 0 components/{ehmtx => ehmtxv2}/EHMTX.h | 0 components/{ehmtx => ehmtxv2}/EHMTX_icons.cpp | 0 components/{ehmtx => ehmtxv2}/EHMTX_queue.cpp | 0 components/{ehmtx => ehmtxv2}/__init__.py | 2 +- fullfeature.yaml | 164 ------------------ 7 files changed, 5 insertions(+), 169 deletions(-) rename components/{ehmtx => ehmtxv2}/EHMTX.cpp (100%) rename components/{ehmtx => ehmtxv2}/EHMTX.h (100%) rename components/{ehmtx => ehmtxv2}/EHMTX_icons.cpp (100%) rename components/{ehmtx => ehmtxv2}/EHMTX_queue.cpp (100%) rename components/{ehmtx => ehmtxv2}/__init__.py (99%) delete mode 100644 fullfeature.yaml diff --git a/README copy.md b/README copy.md index f5510f9..3fb168c 100644 --- a/README copy.md +++ b/README copy.md @@ -2,7 +2,7 @@ This version is a "work in progress". So every may change and every thing will break. -# EspHoMaTriX (ehmtx) +# EspHoMaTriXv2 (ehmtxv2) A simple DIY status display, build with a flexible 8x32 RGB LED panel implemented with [esphome.io](https://esphome.io) @@ -225,14 +225,14 @@ See also [icon parameter](#icons) ## Configuration -### ehmtx component +### ehmtxv2 component This component is highly customizable. ***Example*** ``` -ehmtx: +ehmtxv2: id: rgb8x32 time_component: ehmtx_time matrix_component: ehmtx_display @@ -494,7 +494,7 @@ See the examples: ##### Write information to esphome log ```yaml -ehmtx: +ehmtxv2: .... on_next_screen: lambda: |- diff --git a/components/ehmtx/EHMTX.cpp b/components/ehmtxv2/EHMTX.cpp similarity index 100% rename from components/ehmtx/EHMTX.cpp rename to components/ehmtxv2/EHMTX.cpp diff --git a/components/ehmtx/EHMTX.h b/components/ehmtxv2/EHMTX.h similarity index 100% rename from components/ehmtx/EHMTX.h rename to components/ehmtxv2/EHMTX.h diff --git a/components/ehmtx/EHMTX_icons.cpp b/components/ehmtxv2/EHMTX_icons.cpp similarity index 100% rename from components/ehmtx/EHMTX_icons.cpp rename to components/ehmtxv2/EHMTX_icons.cpp diff --git a/components/ehmtx/EHMTX_queue.cpp b/components/ehmtxv2/EHMTX_queue.cpp similarity index 100% rename from components/ehmtx/EHMTX_queue.cpp rename to components/ehmtxv2/EHMTX_queue.cpp diff --git a/components/ehmtx/__init__.py b/components/ehmtxv2/__init__.py similarity index 99% rename from components/ehmtx/__init__.py rename to components/ehmtxv2/__init__.py index 2af5ff7..c54f86b 100644 --- a/components/ehmtx/__init__.py +++ b/components/ehmtxv2/__init__.py @@ -15,7 +15,7 @@ from esphome.cpp_generator import RawExpression _LOGGER = logging.getLogger(__name__) DEPENDENCIES = ["display", "light", "api"] -AUTO_LOAD = ["ehmtx"] +AUTO_LOAD = ["ehmtxv2"] IMAGE_TYPE_RGB565 = 4 MAXFRAMES = 110 MAXICONS = 90 diff --git a/fullfeature.yaml b/fullfeature.yaml deleted file mode 100644 index cbdd9fa..0000000 --- a/fullfeature.yaml +++ /dev/null @@ -1,164 +0,0 @@ -# esphome config file with all features -substitutions: - devicename: ehmtx8266 - ledpin: GPIO02 - board: d1_mini - loglevel: DEBUG - -external_components: - - source: - type: git - url: https://github.com/lubeda/EsphoMaTrix - -esphome: - name: $devicename - on_boot: - priority: -100 - then: - - ehmtx.text.color: - id: rgb8x32 - red: !lambda return 200; - green: !lambda return 100; - blue: !lambda return 50; - - ehmtx.clock.color: - id: rgb8x32 - red: !lambda return 150; - green: !lambda return 0; - blue: !lambda return 100; - - ehmtx.today.color: - id: rgb8x32 - red: !lambda return 0; - green: !lambda return 100; - blue: !lambda return 0; - - ehmtx.weekday.color: - id: rgb8x32 - red: !lambda return 0; - green: !lambda return 0; - blue: !lambda return 100; - - ehmtx.alarm.color: - id: rgb8x32 - red: !lambda return 200; - green: !lambda return 150; - blue: !lambda return 30; - -web_server: - port: 80 - -esp8266: - board: $board - -font: - - file: monobit.ttf - id: ehmtx_font - size: 16 - glyphs: | - !?"%()+*=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz€@<>/ - -logger: - level: $loglevel - -api: - services: - -ota: - password: !secret ota_password - -wifi: - ssid: !secret wifi_ssid - password: !secret wifi_password - -light: - - platform: neopixelbus - id: ehmtx_light - type: GRB - variant: WS2812 - pin: $ledpin - num_leds: 256 - color_correct: [30%, 30%, 30%] - name: "$devicename Light" - restore_mode: ALWAYS_OFF - on_turn_on: - lambda: |- - id(ehmtx_display)->set_enabled(false); - on_turn_off: - lambda: |- - id(ehmtx_display)->set_enabled(true); - -time: - - platform: homeassistant - id: ehmtx_time - -display: - - platform: addressable_light - id: ehmtx_display - addressable_light_id: ehmtx_light - width: 32 - height: 8 - pixel_mapper: |- - if (x % 2 == 0) { - return (x * 8) + y; - } - return (x * 8) + (7 - y); - rotation: 0° - update_interval: 16ms - auto_clear_enabled: true - lambda: |- - id(rgb8x32)->tick(); - id(rgb8x32)->draw(); - -sensor: - - platform: uptime - name: Uptime Sensor - -ehmtx: - id: rgb8x32 - time_component: ehmtx_time - matrix_component: ehmtx_display - clock_time: 5 # seconds - screen_time: 8 # seconds - font_id: ehmtx_font - show_dow: true # day of week - icons2html: true # generate html with con overview - brightness: 80 # percent - time_format: "%H:%M" - date_format: "%d.%m." - week_start_monday: true - xoffset: 1 - yoffset: 2 - scroll_count: 2 - scroll_interval: 80 - frame_interval: 192 - - on_next_screen: # trigger on screen change - lambda: |- - ESP_LOGD("TriggerTest","Iconname: %s",x.c_str()); - ESP_LOGI("TriggerTest","Text: %s",y.c_str()); - - on_next_clock: # trigger on clock display - then: - - ehmtx.clock.color: - id: rgb8x32 - red: !lambda return 150; - green: !lambda return rand() % 255; - blue: !lambda return 100; - - icons: - - id: xani - lameid: 6075 - - id: xsta - lameid: 11236 - - url: https://developer.lametric.com/content/apps/icon_thumbs/48720.gif - pingpong: true - id: pipo - frame_duration: 300 - - lameid: 5965 - frame_duration: 180 - id: d180 - - lameid: 5965 - frame_duration: 80 - id: d080 - - id: fullscreen - file: sample8x32.gif - - id: samplegif - file: sample8x8.gif -