esphome 2024.12.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- esphome/__init__.py +0 -0
- esphome/__main__.py +1045 -0
- esphome/automation.py +430 -0
- esphome/codegen.py +93 -0
- esphome/components/__init__.py +0 -0
- esphome/components/a01nyub/__init__.py +1 -0
- esphome/components/a01nyub/a01nyub.cpp +44 -0
- esphome/components/a01nyub/a01nyub.h +27 -0
- esphome/components/a01nyub/sensor.py +41 -0
- esphome/components/a02yyuw/__init__.py +1 -0
- esphome/components/a02yyuw/a02yyuw.cpp +43 -0
- esphome/components/a02yyuw/a02yyuw.h +27 -0
- esphome/components/a02yyuw/sensor.py +41 -0
- esphome/components/a4988/__init__.py +0 -0
- esphome/components/a4988/a4988.cpp +56 -0
- esphome/components/a4988/a4988.h +29 -0
- esphome/components/a4988/stepper.py +33 -0
- esphome/components/absolute_humidity/__init__.py +1 -0
- esphome/components/absolute_humidity/absolute_humidity.cpp +182 -0
- esphome/components/absolute_humidity/absolute_humidity.h +76 -0
- esphome/components/absolute_humidity/sensor.py +56 -0
- esphome/components/ac_dimmer/__init__.py +0 -0
- esphome/components/ac_dimmer/ac_dimmer.cpp +233 -0
- esphome/components/ac_dimmer/ac_dimmer.h +70 -0
- esphome/components/ac_dimmer/output.py +52 -0
- esphome/components/adalight/__init__.py +27 -0
- esphome/components/adalight/adalight_light_effect.cpp +142 -0
- esphome/components/adalight/adalight_light_effect.h +39 -0
- esphome/components/adc/__init__.py +208 -0
- esphome/components/adc/adc_sensor.h +90 -0
- esphome/components/adc/adc_sensor_common.cpp +24 -0
- esphome/components/adc/adc_sensor_esp32.cpp +163 -0
- esphome/components/adc/adc_sensor_esp8266.cpp +58 -0
- esphome/components/adc/adc_sensor_libretiny.cpp +48 -0
- esphome/components/adc/adc_sensor_rp2040.cpp +93 -0
- esphome/components/adc/sensor.py +136 -0
- esphome/components/adc128s102/__init__.py +23 -0
- esphome/components/adc128s102/adc128s102.cpp +35 -0
- esphome/components/adc128s102/adc128s102.h +23 -0
- esphome/components/adc128s102/sensor/__init__.py +38 -0
- esphome/components/adc128s102/sensor/adc128s102_sensor.cpp +24 -0
- esphome/components/adc128s102/sensor/adc128s102_sensor.h +29 -0
- esphome/components/addressable_light/__init__.py +0 -0
- esphome/components/addressable_light/addressable_light_display.cpp +67 -0
- esphome/components/addressable_light/addressable_light_display.h +63 -0
- esphome/components/addressable_light/display.py +62 -0
- esphome/components/ade7880/__init__.py +1 -0
- esphome/components/ade7880/ade7880.cpp +304 -0
- esphome/components/ade7880/ade7880.h +131 -0
- esphome/components/ade7880/ade7880_i2c.cpp +101 -0
- esphome/components/ade7880/ade7880_registers.h +243 -0
- esphome/components/ade7880/sensor.py +290 -0
- esphome/components/ade7953/__init__.py +1 -0
- esphome/components/ade7953/sensor.py +5 -0
- esphome/components/ade7953_base/__init__.py +201 -0
- esphome/components/ade7953_base/ade7953_base.cpp +150 -0
- esphome/components/ade7953_base/ade7953_base.h +125 -0
- esphome/components/ade7953_i2c/__init__.py +1 -0
- esphome/components/ade7953_i2c/ade7953_i2c.cpp +80 -0
- esphome/components/ade7953_i2c/ade7953_i2c.h +28 -0
- esphome/components/ade7953_i2c/sensor.py +27 -0
- esphome/components/ade7953_spi/__init__.py +1 -0
- esphome/components/ade7953_spi/ade7953_spi.cpp +81 -0
- esphome/components/ade7953_spi/ade7953_spi.h +32 -0
- esphome/components/ade7953_spi/sensor.py +27 -0
- esphome/components/ads1115/__init__.py +32 -0
- esphome/components/ads1115/ads1115.cpp +177 -0
- esphome/components/ads1115/ads1115.h +53 -0
- esphome/components/ads1115/sensor/__init__.py +81 -0
- esphome/components/ads1115/sensor/ads1115_sensor.cpp +30 -0
- esphome/components/ads1115/sensor/ads1115_sensor.h +35 -0
- esphome/components/ads1118/__init__.py +25 -0
- esphome/components/ads1118/ads1118.cpp +126 -0
- esphome/components/ads1118/ads1118.h +46 -0
- esphome/components/ads1118/sensor/__init__.py +97 -0
- esphome/components/ads1118/sensor/ads1118_sensor.cpp +29 -0
- esphome/components/ads1118/sensor/ads1118_sensor.h +36 -0
- esphome/components/ags10/__init__.py +1 -0
- esphome/components/ags10/ags10.cpp +214 -0
- esphome/components/ags10/ags10.h +152 -0
- esphome/components/ags10/sensor.py +132 -0
- esphome/components/aht10/__init__.py +0 -0
- esphome/components/aht10/aht10.cpp +172 -0
- esphome/components/aht10/aht10.h +36 -0
- esphome/components/aht10/sensor.py +65 -0
- esphome/components/aic3204/__init__.py +0 -0
- esphome/components/aic3204/aic3204.cpp +173 -0
- esphome/components/aic3204/aic3204.h +88 -0
- esphome/components/aic3204/audio_dac.py +52 -0
- esphome/components/aic3204/automation.h +23 -0
- esphome/components/airthings_ble/__init__.py +23 -0
- esphome/components/airthings_ble/airthings_listener.cpp +34 -0
- esphome/components/airthings_ble/airthings_listener.h +19 -0
- esphome/components/airthings_wave_base/__init__.py +103 -0
- esphome/components/airthings_wave_base/airthings_wave_base.cpp +211 -0
- esphome/components/airthings_wave_base/airthings_wave_base.h +90 -0
- esphome/components/airthings_wave_mini/__init__.py +1 -0
- esphome/components/airthings_wave_mini/airthings_wave_mini.cpp +55 -0
- esphome/components/airthings_wave_mini/airthings_wave_mini.h +40 -0
- esphome/components/airthings_wave_mini/sensor.py +28 -0
- esphome/components/airthings_wave_plus/__init__.py +1 -0
- esphome/components/airthings_wave_plus/airthings_wave_plus.cpp +86 -0
- esphome/components/airthings_wave_plus/airthings_wave_plus.h +55 -0
- esphome/components/airthings_wave_plus/sensor.py +76 -0
- esphome/components/alarm_control_panel/__init__.py +316 -0
- esphome/components/alarm_control_panel/alarm_control_panel.cpp +156 -0
- esphome/components/alarm_control_panel/alarm_control_panel.h +200 -0
- esphome/components/alarm_control_panel/alarm_control_panel_call.cpp +103 -0
- esphome/components/alarm_control_panel/alarm_control_panel_call.h +40 -0
- esphome/components/alarm_control_panel/alarm_control_panel_state.cpp +34 -0
- esphome/components/alarm_control_panel/alarm_control_panel_state.h +29 -0
- esphome/components/alarm_control_panel/automation.h +191 -0
- esphome/components/alpha3/__init__.py +1 -0
- esphome/components/alpha3/alpha3.cpp +191 -0
- esphome/components/alpha3/alpha3.h +73 -0
- esphome/components/alpha3/sensor.py +85 -0
- esphome/components/am2315c/__init__.py +1 -0
- esphome/components/am2315c/am2315c.cpp +200 -0
- esphome/components/am2315c/am2315c.h +51 -0
- esphome/components/am2315c/sensor.py +54 -0
- esphome/components/am2320/__init__.py +0 -0
- esphome/components/am2320/am2320.cpp +92 -0
- esphome/components/am2320/am2320.h +29 -0
- esphome/components/am2320/sensor.py +56 -0
- esphome/components/am43/__init__.py +1 -0
- esphome/components/am43/am43_base.cpp +144 -0
- esphome/components/am43/am43_base.h +78 -0
- esphome/components/am43/cover/__init__.py +36 -0
- esphome/components/am43/cover/am43_cover.cpp +157 -0
- esphome/components/am43/cover/am43_cover.h +45 -0
- esphome/components/am43/sensor/__init__.py +53 -0
- esphome/components/am43/sensor/am43_sensor.cpp +120 -0
- esphome/components/am43/sensor/am43_sensor.h +45 -0
- esphome/components/analog_threshold/__init__.py +1 -0
- esphome/components/analog_threshold/analog_threshold_binary_sensor.cpp +40 -0
- esphome/components/analog_threshold/analog_threshold_binary_sensor.h +29 -0
- esphome/components/analog_threshold/binary_sensor.py +50 -0
- esphome/components/animation/__init__.py +343 -0
- esphome/components/animation/animation.cpp +70 -0
- esphome/components/animation/animation.h +67 -0
- esphome/components/anova/__init__.py +0 -0
- esphome/components/anova/anova.cpp +158 -0
- esphome/components/anova/anova.h +52 -0
- esphome/components/anova/anova_base.cpp +134 -0
- esphome/components/anova/anova_base.h +79 -0
- esphome/components/anova/climate.py +36 -0
- esphome/components/apds9306/__init__.py +4 -0
- esphome/components/apds9306/apds9306.cpp +152 -0
- esphome/components/apds9306/apds9306.h +66 -0
- esphome/components/apds9306/sensor.py +95 -0
- esphome/components/apds9960/__init__.py +69 -0
- esphome/components/apds9960/apds9960.cpp +408 -0
- esphome/components/apds9960/apds9960.h +76 -0
- esphome/components/apds9960/binary_sensor.py +25 -0
- esphome/components/apds9960/sensor.py +33 -0
- esphome/components/api/__init__.py +286 -0
- esphome/components/api/api_connection.cpp +1572 -0
- esphome/components/api/api_connection.h +272 -0
- esphome/components/api/api_frame_helper.cpp +1031 -0
- esphome/components/api/api_frame_helper.h +193 -0
- esphome/components/api/api_noise_context.h +23 -0
- esphome/components/api/api_pb2.cpp +8946 -0
- esphome/components/api/api_pb2.h +2288 -0
- esphome/components/api/api_pb2_service.cpp +1728 -0
- esphome/components/api/api_pb2_service.h +557 -0
- esphome/components/api/api_server.cpp +407 -0
- esphome/components/api/api_server.h +157 -0
- esphome/components/api/client.py +60 -0
- esphome/components/api/custom_api_device.h +219 -0
- esphome/components/api/homeassistant_service.h +84 -0
- esphome/components/api/list_entities.cpp +108 -0
- esphome/components/api/list_entities.h +90 -0
- esphome/components/api/proto.cpp +92 -0
- esphome/components/api/proto.h +313 -0
- esphome/components/api/subscribe_state.cpp +88 -0
- esphome/components/api/subscribe_state.h +85 -0
- esphome/components/api/user_services.cpp +44 -0
- esphome/components/api/user_services.h +75 -0
- esphome/components/as3935/__init__.py +59 -0
- esphome/components/as3935/as3935.cpp +326 -0
- esphome/components/as3935/as3935.h +132 -0
- esphome/components/as3935/binary_sensor.py +18 -0
- esphome/components/as3935/sensor.py +40 -0
- esphome/components/as3935_i2c/__init__.py +26 -0
- esphome/components/as3935_i2c/as3935_i2c.cpp +44 -0
- esphome/components/as3935_i2c/as3935_i2c.h +22 -0
- esphome/components/as3935_spi/__init__.py +26 -0
- esphome/components/as3935_spi/as3935_spi.cpp +48 -0
- esphome/components/as3935_spi/as3935_spi.h +27 -0
- esphome/components/as5600/__init__.py +227 -0
- esphome/components/as5600/as5600.cpp +138 -0
- esphome/components/as5600/as5600.h +105 -0
- esphome/components/as5600/sensor/__init__.py +119 -0
- esphome/components/as5600/sensor/as5600_sensor.cpp +98 -0
- esphome/components/as5600/sensor/as5600_sensor.h +43 -0
- esphome/components/as7341/__init__.py +0 -0
- esphome/components/as7341/as7341.cpp +271 -0
- esphome/components/as7341/as7341.h +144 -0
- esphome/components/as7341/sensor.py +112 -0
- esphome/components/async_tcp/__init__.py +28 -0
- esphome/components/at581x/__init__.py +223 -0
- esphome/components/at581x/at581x.cpp +195 -0
- esphome/components/at581x/at581x.h +62 -0
- esphome/components/at581x/automation.h +71 -0
- esphome/components/at581x/switch/__init__.py +31 -0
- esphome/components/at581x/switch/rf_switch.cpp +12 -0
- esphome/components/at581x/switch/rf_switch.h +15 -0
- esphome/components/atc_mithermometer/__init__.py +0 -0
- esphome/components/atc_mithermometer/atc_mithermometer.cpp +133 -0
- esphome/components/atc_mithermometer/atc_mithermometer.h +51 -0
- esphome/components/atc_mithermometer/sensor.py +100 -0
- esphome/components/atm90e26/__init__.py +1 -0
- esphome/components/atm90e26/atm90e26.cpp +235 -0
- esphome/components/atm90e26/atm90e26.h +72 -0
- esphome/components/atm90e26/atm90e26_reg.h +70 -0
- esphome/components/atm90e26/sensor.py +157 -0
- esphome/components/atm90e32/__init__.py +7 -0
- esphome/components/atm90e32/atm90e32.cpp +496 -0
- esphome/components/atm90e32/atm90e32.h +140 -0
- esphome/components/atm90e32/atm90e32_reg.h +270 -0
- esphome/components/atm90e32/button/__init__.py +43 -0
- esphome/components/atm90e32/button/atm90e32_button.cpp +20 -0
- esphome/components/atm90e32/button/atm90e32_button.h +27 -0
- esphome/components/atm90e32/sensor.py +233 -0
- esphome/components/audio/__init__.py +9 -0
- esphome/components/audio/audio.h +21 -0
- esphome/components/audio_dac/__init__.py +57 -0
- esphome/components/audio_dac/audio_dac.h +23 -0
- esphome/components/audio_dac/automation.h +43 -0
- esphome/components/axs15231/__init__.py +6 -0
- esphome/components/axs15231/touchscreen/__init__.py +36 -0
- esphome/components/axs15231/touchscreen/axs15231_touchscreen.cpp +64 -0
- esphome/components/axs15231/touchscreen/axs15231_touchscreen.h +27 -0
- esphome/components/b_parasite/__init__.py +0 -0
- esphome/components/b_parasite/b_parasite.cpp +108 -0
- esphome/components/b_parasite/b_parasite.h +42 -0
- esphome/components/b_parasite/sensor.py +92 -0
- esphome/components/ballu/__init__.py +0 -0
- esphome/components/ballu/ballu.cpp +239 -0
- esphome/components/ballu/ballu.h +31 -0
- esphome/components/ballu/climate.py +21 -0
- esphome/components/bang_bang/__init__.py +1 -0
- esphome/components/bang_bang/bang_bang_climate.cpp +210 -0
- esphome/components/bang_bang/bang_bang_climate.h +89 -0
- esphome/components/bang_bang/climate.py +82 -0
- esphome/components/bedjet/__init__.py +52 -0
- esphome/components/bedjet/bedjet_child.h +23 -0
- esphome/components/bedjet/bedjet_codec.cpp +169 -0
- esphome/components/bedjet/bedjet_codec.h +194 -0
- esphome/components/bedjet/bedjet_const.h +107 -0
- esphome/components/bedjet/bedjet_hub.cpp +546 -0
- esphome/components/bedjet/bedjet_hub.h +178 -0
- esphome/components/bedjet/climate/__init__.py +75 -0
- esphome/components/bedjet/climate/bedjet_climate.cpp +353 -0
- esphome/components/bedjet/climate/bedjet_climate.h +94 -0
- esphome/components/bedjet/fan/__init__.py +36 -0
- esphome/components/bedjet/fan/bedjet_fan.cpp +113 -0
- esphome/components/bedjet/fan/bedjet_fan.h +40 -0
- esphome/components/bedjet/sensor/__init__.py +55 -0
- esphome/components/bedjet/sensor/bedjet_sensor.cpp +34 -0
- esphome/components/bedjet/sensor/bedjet_sensor.h +32 -0
- esphome/components/beken_spi_led_strip/__init__.py +0 -0
- esphome/components/beken_spi_led_strip/led_strip.cpp +384 -0
- esphome/components/beken_spi_led_strip/led_strip.h +85 -0
- esphome/components/beken_spi_led_strip/light.py +134 -0
- esphome/components/bh1750/__init__.py +0 -0
- esphome/components/bh1750/bh1750.cpp +169 -0
- esphome/components/bh1750/bh1750.h +33 -0
- esphome/components/bh1750/sensor.py +45 -0
- esphome/components/binary/__init__.py +3 -0
- esphome/components/binary/fan/__init__.py +38 -0
- esphome/components/binary/fan/binary_fan.cpp +40 -0
- esphome/components/binary/fan/binary_fan.h +31 -0
- esphome/components/binary/light/__init__.py +22 -0
- esphome/components/binary/light/binary_light_output.h +33 -0
- esphome/components/binary_sensor/__init__.py +589 -0
- esphome/components/binary_sensor/automation.cpp +123 -0
- esphome/components/binary_sensor/automation.h +158 -0
- esphome/components/binary_sensor/binary_sensor.cpp +68 -0
- esphome/components/binary_sensor/binary_sensor.h +91 -0
- esphome/components/binary_sensor/filter.cpp +133 -0
- esphome/components/binary_sensor/filter.h +126 -0
- esphome/components/binary_sensor_map/__init__.py +0 -0
- esphome/components/binary_sensor_map/binary_sensor_map.cpp +142 -0
- esphome/components/binary_sensor_map/binary_sensor_map.h +100 -0
- esphome/components/binary_sensor_map/sensor.py +106 -0
- esphome/components/bk72xx/__init__.py +51 -0
- esphome/components/bk72xx/boards.py +1264 -0
- esphome/components/bl0906/__init__.py +1 -0
- esphome/components/bl0906/bl0906.cpp +238 -0
- esphome/components/bl0906/bl0906.h +96 -0
- esphome/components/bl0906/const.py +4 -0
- esphome/components/bl0906/constants.h +122 -0
- esphome/components/bl0906/sensor.py +185 -0
- esphome/components/bl0939/__init__.py +1 -0
- esphome/components/bl0939/bl0939.cpp +146 -0
- esphome/components/bl0939/bl0939.h +107 -0
- esphome/components/bl0939/sensor.py +119 -0
- esphome/components/bl0940/__init__.py +1 -0
- esphome/components/bl0940/bl0940.cpp +138 -0
- esphome/components/bl0940/bl0940.h +109 -0
- esphome/components/bl0940/sensor.py +101 -0
- esphome/components/bl0942/__init__.py +1 -0
- esphome/components/bl0942/bl0942.cpp +215 -0
- esphome/components/bl0942/bl0942.h +152 -0
- esphome/components/bl0942/sensor.py +128 -0
- esphome/components/ble_client/__init__.py +308 -0
- esphome/components/ble_client/automation.cpp +13 -0
- esphome/components/ble_client/automation.h +378 -0
- esphome/components/ble_client/ble_client.cpp +89 -0
- esphome/components/ble_client/ble_client.h +81 -0
- esphome/components/ble_client/output/__init__.py +68 -0
- esphome/components/ble_client/output/ble_binary_output.cpp +77 -0
- esphome/components/ble_client/output/ble_binary_output.h +43 -0
- esphome/components/ble_client/sensor/__init__.py +161 -0
- esphome/components/ble_client/sensor/automation.h +41 -0
- esphome/components/ble_client/sensor/ble_rssi_sensor.cpp +79 -0
- esphome/components/ble_client/sensor/ble_rssi_sensor.h +35 -0
- esphome/components/ble_client/sensor/ble_sensor.cpp +142 -0
- esphome/components/ble_client/sensor/ble_sensor.h +52 -0
- esphome/components/ble_client/switch/__init__.py +22 -0
- esphome/components/ble_client/switch/ble_switch.cpp +36 -0
- esphome/components/ble_client/switch/ble_switch.h +30 -0
- esphome/components/ble_client/text_sensor/__init__.py +108 -0
- esphome/components/ble_client/text_sensor/automation.h +39 -0
- esphome/components/ble_client/text_sensor/ble_text_sensor.cpp +133 -0
- esphome/components/ble_client/text_sensor/ble_text_sensor.h +46 -0
- esphome/components/ble_presence/__init__.py +0 -0
- esphome/components/ble_presence/binary_sensor.py +93 -0
- esphome/components/ble_presence/ble_presence_device.cpp +16 -0
- esphome/components/ble_presence/ble_presence_device.h +143 -0
- esphome/components/ble_rssi/__init__.py +0 -0
- esphome/components/ble_rssi/ble_rssi_sensor.cpp +16 -0
- esphome/components/ble_rssi/ble_rssi_sensor.h +126 -0
- esphome/components/ble_rssi/sensor.py +89 -0
- esphome/components/ble_scanner/__init__.py +0 -0
- esphome/components/ble_scanner/ble_scanner.cpp +16 -0
- esphome/components/ble_scanner/ble_scanner.h +38 -0
- esphome/components/ble_scanner/text_sensor.py +25 -0
- esphome/components/bluetooth_proxy/__init__.py +83 -0
- esphome/components/bluetooth_proxy/bluetooth_connection.cpp +268 -0
- esphome/components/bluetooth_proxy/bluetooth_connection.h +37 -0
- esphome/components/bluetooth_proxy/bluetooth_proxy.cpp +522 -0
- esphome/components/bluetooth_proxy/bluetooth_proxy.h +134 -0
- esphome/components/bme280_base/__init__.py +108 -0
- esphome/components/bme280_base/bme280_base.cpp +359 -0
- esphome/components/bme280_base/bme280_base.h +114 -0
- esphome/components/bme280_i2c/__init__.py +0 -0
- esphome/components/bme280_i2c/bme280_i2c.cpp +30 -0
- esphome/components/bme280_i2c/bme280_i2c.h +20 -0
- esphome/components/bme280_i2c/sensor.py +21 -0
- esphome/components/bme280_spi/__init__.py +0 -0
- esphome/components/bme280_spi/bme280_spi.cpp +65 -0
- esphome/components/bme280_spi/bme280_spi.h +20 -0
- esphome/components/bme280_spi/sensor.py +23 -0
- esphome/components/bme680/__init__.py +0 -0
- esphome/components/bme680/bme680.cpp +515 -0
- esphome/components/bme680/bme680.h +139 -0
- esphome/components/bme680/sensor.py +159 -0
- esphome/components/bme680_bsec/__init__.py +88 -0
- esphome/components/bme680_bsec/bme680_bsec.cpp +563 -0
- esphome/components/bme680_bsec/bme680_bsec.h +137 -0
- esphome/components/bme680_bsec/sensor.py +123 -0
- esphome/components/bme680_bsec/text_sensor.py +32 -0
- esphome/components/bme68x_bsec2/__init__.py +196 -0
- esphome/components/bme68x_bsec2/bme68x_bsec2.cpp +526 -0
- esphome/components/bme68x_bsec2/bme68x_bsec2.h +161 -0
- esphome/components/bme68x_bsec2/sensor.py +130 -0
- esphome/components/bme68x_bsec2/text_sensor.py +33 -0
- esphome/components/bme68x_bsec2_i2c/__init__.py +28 -0
- esphome/components/bme68x_bsec2_i2c/bme68x_bsec2_i2c.cpp +53 -0
- esphome/components/bme68x_bsec2_i2c/bme68x_bsec2_i2c.h +28 -0
- esphome/components/bmi160/__init__.py +1 -0
- esphome/components/bmi160/bmi160.cpp +270 -0
- esphome/components/bmi160/bmi160.h +44 -0
- esphome/components/bmi160/sensor.py +102 -0
- esphome/components/bmp085/__init__.py +0 -0
- esphome/components/bmp085/bmp085.cpp +138 -0
- esphome/components/bmp085/bmp085.h +45 -0
- esphome/components/bmp085/sensor.py +56 -0
- esphome/components/bmp280/__init__.py +0 -0
- esphome/components/bmp280/sensor.py +5 -0
- esphome/components/bmp280_base/__init__.py +88 -0
- esphome/components/bmp280_base/bmp280_base.cpp +273 -0
- esphome/components/bmp280_base/bmp280_base.h +98 -0
- esphome/components/bmp280_i2c/__init__.py +0 -0
- esphome/components/bmp280_i2c/bmp280_i2c.cpp +27 -0
- esphome/components/bmp280_i2c/bmp280_i2c.h +22 -0
- esphome/components/bmp280_i2c/sensor.py +22 -0
- esphome/components/bmp280_spi/__init__.py +0 -0
- esphome/components/bmp280_spi/bmp280_spi.cpp +65 -0
- esphome/components/bmp280_spi/bmp280_spi.h +20 -0
- esphome/components/bmp280_spi/sensor.py +22 -0
- esphome/components/bmp3xx/__init__.py +0 -0
- esphome/components/bmp3xx/sensor.py +7 -0
- esphome/components/bmp3xx_base/__init__.py +95 -0
- esphome/components/bmp3xx_base/bmp3xx_base.cpp +389 -0
- esphome/components/bmp3xx_base/bmp3xx_base.h +242 -0
- esphome/components/bmp3xx_i2c/__init__.py +0 -0
- esphome/components/bmp3xx_i2c/bmp3xx_i2c.cpp +29 -0
- esphome/components/bmp3xx_i2c/bmp3xx_i2c.h +17 -0
- esphome/components/bmp3xx_i2c/sensor.py +22 -0
- esphome/components/bmp3xx_spi/__init__.py +0 -0
- esphome/components/bmp3xx_spi/bmp3xx_spi.cpp +57 -0
- esphome/components/bmp3xx_spi/bmp3xx_spi.h +19 -0
- esphome/components/bmp3xx_spi/sensor.py +22 -0
- esphome/components/bmp581/__init__.py +0 -0
- esphome/components/bmp581/bmp581.cpp +596 -0
- esphome/components/bmp581/bmp581.h +222 -0
- esphome/components/bmp581/sensor.py +163 -0
- esphome/components/bp1658cj/__init__.py +44 -0
- esphome/components/bp1658cj/bp1658cj.cpp +131 -0
- esphome/components/bp1658cj/bp1658cj.h +64 -0
- esphome/components/bp1658cj/output.py +27 -0
- esphome/components/bp5758d/__init__.py +33 -0
- esphome/components/bp5758d/bp5758d.cpp +169 -0
- esphome/components/bp5758d/bp5758d.h +64 -0
- esphome/components/bp5758d/output.py +29 -0
- esphome/components/button/__init__.py +133 -0
- esphome/components/button/automation.h +28 -0
- esphome/components/button/button.cpp +17 -0
- esphome/components/button/button.h +52 -0
- esphome/components/bytebuffer/__init__.py +5 -0
- esphome/components/bytebuffer/bytebuffer.h +421 -0
- esphome/components/canbus/__init__.py +169 -0
- esphome/components/canbus/canbus.cpp +96 -0
- esphome/components/canbus/canbus.h +160 -0
- esphome/components/cap1188/__init__.py +45 -0
- esphome/components/cap1188/binary_sensor.py +23 -0
- esphome/components/cap1188/cap1188.cpp +88 -0
- esphome/components/cap1188/cap1188.h +70 -0
- esphome/components/captive_portal/__init__.py +49 -0
- esphome/components/captive_portal/captive_index.h +109 -0
- esphome/components/captive_portal/captive_portal.cpp +95 -0
- esphome/components/captive_portal/captive_portal.h +75 -0
- esphome/components/ccs811/__init__.py +0 -0
- esphome/components/ccs811/ccs811.cpp +189 -0
- esphome/components/ccs811/ccs811.h +57 -0
- esphome/components/ccs811/sensor.py +84 -0
- esphome/components/cd74hc4067/__init__.py +54 -0
- esphome/components/cd74hc4067/cd74hc4067.cpp +87 -0
- esphome/components/cd74hc4067/cd74hc4067.h +65 -0
- esphome/components/cd74hc4067/sensor.py +55 -0
- esphome/components/ch422g/__init__.py +76 -0
- esphome/components/ch422g/ch422g.cpp +139 -0
- esphome/components/ch422g/ch422g.h +68 -0
- esphome/components/climate/__init__.py +487 -0
- esphome/components/climate/automation.h +62 -0
- esphome/components/climate/climate.cpp +632 -0
- esphome/components/climate/climate.h +307 -0
- esphome/components/climate/climate_mode.cpp +111 -0
- esphome/components/climate/climate_mode.h +117 -0
- esphome/components/climate/climate_traits.cpp +15 -0
- esphome/components/climate/climate_traits.h +213 -0
- esphome/components/climate_ir/__init__.py +50 -0
- esphome/components/climate_ir/climate_ir.cpp +84 -0
- esphome/components/climate_ir/climate_ir.h +71 -0
- esphome/components/climate_ir_lg/__init__.py +0 -0
- esphome/components/climate_ir_lg/climate.py +47 -0
- esphome/components/climate_ir_lg/climate_ir_lg.cpp +222 -0
- esphome/components/climate_ir_lg/climate_ir_lg.h +57 -0
- esphome/components/color/__init__.py +108 -0
- esphome/components/color_temperature/__init__.py +0 -0
- esphome/components/color_temperature/ct_light_output.h +38 -0
- esphome/components/color_temperature/light.py +42 -0
- esphome/components/combination/__init__.py +0 -0
- esphome/components/combination/combination.cpp +262 -0
- esphome/components/combination/combination.h +141 -0
- esphome/components/combination/sensor.py +176 -0
- esphome/components/coolix/__init__.py +0 -0
- esphome/components/coolix/climate.py +21 -0
- esphome/components/coolix/coolix.cpp +162 -0
- esphome/components/coolix/coolix.h +45 -0
- esphome/components/copy/__init__.py +5 -0
- esphome/components/copy/binary_sensor/__init__.py +41 -0
- esphome/components/copy/binary_sensor/copy_binary_sensor.cpp +18 -0
- esphome/components/copy/binary_sensor/copy_binary_sensor.h +21 -0
- esphome/components/copy/button/__init__.py +41 -0
- esphome/components/copy/button/copy_button.cpp +14 -0
- esphome/components/copy/button/copy_button.h +22 -0
- esphome/components/copy/cover/__init__.py +38 -0
- esphome/components/copy/cover/copy_cover.cpp +51 -0
- esphome/components/copy/cover/copy_cover.h +25 -0
- esphome/components/copy/fan/__init__.py +36 -0
- esphome/components/copy/fan/copy_fan.cpp +58 -0
- esphome/components/copy/fan/copy_fan.h +26 -0
- esphome/components/copy/lock/__init__.py +36 -0
- esphome/components/copy/lock/copy_lock.cpp +29 -0
- esphome/components/copy/lock/copy_lock.h +23 -0
- esphome/components/copy/number/__init__.py +41 -0
- esphome/components/copy/number/copy_number.cpp +29 -0
- esphome/components/copy/number/copy_number.h +23 -0
- esphome/components/copy/select/__init__.py +39 -0
- esphome/components/copy/select/copy_select.cpp +27 -0
- esphome/components/copy/select/copy_select.h +23 -0
- esphome/components/copy/sensor/__init__.py +45 -0
- esphome/components/copy/sensor/copy_sensor.cpp +18 -0
- esphome/components/copy/sensor/copy_sensor.h +21 -0
- esphome/components/copy/switch/__init__.py +39 -0
- esphome/components/copy/switch/copy_switch.cpp +26 -0
- esphome/components/copy/switch/copy_switch.h +23 -0
- esphome/components/copy/text/__init__.py +36 -0
- esphome/components/copy/text/copy_text.cpp +25 -0
- esphome/components/copy/text/copy_text.h +23 -0
- esphome/components/copy/text_sensor/__init__.py +37 -0
- esphome/components/copy/text_sensor/copy_text_sensor.cpp +18 -0
- esphome/components/copy/text_sensor/copy_text_sensor.h +21 -0
- esphome/components/cover/__init__.py +230 -0
- esphome/components/cover/automation.h +135 -0
- esphome/components/cover/cover.cpp +226 -0
- esphome/components/cover/cover.h +179 -0
- esphome/components/cover/cover_traits.h +30 -0
- esphome/components/cs5460a/__init__.py +0 -0
- esphome/components/cs5460a/cs5460a.cpp +340 -0
- esphome/components/cs5460a/cs5460a.h +125 -0
- esphome/components/cs5460a/sensor.py +138 -0
- esphome/components/cse7761/__init__.py +0 -0
- esphome/components/cse7761/cse7761.cpp +244 -0
- esphome/components/cse7761/cse7761.h +52 -0
- esphome/components/cse7761/sensor.py +90 -0
- esphome/components/cse7766/__init__.py +0 -0
- esphome/components/cse7766/cse7766.cpp +251 -0
- esphome/components/cse7766/cse7766.h +48 -0
- esphome/components/cse7766/sensor.py +111 -0
- esphome/components/cst226/__init__.py +6 -0
- esphome/components/cst226/touchscreen/__init__.py +38 -0
- esphome/components/cst226/touchscreen/cst226_touchscreen.cpp +92 -0
- esphome/components/cst226/touchscreen/cst226_touchscreen.h +44 -0
- esphome/components/cst816/__init__.py +6 -0
- esphome/components/cst816/binary_sensor/__init__.py +28 -0
- esphome/components/cst816/binary_sensor/cst816_button.h +27 -0
- esphome/components/cst816/touchscreen/__init__.py +37 -0
- esphome/components/cst816/touchscreen/cst816_touchscreen.cpp +118 -0
- esphome/components/cst816/touchscreen/cst816_touchscreen.h +63 -0
- esphome/components/ct_clamp/__init__.py +0 -0
- esphome/components/ct_clamp/ct_clamp_sensor.cpp +74 -0
- esphome/components/ct_clamp/ct_clamp_sensor.h +54 -0
- esphome/components/ct_clamp/sensor.py +45 -0
- esphome/components/current_based/__init__.py +1 -0
- esphome/components/current_based/cover.py +128 -0
- esphome/components/current_based/current_based_cover.cpp +270 -0
- esphome/components/current_based/current_based_cover.h +97 -0
- esphome/components/custom/__init__.py +3 -0
- esphome/components/custom/binary_sensor/__init__.py +31 -0
- esphome/components/custom/binary_sensor/custom_binary_sensor.cpp +16 -0
- esphome/components/custom/binary_sensor/custom_binary_sensor.h +26 -0
- esphome/components/custom/climate/__init__.py +30 -0
- esphome/components/custom/climate/custom_climate.h +22 -0
- esphome/components/custom/cover/__init__.py +30 -0
- esphome/components/custom/cover/custom_cover.h +21 -0
- esphome/components/custom/light/__init__.py +30 -0
- esphome/components/custom/light/custom_light_output.h +24 -0
- esphome/components/custom/output/__init__.py +61 -0
- esphome/components/custom/output/custom_output.h +37 -0
- esphome/components/custom/sensor/__init__.py +27 -0
- esphome/components/custom/sensor/custom_sensor.cpp +16 -0
- esphome/components/custom/sensor/custom_sensor.h +24 -0
- esphome/components/custom/switch/__init__.py +27 -0
- esphome/components/custom/switch/custom_switch.cpp +16 -0
- esphome/components/custom/switch/custom_switch.h +24 -0
- esphome/components/custom/text_sensor/__init__.py +32 -0
- esphome/components/custom/text_sensor/custom_text_sensor.cpp +16 -0
- esphome/components/custom/text_sensor/custom_text_sensor.h +26 -0
- esphome/components/custom_component/__init__.py +31 -0
- esphome/components/custom_component/custom_component.h +28 -0
- esphome/components/cwww/__init__.py +0 -0
- esphome/components/cwww/cwww_light_output.h +40 -0
- esphome/components/cwww/light.py +48 -0
- esphome/components/dac7678/__init__.py +32 -0
- esphome/components/dac7678/dac7678_output.cpp +86 -0
- esphome/components/dac7678/dac7678_output.h +55 -0
- esphome/components/dac7678/output.py +27 -0
- esphome/components/daikin/__init__.py +0 -0
- esphome/components/daikin/climate.py +20 -0
- esphome/components/daikin/daikin.cpp +249 -0
- esphome/components/daikin/daikin.h +64 -0
- esphome/components/daikin_arc/__init__.py +1 -0
- esphome/components/daikin_arc/climate.py +18 -0
- esphome/components/daikin_arc/daikin_arc.cpp +487 -0
- esphome/components/daikin_arc/daikin_arc.h +76 -0
- esphome/components/daikin_brc/__init__.py +1 -0
- esphome/components/daikin_brc/climate.py +23 -0
- esphome/components/daikin_brc/daikin_brc.cpp +273 -0
- esphome/components/daikin_brc/daikin_brc.h +82 -0
- esphome/components/dallas/__init__.py +7 -0
- esphome/components/dallas/sensor.py +5 -0
- esphome/components/dallas_temp/__init__.py +1 -0
- esphome/components/dallas_temp/dallas_temp.cpp +169 -0
- esphome/components/dallas_temp/dallas_temp.h +32 -0
- esphome/components/dallas_temp/sensor.py +43 -0
- esphome/components/daly_bms/__init__.py +33 -0
- esphome/components/daly_bms/binary_sensor.py +38 -0
- esphome/components/daly_bms/daly_bms.cpp +319 -0
- esphome/components/daly_bms/daly_bms.h +91 -0
- esphome/components/daly_bms/sensor.py +229 -0
- esphome/components/daly_bms/text_sensor.py +34 -0
- esphome/components/dashboard_import/__init__.py +168 -0
- esphome/components/dashboard_import/dashboard_import.cpp +12 -0
- esphome/components/dashboard_import/dashboard_import.h +12 -0
- esphome/components/datetime/__init__.py +271 -0
- esphome/components/datetime/date_entity.cpp +131 -0
- esphome/components/datetime/date_entity.h +117 -0
- esphome/components/datetime/datetime_base.h +48 -0
- esphome/components/datetime/datetime_entity.cpp +252 -0
- esphome/components/datetime/datetime_entity.h +152 -0
- esphome/components/datetime/time_entity.cpp +154 -0
- esphome/components/datetime/time_entity.h +131 -0
- esphome/components/debug/__init__.py +46 -0
- esphome/components/debug/debug_component.cpp +93 -0
- esphome/components/debug/debug_component.h +70 -0
- esphome/components/debug/debug_esp32.cpp +297 -0
- esphome/components/debug/debug_esp8266.cpp +94 -0
- esphome/components/debug/debug_host.cpp +18 -0
- esphome/components/debug/debug_libretiny.cpp +44 -0
- esphome/components/debug/debug_rp2040.cpp +23 -0
- esphome/components/debug/sensor.py +86 -0
- esphome/components/debug/text_sensor.py +40 -0
- esphome/components/deep_sleep/__init__.py +316 -0
- esphome/components/deep_sleep/deep_sleep_component.cpp +76 -0
- esphome/components/deep_sleep/deep_sleep_component.h +217 -0
- esphome/components/deep_sleep/deep_sleep_esp32.cpp +104 -0
- esphome/components/deep_sleep/deep_sleep_esp8266.cpp +23 -0
- esphome/components/delonghi/__init__.py +1 -0
- esphome/components/delonghi/climate.py +20 -0
- esphome/components/delonghi/delonghi.cpp +186 -0
- esphome/components/delonghi/delonghi.h +64 -0
- esphome/components/demo/__init__.py +425 -0
- esphome/components/demo/demo_binary_sensor.h +22 -0
- esphome/components/demo/demo_climate.h +158 -0
- esphome/components/demo/demo_cover.h +87 -0
- esphome/components/demo/demo_fan.h +66 -0
- esphome/components/demo/demo_light.h +68 -0
- esphome/components/demo/demo_number.h +39 -0
- esphome/components/demo/demo_sensor.h +29 -0
- esphome/components/demo/demo_switch.h +22 -0
- esphome/components/demo/demo_text_sensor.h +25 -0
- esphome/components/dfplayer/__init__.py +373 -0
- esphome/components/dfplayer/dfplayer.cpp +263 -0
- esphome/components/dfplayer/dfplayer.h +182 -0
- esphome/components/dfrobot_sen0395/__init__.py +205 -0
- esphome/components/dfrobot_sen0395/automation.h +89 -0
- esphome/components/dfrobot_sen0395/binary_sensor.py +22 -0
- esphome/components/dfrobot_sen0395/commands.cpp +321 -0
- esphome/components/dfrobot_sen0395/commands.h +156 -0
- esphome/components/dfrobot_sen0395/dfrobot_sen0395.cpp +142 -0
- esphome/components/dfrobot_sen0395/dfrobot_sen0395.h +125 -0
- esphome/components/dfrobot_sen0395/switch/__init__.py +65 -0
- esphome/components/dfrobot_sen0395/switch/dfrobot_sen0395_switch.cpp +48 -0
- esphome/components/dfrobot_sen0395/switch/dfrobot_sen0395_switch.h +34 -0
- esphome/components/dht/__init__.py +1 -0
- esphome/components/dht/dht.cpp +257 -0
- esphome/components/dht/dht.h +65 -0
- esphome/components/dht/sensor.py +71 -0
- esphome/components/dht12/__init__.py +0 -0
- esphome/components/dht12/dht12.cpp +70 -0
- esphome/components/dht12/dht12.h +28 -0
- esphome/components/dht12/sensor.py +54 -0
- esphome/components/display/__init__.py +198 -0
- esphome/components/display/display.cpp +856 -0
- esphome/components/display/display.h +765 -0
- esphome/components/display/display_buffer.cpp +72 -0
- esphome/components/display/display_buffer.h +34 -0
- esphome/components/display/display_color_utils.h +159 -0
- esphome/components/display/rect.cpp +98 -0
- esphome/components/display/rect.h +36 -0
- esphome/components/display_menu_base/__init__.py +428 -0
- esphome/components/display_menu_base/automation.h +133 -0
- esphome/components/display_menu_base/display_menu_base.cpp +329 -0
- esphome/components/display_menu_base/display_menu_base.h +82 -0
- esphome/components/display_menu_base/menu_item.cpp +202 -0
- esphome/components/display_menu_base/menu_item.h +191 -0
- esphome/components/dps310/__init__.py +0 -0
- esphome/components/dps310/dps310.cpp +189 -0
- esphome/components/dps310/dps310.h +65 -0
- esphome/components/dps310/sensor.py +62 -0
- esphome/components/ds1307/__init__.py +0 -0
- esphome/components/ds1307/ds1307.cpp +109 -0
- esphome/components/ds1307/ds1307.h +70 -0
- esphome/components/ds1307/time.py +58 -0
- esphome/components/dsmr/__init__.py +93 -0
- esphome/components/dsmr/dsmr.cpp +333 -0
- esphome/components/dsmr/dsmr.h +146 -0
- esphome/components/dsmr/sensor.py +290 -0
- esphome/components/dsmr/text_sensor.py +51 -0
- esphome/components/duty_cycle/__init__.py +0 -0
- esphome/components/duty_cycle/duty_cycle_sensor.cpp +63 -0
- esphome/components/duty_cycle/duty_cycle_sensor.h +37 -0
- esphome/components/duty_cycle/sensor.py +35 -0
- esphome/components/duty_time/__init__.py +1 -0
- esphome/components/duty_time/duty_time_sensor.cpp +105 -0
- esphome/components/duty_time/duty_time_sensor.h +76 -0
- esphome/components/duty_time/sensor.py +127 -0
- esphome/components/e131/__init__.py +58 -0
- esphome/components/e131/e131.cpp +122 -0
- esphome/components/e131/e131.h +57 -0
- esphome/components/e131/e131_addressable_light_effect.cpp +94 -0
- esphome/components/e131/e131_addressable_light_effect.h +45 -0
- esphome/components/e131/e131_packet.cpp +141 -0
- esphome/components/ee895/__init__.py +0 -0
- esphome/components/ee895/ee895.cpp +115 -0
- esphome/components/ee895/ee895.h +34 -0
- esphome/components/ee895/sensor.py +69 -0
- esphome/components/ektf2232/__init__.py +0 -0
- esphome/components/ektf2232/touchscreen/__init__.py +42 -0
- esphome/components/ektf2232/touchscreen/ektf2232.cpp +132 -0
- esphome/components/ektf2232/touchscreen/ektf2232.h +35 -0
- esphome/components/emc2101/__init__.py +83 -0
- esphome/components/emc2101/emc2101.cpp +169 -0
- esphome/components/emc2101/emc2101.h +115 -0
- esphome/components/emc2101/output/__init__.py +21 -0
- esphome/components/emc2101/output/emc2101_output.cpp +9 -0
- esphome/components/emc2101/output/emc2101_output.h +22 -0
- esphome/components/emc2101/sensor/__init__.py +74 -0
- esphome/components/emc2101/sensor/emc2101_sensor.cpp +43 -0
- esphome/components/emc2101/sensor/emc2101_sensor.h +39 -0
- esphome/components/emmeti/__init__.py +0 -0
- esphome/components/emmeti/climate.py +21 -0
- esphome/components/emmeti/emmeti.cpp +316 -0
- esphome/components/emmeti/emmeti.h +109 -0
- esphome/components/endstop/__init__.py +0 -0
- esphome/components/endstop/cover.py +59 -0
- esphome/components/endstop/endstop_cover.cpp +192 -0
- esphome/components/endstop/endstop_cover.h +58 -0
- esphome/components/ens160/__init__.py +0 -0
- esphome/components/ens160/sensor.py +7 -0
- esphome/components/ens160_base/__init__.py +78 -0
- esphome/components/ens160_base/ens160_base.cpp +320 -0
- esphome/components/ens160_base/ens160_base.h +64 -0
- esphome/components/ens160_i2c/__init__.py +0 -0
- esphome/components/ens160_i2c/ens160_i2c.cpp +32 -0
- esphome/components/ens160_i2c/ens160_i2c.h +19 -0
- esphome/components/ens160_i2c/sensor.py +22 -0
- esphome/components/ens160_spi/__init__.py +0 -0
- esphome/components/ens160_spi/ens160_spi.cpp +59 -0
- esphome/components/ens160_spi/ens160_spi.h +22 -0
- esphome/components/ens160_spi/sensor.py +22 -0
- esphome/components/ens210/__init__.py +0 -0
- esphome/components/ens210/ens210.cpp +230 -0
- esphome/components/ens210/ens210.h +39 -0
- esphome/components/ens210/sensor.py +58 -0
- esphome/components/es8311/__init__.py +0 -0
- esphome/components/es8311/audio_dac.py +70 -0
- esphome/components/es8311/es8311.cpp +227 -0
- esphome/components/es8311/es8311.h +135 -0
- esphome/components/es8311/es8311_const.h +195 -0
- esphome/components/esp32/__init__.py +853 -0
- esphome/components/esp32/boards.py +2303 -0
- esphome/components/esp32/const.py +42 -0
- esphome/components/esp32/core.cpp +85 -0
- esphome/components/esp32/gpio.cpp +144 -0
- esphome/components/esp32/gpio.h +40 -0
- esphome/components/esp32/gpio.py +219 -0
- esphome/components/esp32/gpio_esp32.py +71 -0
- esphome/components/esp32/gpio_esp32_c2.py +32 -0
- esphome/components/esp32/gpio_esp32_c3.py +45 -0
- esphome/components/esp32/gpio_esp32_c6.py +45 -0
- esphome/components/esp32/gpio_esp32_h2.py +52 -0
- esphome/components/esp32/gpio_esp32_s2.py +74 -0
- esphome/components/esp32/gpio_esp32_s3.py +64 -0
- esphome/components/esp32/post_build.py.script +77 -0
- esphome/components/esp32/preferences.cpp +199 -0
- esphome/components/esp32/preferences.h +12 -0
- esphome/components/esp32_ble/__init__.py +119 -0
- esphome/components/esp32_ble/ble.cpp +443 -0
- esphome/components/esp32_ble/ble.h +159 -0
- esphome/components/esp32_ble/ble_advertising.cpp +165 -0
- esphome/components/esp32_ble/ble_advertising.h +60 -0
- esphome/components/esp32_ble/ble_event.h +94 -0
- esphome/components/esp32_ble/ble_uuid.cpp +195 -0
- esphome/components/esp32_ble/ble_uuid.h +47 -0
- esphome/components/esp32_ble/const_esp32c6.h +74 -0
- esphome/components/esp32_ble/queue.h +56 -0
- esphome/components/esp32_ble_beacon/__init__.py +85 -0
- esphome/components/esp32_ble_beacon/esp32_ble_beacon.cpp +128 -0
- esphome/components/esp32_ble_beacon/esp32_ble_beacon.h +69 -0
- esphome/components/esp32_ble_client/__init__.py +11 -0
- esphome/components/esp32_ble_client/ble_characteristic.cpp +99 -0
- esphome/components/esp32_ble_client/ble_characteristic.h +39 -0
- esphome/components/esp32_ble_client/ble_client_base.cpp +487 -0
- esphome/components/esp32_ble_client/ble_client_base.h +113 -0
- esphome/components/esp32_ble_client/ble_descriptor.h +25 -0
- esphome/components/esp32_ble_client/ble_service.cpp +77 -0
- esphome/components/esp32_ble_client/ble_service.h +36 -0
- esphome/components/esp32_ble_server/__init__.py +54 -0
- esphome/components/esp32_ble_server/ble_2901.cpp +18 -0
- esphome/components/esp32_ble_server/ble_2901.h +19 -0
- esphome/components/esp32_ble_server/ble_2902.cpp +20 -0
- esphome/components/esp32_ble_server/ble_2902.h +18 -0
- esphome/components/esp32_ble_server/ble_characteristic.cpp +324 -0
- esphome/components/esp32_ble_server/ble_characteristic.h +101 -0
- esphome/components/esp32_ble_server/ble_descriptor.cpp +78 -0
- esphome/components/esp32_ble_server/ble_descriptor.h +51 -0
- esphome/components/esp32_ble_server/ble_server.cpp +207 -0
- esphome/components/esp32_ble_server/ble_server.h +103 -0
- esphome/components/esp32_ble_server/ble_service.cpp +177 -0
- esphome/components/esp32_ble_server/ble_service.h +90 -0
- esphome/components/esp32_ble_tracker/__init__.py +332 -0
- esphome/components/esp32_ble_tracker/automation.h +112 -0
- esphome/components/esp32_ble_tracker/esp32_ble_tracker.cpp +743 -0
- esphome/components/esp32_ble_tracker/esp32_ble_tracker.h +271 -0
- esphome/components/esp32_camera/__init__.py +315 -0
- esphome/components/esp32_camera/esp32_camera.cpp +431 -0
- esphome/components/esp32_camera/esp32_camera.h +250 -0
- esphome/components/esp32_camera_web_server/__init__.py +28 -0
- esphome/components/esp32_camera_web_server/camera_web_server.cpp +244 -0
- esphome/components/esp32_camera_web_server/camera_web_server.h +51 -0
- esphome/components/esp32_can/__init__.py +0 -0
- esphome/components/esp32_can/canbus.py +100 -0
- esphome/components/esp32_can/esp32_can.cpp +158 -0
- esphome/components/esp32_can/esp32_can.h +33 -0
- esphome/components/esp32_dac/__init__.py +0 -0
- esphome/components/esp32_dac/esp32_dac.cpp +54 -0
- esphome/components/esp32_dac/esp32_dac.h +32 -0
- esphome/components/esp32_dac/output.py +35 -0
- esphome/components/esp32_hall/__init__.py +0 -0
- esphome/components/esp32_hall/esp32_hall.cpp +25 -0
- esphome/components/esp32_hall/esp32_hall.h +23 -0
- esphome/components/esp32_hall/sensor.py +28 -0
- esphome/components/esp32_improv/__init__.py +146 -0
- esphome/components/esp32_improv/automation.h +72 -0
- esphome/components/esp32_improv/esp32_improv_component.cpp +349 -0
- esphome/components/esp32_improv/esp32_improv_component.h +120 -0
- esphome/components/esp32_rmt/__init__.py +55 -0
- esphome/components/esp32_rmt_led_strip/__init__.py +0 -0
- esphome/components/esp32_rmt_led_strip/led_strip.cpp +224 -0
- esphome/components/esp32_rmt_led_strip/led_strip.h +92 -0
- esphome/components/esp32_rmt_led_strip/light.py +155 -0
- esphome/components/esp32_touch/__init__.py +325 -0
- esphome/components/esp32_touch/binary_sensor.py +39 -0
- esphome/components/esp32_touch/esp32_touch.cpp +346 -0
- esphome/components/esp32_touch/esp32_touch.h +122 -0
- esphome/components/esp8266/__init__.py +262 -0
- esphome/components/esp8266/boards.py +362 -0
- esphome/components/esp8266/const.py +11 -0
- esphome/components/esp8266/core.cpp +73 -0
- esphome/components/esp8266/core.h +14 -0
- esphome/components/esp8266/gpio.cpp +109 -0
- esphome/components/esp8266/gpio.h +38 -0
- esphome/components/esp8266/gpio.py +210 -0
- esphome/components/esp8266/post_build.py.script +23 -0
- esphome/components/esp8266/preferences.cpp +291 -0
- esphome/components/esp8266/preferences.h +14 -0
- esphome/components/esp8266_pwm/__init__.py +0 -0
- esphome/components/esp8266_pwm/esp8266_pwm.cpp +58 -0
- esphome/components/esp8266_pwm/esp8266_pwm.h +54 -0
- esphome/components/esp8266_pwm/output.py +68 -0
- esphome/components/esphome/ota/__init__.py +134 -0
- esphome/components/esphome/ota/ota_esphome.cpp +413 -0
- esphome/components/esphome/ota/ota_esphome.h +45 -0
- esphome/components/ethernet/__init__.py +326 -0
- esphome/components/ethernet/esp_eth_phy_jl1101.c +355 -0
- esphome/components/ethernet/ethernet_component.cpp +676 -0
- esphome/components/ethernet/ethernet_component.h +153 -0
- esphome/components/ethernet_info/__init__.py +1 -0
- esphome/components/ethernet_info/ethernet_info_text_sensor.cpp +18 -0
- esphome/components/ethernet_info/ethernet_info_text_sensor.h +72 -0
- esphome/components/ethernet_info/text_sensor.py +64 -0
- esphome/components/event/__init__.py +142 -0
- esphome/components/event/automation.h +25 -0
- esphome/components/event/event.cpp +24 -0
- esphome/components/event/event.h +37 -0
- esphome/components/exposure_notifications/__init__.py +39 -0
- esphome/components/exposure_notifications/exposure_notifications.cpp +49 -0
- esphome/components/exposure_notifications/exposure_notifications.h +29 -0
- esphome/components/external_components/__init__.py +116 -0
- esphome/components/ezo/__init__.py +0 -0
- esphome/components/ezo/automation.h +53 -0
- esphome/components/ezo/ezo.cpp +235 -0
- esphome/components/ezo/ezo.h +111 -0
- esphome/components/ezo/sensor.py +114 -0
- esphome/components/ezo_pmp/__init__.py +296 -0
- esphome/components/ezo_pmp/binary_sensor.py +42 -0
- esphome/components/ezo_pmp/ezo_pmp.cpp +543 -0
- esphome/components/ezo_pmp/ezo_pmp.h +252 -0
- esphome/components/ezo_pmp/sensor.py +104 -0
- esphome/components/ezo_pmp/text_sensor.py +39 -0
- esphome/components/factory_reset/__init__.py +5 -0
- esphome/components/factory_reset/button/__init__.py +27 -0
- esphome/components/factory_reset/button/factory_reset_button.cpp +21 -0
- esphome/components/factory_reset/button/factory_reset_button.h +18 -0
- esphome/components/factory_reset/switch/__init__.py +35 -0
- esphome/components/factory_reset/switch/factory_reset_switch.cpp +26 -0
- esphome/components/factory_reset/switch/factory_reset_switch.h +18 -0
- esphome/components/fan/__init__.py +353 -0
- esphome/components/fan/automation.h +230 -0
- esphome/components/fan/fan.cpp +209 -0
- esphome/components/fan/fan.h +151 -0
- esphome/components/fan/fan_state.cpp +16 -0
- esphome/components/fan/fan_state.h +34 -0
- esphome/components/fan/fan_traits.h +47 -0
- esphome/components/fastled_base/__init__.py +48 -0
- esphome/components/fastled_base/fastled_light.cpp +43 -0
- esphome/components/fastled_base/fastled_light.h +243 -0
- esphome/components/fastled_clockless/__init__.py +0 -0
- esphome/components/fastled_clockless/light.py +70 -0
- esphome/components/fastled_spi/__init__.py +0 -0
- esphome/components/fastled_spi/light.py +67 -0
- esphome/components/feedback/__init__.py +1 -0
- esphome/components/feedback/cover.py +157 -0
- esphome/components/feedback/feedback_cover.cpp +446 -0
- esphome/components/feedback/feedback_cover.h +90 -0
- esphome/components/fingerprint_grow/__init__.py +373 -0
- esphome/components/fingerprint_grow/binary_sensor.py +20 -0
- esphome/components/fingerprint_grow/fingerprint_grow.cpp +576 -0
- esphome/components/fingerprint_grow/fingerprint_grow.h +335 -0
- esphome/components/fingerprint_grow/sensor.py +73 -0
- esphome/components/font/__init__.py +617 -0
- esphome/components/font/font.cpp +172 -0
- esphome/components/font/font.h +79 -0
- esphome/components/fs3000/__init__.py +0 -0
- esphome/components/fs3000/fs3000.cpp +107 -0
- esphome/components/fs3000/fs3000.h +35 -0
- esphome/components/fs3000/sensor.py +50 -0
- esphome/components/ft5x06/__init__.py +6 -0
- esphome/components/ft5x06/touchscreen/__init__.py +32 -0
- esphome/components/ft5x06/touchscreen/ft5x06_touchscreen.cpp +102 -0
- esphome/components/ft5x06/touchscreen/ft5x06_touchscreen.h +56 -0
- esphome/components/ft63x6/__init__.py +1 -0
- esphome/components/ft63x6/ft63x6.cpp +134 -0
- esphome/components/ft63x6/ft63x6.h +51 -0
- esphome/components/ft63x6/touchscreen.py +45 -0
- esphome/components/fujitsu_general/__init__.py +0 -0
- esphome/components/fujitsu_general/climate.py +22 -0
- esphome/components/fujitsu_general/fujitsu_general.cpp +404 -0
- esphome/components/fujitsu_general/fujitsu_general.h +82 -0
- esphome/components/gcja5/__init__.py +1 -0
- esphome/components/gcja5/gcja5.cpp +119 -0
- esphome/components/gcja5/gcja5.h +52 -0
- esphome/components/gcja5/sensor.py +118 -0
- esphome/components/gdk101/__init__.py +32 -0
- esphome/components/gdk101/binary_sensor.py +29 -0
- esphome/components/gdk101/gdk101.cpp +189 -0
- esphome/components/gdk101/gdk101.h +52 -0
- esphome/components/gdk101/sensor.py +83 -0
- esphome/components/globals/__init__.py +89 -0
- esphome/components/globals/globals_component.h +145 -0
- esphome/components/gp2y1010au0f/__init__.py +0 -0
- esphome/components/gp2y1010au0f/gp2y1010au0f.cpp +67 -0
- esphome/components/gp2y1010au0f/gp2y1010au0f.h +52 -0
- esphome/components/gp2y1010au0f/sensor.py +61 -0
- esphome/components/gp8403/__init__.py +40 -0
- esphome/components/gp8403/gp8403.cpp +21 -0
- esphome/components/gp8403/gp8403.h +27 -0
- esphome/components/gp8403/output/__init__.py +31 -0
- esphome/components/gp8403/output/gp8403_output.cpp +26 -0
- esphome/components/gp8403/output/gp8403_output.h +25 -0
- esphome/components/gpio/__init__.py +4 -0
- esphome/components/gpio/binary_sensor/__init__.py +28 -0
- esphome/components/gpio/binary_sensor/gpio_binary_sensor.cpp +24 -0
- esphome/components/gpio/binary_sensor/gpio_binary_sensor.h +28 -0
- esphome/components/gpio/one_wire/__init__.py +25 -0
- esphome/components/gpio/one_wire/gpio_one_wire.cpp +205 -0
- esphome/components/gpio/one_wire/gpio_one_wire.h +41 -0
- esphome/components/gpio/output/__init__.py +24 -0
- esphome/components/gpio/output/gpio_binary_output.cpp +16 -0
- esphome/components/gpio/output/gpio_binary_output.h +29 -0
- esphome/components/gpio/switch/__init__.py +39 -0
- esphome/components/gpio/switch/gpio_switch.cpp +75 -0
- esphome/components/gpio/switch/gpio_switch.h +34 -0
- esphome/components/gpio_expander/__init__.py +0 -0
- esphome/components/gpio_expander/cached_gpio.h +38 -0
- esphome/components/gps/__init__.py +97 -0
- esphome/components/gps/gps.cpp +75 -0
- esphome/components/gps/gps.h +71 -0
- esphome/components/gps/time/__init__.py +27 -0
- esphome/components/gps/time/gps_time.cpp +38 -0
- esphome/components/gps/time/gps_time.h +28 -0
- esphome/components/graph/__init__.py +220 -0
- esphome/components/graph/graph.cpp +398 -0
- esphome/components/graph/graph.h +183 -0
- esphome/components/graphical_display_menu/__init__.py +100 -0
- esphome/components/graphical_display_menu/graphical_display_menu.cpp +245 -0
- esphome/components/graphical_display_menu/graphical_display_menu.h +84 -0
- esphome/components/gree/__init__.py +0 -0
- esphome/components/gree/climate.py +35 -0
- esphome/components/gree/gree.cpp +216 -0
- esphome/components/gree/gree.h +109 -0
- esphome/components/grove_gas_mc_v2/__init__.py +0 -0
- esphome/components/grove_gas_mc_v2/grove_gas_mc_v2.cpp +88 -0
- esphome/components/grove_gas_mc_v2/grove_gas_mc_v2.h +39 -0
- esphome/components/grove_gas_mc_v2/sensor.py +77 -0
- esphome/components/grove_tb6612fng/__init__.py +177 -0
- esphome/components/grove_tb6612fng/grove_tb6612fng.cpp +171 -0
- esphome/components/grove_tb6612fng/grove_tb6612fng.h +215 -0
- esphome/components/growatt_solar/__init__.py +0 -0
- esphome/components/growatt_solar/growatt_solar.cpp +141 -0
- esphome/components/growatt_solar/growatt_solar.h +87 -0
- esphome/components/growatt_solar/sensor.py +212 -0
- esphome/components/gt911/__init__.py +6 -0
- esphome/components/gt911/binary_sensor/__init__.py +31 -0
- esphome/components/gt911/binary_sensor/gt911_button.cpp +27 -0
- esphome/components/gt911/binary_sensor/gt911_button.h +28 -0
- esphome/components/gt911/touchscreen/__init__.py +33 -0
- esphome/components/gt911/touchscreen/gt911_touchscreen.cpp +133 -0
- esphome/components/gt911/touchscreen/gt911_touchscreen.h +35 -0
- esphome/components/haier/__init__.py +0 -0
- esphome/components/haier/automation.h +130 -0
- esphome/components/haier/binary_sensor/__init__.py +71 -0
- esphome/components/haier/button/__init__.py +41 -0
- esphome/components/haier/button/self_cleaning.cpp +9 -0
- esphome/components/haier/button/self_cleaning.h +18 -0
- esphome/components/haier/button/steri_cleaning.cpp +9 -0
- esphome/components/haier/button/steri_cleaning.h +18 -0
- esphome/components/haier/climate.py +522 -0
- esphome/components/haier/haier_base.cpp +427 -0
- esphome/components/haier/haier_base.h +187 -0
- esphome/components/haier/hon_climate.cpp +1376 -0
- esphome/components/haier/hon_climate.h +214 -0
- esphome/components/haier/hon_packet.h +260 -0
- esphome/components/haier/logger_handler.cpp +33 -0
- esphome/components/haier/logger_handler.h +14 -0
- esphome/components/haier/sensor/__init__.py +152 -0
- esphome/components/haier/smartair2_climate.cpp +553 -0
- esphome/components/haier/smartair2_climate.h +40 -0
- esphome/components/haier/smartair2_packet.h +88 -0
- esphome/components/haier/switch/__init__.py +91 -0
- esphome/components/haier/switch/beeper.cpp +14 -0
- esphome/components/haier/switch/beeper.h +18 -0
- esphome/components/haier/switch/display.cpp +14 -0
- esphome/components/haier/switch/display.h +18 -0
- esphome/components/haier/switch/health_mode.cpp +14 -0
- esphome/components/haier/switch/health_mode.h +18 -0
- esphome/components/haier/switch/quiet_mode.cpp +14 -0
- esphome/components/haier/switch/quiet_mode.h +18 -0
- esphome/components/haier/text_sensor/__init__.py +54 -0
- esphome/components/havells_solar/__init__.py +0 -0
- esphome/components/havells_solar/havells_solar.cpp +165 -0
- esphome/components/havells_solar/havells_solar.h +117 -0
- esphome/components/havells_solar/havells_solar_registers.h +49 -0
- esphome/components/havells_solar/sensor.py +291 -0
- esphome/components/hbridge/__init__.py +3 -0
- esphome/components/hbridge/fan/__init__.py +76 -0
- esphome/components/hbridge/fan/hbridge_fan.cpp +94 -0
- esphome/components/hbridge/fan/hbridge_fan.h +60 -0
- esphome/components/hbridge/light/__init__.py +30 -0
- esphome/components/hbridge/light/hbridge_light_output.h +58 -0
- esphome/components/hbridge/switch/__init__.py +44 -0
- esphome/components/hbridge/switch/hbridge_switch.cpp +95 -0
- esphome/components/hbridge/switch/hbridge_switch.h +50 -0
- esphome/components/hdc1080/__init__.py +0 -0
- esphome/components/hdc1080/hdc1080.cpp +75 -0
- esphome/components/hdc1080/hdc1080.h +29 -0
- esphome/components/hdc1080/sensor.py +56 -0
- esphome/components/he60r/__init__.py +1 -0
- esphome/components/he60r/cover.py +47 -0
- esphome/components/he60r/he60r.cpp +263 -0
- esphome/components/he60r/he60r.h +46 -0
- esphome/components/heatpumpir/__init__.py +0 -0
- esphome/components/heatpumpir/climate.py +132 -0
- esphome/components/heatpumpir/heatpumpir.cpp +210 -0
- esphome/components/heatpumpir/heatpumpir.h +131 -0
- esphome/components/heatpumpir/ir_sender_esphome.cpp +32 -0
- esphome/components/heatpumpir/ir_sender_esphome.h +25 -0
- esphome/components/hitachi_ac344/__init__.py +0 -0
- esphome/components/hitachi_ac344/climate.py +20 -0
- esphome/components/hitachi_ac344/hitachi_ac344.cpp +370 -0
- esphome/components/hitachi_ac344/hitachi_ac344.h +121 -0
- esphome/components/hitachi_ac424/__init__.py +1 -0
- esphome/components/hitachi_ac424/climate.py +20 -0
- esphome/components/hitachi_ac424/hitachi_ac424.cpp +371 -0
- esphome/components/hitachi_ac424/hitachi_ac424.h +123 -0
- esphome/components/hlw8012/__init__.py +0 -0
- esphome/components/hlw8012/hlw8012.cpp +108 -0
- esphome/components/hlw8012/hlw8012.h +77 -0
- esphome/components/hlw8012/sensor.py +124 -0
- esphome/components/hm3301/__init__.py +0 -0
- esphome/components/hm3301/abstract_aqi_calculator.h +14 -0
- esphome/components/hm3301/aqi_calculator.h +51 -0
- esphome/components/hm3301/aqi_calculator_factory.h +29 -0
- esphome/components/hm3301/caqi_calculator.h +52 -0
- esphome/components/hm3301/hm3301.cpp +101 -0
- esphome/components/hm3301/hm3301.h +52 -0
- esphome/components/hm3301/sensor.py +111 -0
- esphome/components/hmac_md5/__init__.py +2 -0
- esphome/components/hmac_md5/hmac_md5.cpp +58 -0
- esphome/components/hmac_md5/hmac_md5.h +49 -0
- esphome/components/hmc5883l/__init__.py +0 -0
- esphome/components/hmc5883l/hmc5883l.cpp +146 -0
- esphome/components/hmc5883l/hmc5883l.h +70 -0
- esphome/components/hmc5883l/sensor.py +142 -0
- esphome/components/homeassistant/__init__.py +40 -0
- esphome/components/homeassistant/binary_sensor/__init__.py +24 -0
- esphome/components/homeassistant/binary_sensor/homeassistant_binary_sensor.cpp +48 -0
- esphome/components/homeassistant/binary_sensor/homeassistant_binary_sensor.h +24 -0
- esphome/components/homeassistant/number/__init__.py +33 -0
- esphome/components/homeassistant/number/homeassistant_number.cpp +103 -0
- esphome/components/homeassistant/number/homeassistant_number.h +31 -0
- esphome/components/homeassistant/sensor/__init__.py +24 -0
- esphome/components/homeassistant/sensor/homeassistant_sensor.cpp +39 -0
- esphome/components/homeassistant/sensor/homeassistant_sensor.h +23 -0
- esphome/components/homeassistant/switch/__init__.py +43 -0
- esphome/components/homeassistant/switch/homeassistant_switch.cpp +59 -0
- esphome/components/homeassistant/switch/homeassistant_switch.h +22 -0
- esphome/components/homeassistant/text_sensor/__init__.py +24 -0
- esphome/components/homeassistant/text_sensor/homeassistant_text_sensor.cpp +31 -0
- esphome/components/homeassistant/text_sensor/homeassistant_text_sensor.h +23 -0
- esphome/components/homeassistant/time/__init__.py +22 -0
- esphome/components/homeassistant/time/homeassistant_time.cpp +22 -0
- esphome/components/homeassistant/time/homeassistant_time.h +22 -0
- esphome/components/honeywell_hih_i2c/__init__.py +3 -0
- esphome/components/honeywell_hih_i2c/honeywell_hih.cpp +97 -0
- esphome/components/honeywell_hih_i2c/honeywell_hih.h +34 -0
- esphome/components/honeywell_hih_i2c/sensor.py +56 -0
- esphome/components/honeywellabp/__init__.py +1 -0
- esphome/components/honeywellabp/honeywellabp.cpp +102 -0
- esphome/components/honeywellabp/honeywellabp.h +45 -0
- esphome/components/honeywellabp/sensor.py +69 -0
- esphome/components/honeywellabp2_i2c/__init__.py +3 -0
- esphome/components/honeywellabp2_i2c/honeywellabp2.cpp +109 -0
- esphome/components/honeywellabp2_i2c/honeywellabp2.h +60 -0
- esphome/components/honeywellabp2_i2c/sensor.py +75 -0
- esphome/components/host/__init__.py +45 -0
- esphome/components/host/const.py +5 -0
- esphome/components/host/core.cpp +77 -0
- esphome/components/host/gpio.cpp +59 -0
- esphome/components/host/gpio.h +37 -0
- esphome/components/host/gpio.py +62 -0
- esphome/components/host/preferences.cpp +87 -0
- esphome/components/host/preferences.h +66 -0
- esphome/components/host/time/__init__.py +20 -0
- esphome/components/host/time/host_time.h +15 -0
- esphome/components/hrxl_maxsonar_wr/__init__.py +0 -0
- esphome/components/hrxl_maxsonar_wr/hrxl_maxsonar_wr.cpp +77 -0
- esphome/components/hrxl_maxsonar_wr/hrxl_maxsonar_wr.h +25 -0
- esphome/components/hrxl_maxsonar_wr/sensor.py +29 -0
- esphome/components/hte501/__init__.py +0 -0
- esphome/components/hte501/hte501.cpp +90 -0
- esphome/components/hte501/hte501.h +30 -0
- esphome/components/hte501/sensor.py +58 -0
- esphome/components/http_request/__init__.py +288 -0
- esphome/components/http_request/http_request.cpp +24 -0
- esphome/components/http_request/http_request.h +251 -0
- esphome/components/http_request/http_request_arduino.cpp +167 -0
- esphome/components/http_request/http_request_arduino.h +40 -0
- esphome/components/http_request/http_request_idf.cpp +217 -0
- esphome/components/http_request/http_request_idf.h +47 -0
- esphome/components/http_request/ota/__init__.py +100 -0
- esphome/components/http_request/ota/automation.h +42 -0
- esphome/components/http_request/ota/ota_http_request.cpp +269 -0
- esphome/components/http_request/ota/ota_http_request.h +61 -0
- esphome/components/http_request/update/__init__.py +44 -0
- esphome/components/http_request/update/http_request_update.cpp +181 -0
- esphome/components/http_request/update/http_request_update.h +44 -0
- esphome/components/htu21d/__init__.py +0 -0
- esphome/components/htu21d/htu21d.cpp +156 -0
- esphome/components/htu21d/htu21d.h +63 -0
- esphome/components/htu21d/sensor.py +121 -0
- esphome/components/htu31d/__init__.py +1 -0
- esphome/components/htu31d/htu31d.cpp +271 -0
- esphome/components/htu31d/htu31d.h +33 -0
- esphome/components/htu31d/sensor.py +56 -0
- esphome/components/hx711/__init__.py +0 -0
- esphome/components/hx711/hx711.cpp +83 -0
- esphome/components/hx711/hx711.h +38 -0
- esphome/components/hx711/sensor.py +50 -0
- esphome/components/hydreon_rgxx/__init__.py +12 -0
- esphome/components/hydreon_rgxx/binary_sensor.py +53 -0
- esphome/components/hydreon_rgxx/hydreon_rgxx.cpp +295 -0
- esphome/components/hydreon_rgxx/hydreon_rgxx.h +98 -0
- esphome/components/hydreon_rgxx/sensor.py +157 -0
- esphome/components/hyt271/__init__.py +1 -0
- esphome/components/hyt271/hyt271.cpp +52 -0
- esphome/components/hyt271/hyt271.h +27 -0
- esphome/components/hyt271/sensor.py +56 -0
- esphome/components/i2c/__init__.py +179 -0
- esphome/components/i2c/i2c.cpp +103 -0
- esphome/components/i2c/i2c.h +274 -0
- esphome/components/i2c/i2c_bus.h +112 -0
- esphome/components/i2c/i2c_bus_arduino.cpp +326 -0
- esphome/components/i2c/i2c_bus_arduino.h +49 -0
- esphome/components/i2c/i2c_bus_esp_idf.cpp +364 -0
- esphome/components/i2c/i2c_bus_esp_idf.h +52 -0
- esphome/components/i2c_device/__init__.py +26 -0
- esphome/components/i2c_device/i2c_device.cpp +17 -0
- esphome/components/i2c_device/i2c_device.h +18 -0
- esphome/components/i2s_audio/__init__.py +162 -0
- esphome/components/i2s_audio/i2s_audio.cpp +34 -0
- esphome/components/i2s_audio/i2s_audio.h +75 -0
- esphome/components/i2s_audio/media_player/__init__.py +112 -0
- esphome/components/i2s_audio/media_player/i2s_audio_media_player.cpp +258 -0
- esphome/components/i2s_audio/media_player/i2s_audio_media_player.h +87 -0
- esphome/components/i2s_audio/microphone/__init__.py +90 -0
- esphome/components/i2s_audio/microphone/i2s_audio_microphone.cpp +220 -0
- esphome/components/i2s_audio/microphone/i2s_audio_microphone.h +51 -0
- esphome/components/i2s_audio/speaker/__init__.py +126 -0
- esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp +524 -0
- esphome/components/i2s_audio/speaker/i2s_audio_speaker.h +136 -0
- esphome/components/iaqcore/__init__.py +0 -0
- esphome/components/iaqcore/iaqcore.cpp +99 -0
- esphome/components/iaqcore/iaqcore.h +29 -0
- esphome/components/iaqcore/sensor.py +57 -0
- esphome/components/ili9341/__init__.py +0 -0
- esphome/components/ili9341/display.py +5 -0
- esphome/components/ili9xxx/__init__.py +0 -0
- esphome/components/ili9xxx/display.py +293 -0
- esphome/components/ili9xxx/ili9xxx_defines.h +100 -0
- esphome/components/ili9xxx/ili9xxx_display.cpp +463 -0
- esphome/components/ili9xxx/ili9xxx_display.h +281 -0
- esphome/components/ili9xxx/ili9xxx_init.h +423 -0
- esphome/components/image/__init__.py +407 -0
- esphome/components/image/image.cpp +178 -0
- esphome/components/image/image.h +74 -0
- esphome/components/improv_base/__init__.py +41 -0
- esphome/components/improv_base/improv_base.cpp +37 -0
- esphome/components/improv_base/improv_base.h +18 -0
- esphome/components/improv_serial/__init__.py +47 -0
- esphome/components/improv_serial/improv_serial_component.cpp +316 -0
- esphome/components/improv_serial/improv_serial_component.h +81 -0
- esphome/components/ina219/__init__.py +0 -0
- esphome/components/ina219/ina219.cpp +196 -0
- esphome/components/ina219/ina219.h +39 -0
- esphome/components/ina219/sensor.py +96 -0
- esphome/components/ina226/__init__.py +1 -0
- esphome/components/ina226/ina226.cpp +166 -0
- esphome/components/ina226/ina226.h +78 -0
- esphome/components/ina226/sensor.py +147 -0
- esphome/components/ina260/__init__.py +0 -0
- esphome/components/ina260/ina260.cpp +128 -0
- esphome/components/ina260/ina260.h +39 -0
- esphome/components/ina260/sensor.py +71 -0
- esphome/components/ina2xx_base/__init__.py +255 -0
- esphome/components/ina2xx_base/ina2xx_base.cpp +604 -0
- esphome/components/ina2xx_base/ina2xx_base.h +253 -0
- esphome/components/ina2xx_i2c/__init__.py +0 -0
- esphome/components/ina2xx_i2c/ina2xx_i2c.cpp +39 -0
- esphome/components/ina2xx_i2c/ina2xx_i2c.h +21 -0
- esphome/components/ina2xx_i2c/sensor.py +34 -0
- esphome/components/ina2xx_spi/__init__.py +0 -0
- esphome/components/ina2xx_spi/ina2xx_spi.cpp +38 -0
- esphome/components/ina2xx_spi/ina2xx_spi.h +22 -0
- esphome/components/ina2xx_spi/sensor.py +33 -0
- esphome/components/ina3221/__init__.py +0 -0
- esphome/components/ina3221/ina3221.cpp +134 -0
- esphome/components/ina3221/ina3221.h +40 -0
- esphome/components/ina3221/sensor.py +99 -0
- esphome/components/inkbird_ibsth1_mini/__init__.py +0 -0
- esphome/components/inkbird_ibsth1_mini/inkbird_ibsth1_mini.cpp +110 -0
- esphome/components/inkbird_ibsth1_mini/inkbird_ibsth1_mini.h +36 -0
- esphome/components/inkbird_ibsth1_mini/sensor.py +83 -0
- esphome/components/inkplate6/__init__.py +1 -0
- esphome/components/inkplate6/display.py +189 -0
- esphome/components/inkplate6/inkplate.cpp +719 -0
- esphome/components/inkplate6/inkplate.h +253 -0
- esphome/components/integration/__init__.py +1 -0
- esphome/components/integration/integration_sensor.cpp +51 -0
- esphome/components/integration/integration_sensor.h +86 -0
- esphome/components/integration/sensor.py +115 -0
- esphome/components/internal_temperature/__init__.py +1 -0
- esphome/components/internal_temperature/internal_temperature.cpp +128 -0
- esphome/components/internal_temperature/internal_temperature.h +18 -0
- esphome/components/internal_temperature/sensor.py +62 -0
- esphome/components/interval/__init__.py +32 -0
- esphome/components/interval/interval.h +34 -0
- esphome/components/jsn_sr04t/__init__.py +1 -0
- esphome/components/jsn_sr04t/jsn_sr04t.cpp +73 -0
- esphome/components/jsn_sr04t/jsn_sr04t.h +34 -0
- esphome/components/jsn_sr04t/sensor.py +57 -0
- esphome/components/json/__init__.py +17 -0
- esphome/components/json/json_util.cpp +111 -0
- esphome/components/json/json_util.h +29 -0
- esphome/components/kalman_combinator/__init__.py +0 -0
- esphome/components/kalman_combinator/sensor.py +6 -0
- esphome/components/kamstrup_kmp/__init__.py +0 -0
- esphome/components/kamstrup_kmp/kamstrup_kmp.cpp +301 -0
- esphome/components/kamstrup_kmp/kamstrup_kmp.h +131 -0
- esphome/components/kamstrup_kmp/sensor.py +132 -0
- esphome/components/key_collector/__init__.py +96 -0
- esphome/components/key_collector/key_collector.cpp +97 -0
- esphome/components/key_collector/key_collector.h +53 -0
- esphome/components/key_provider/__init__.py +6 -0
- esphome/components/key_provider/key_provider.cpp +13 -0
- esphome/components/key_provider/key_provider.h +21 -0
- esphome/components/kmeteriso/__init__.py +0 -0
- esphome/components/kmeteriso/kmeteriso.cpp +82 -0
- esphome/components/kmeteriso/kmeteriso.h +34 -0
- esphome/components/kmeteriso/sensor.py +55 -0
- esphome/components/kuntze/__init__.py +0 -0
- esphome/components/kuntze/kuntze.cpp +91 -0
- esphome/components/kuntze/kuntze.h +42 -0
- esphome/components/kuntze/sensor.py +123 -0
- esphome/components/lcd_base/__init__.py +59 -0
- esphome/components/lcd_base/lcd_display.cpp +177 -0
- esphome/components/lcd_base/lcd_display.h +66 -0
- esphome/components/lcd_gpio/__init__.py +0 -0
- esphome/components/lcd_gpio/display.py +64 -0
- esphome/components/lcd_gpio/gpio_lcd_display.cpp +66 -0
- esphome/components/lcd_gpio/gpio_lcd_display.h +50 -0
- esphome/components/lcd_menu/__init__.py +73 -0
- esphome/components/lcd_menu/lcd_menu.cpp +74 -0
- esphome/components/lcd_menu/lcd_menu.h +45 -0
- esphome/components/lcd_pcf8574/__init__.py +0 -0
- esphome/components/lcd_pcf8574/display.py +32 -0
- esphome/components/lcd_pcf8574/pcf8574_display.cpp +59 -0
- esphome/components/lcd_pcf8574/pcf8574_display.h +31 -0
- esphome/components/ld2410/__init__.py +109 -0
- esphome/components/ld2410/automation.h +22 -0
- esphome/components/ld2410/binary_sensor.py +55 -0
- esphome/components/ld2410/button/__init__.py +57 -0
- esphome/components/ld2410/button/query_button.cpp +9 -0
- esphome/components/ld2410/button/query_button.h +18 -0
- esphome/components/ld2410/button/reset_button.cpp +9 -0
- esphome/components/ld2410/button/reset_button.h +18 -0
- esphome/components/ld2410/button/restart_button.cpp +9 -0
- esphome/components/ld2410/button/restart_button.h +18 -0
- esphome/components/ld2410/ld2410.cpp +680 -0
- esphome/components/ld2410/ld2410.h +237 -0
- esphome/components/ld2410/number/__init__.py +128 -0
- esphome/components/ld2410/number/gate_threshold_number.cpp +14 -0
- esphome/components/ld2410/number/gate_threshold_number.h +19 -0
- esphome/components/ld2410/number/light_threshold_number.cpp +12 -0
- esphome/components/ld2410/number/light_threshold_number.h +18 -0
- esphome/components/ld2410/number/max_distance_timeout_number.cpp +12 -0
- esphome/components/ld2410/number/max_distance_timeout_number.h +18 -0
- esphome/components/ld2410/select/__init__.py +81 -0
- esphome/components/ld2410/select/baud_rate_select.cpp +12 -0
- esphome/components/ld2410/select/baud_rate_select.h +18 -0
- esphome/components/ld2410/select/distance_resolution_select.cpp +12 -0
- esphome/components/ld2410/select/distance_resolution_select.h +18 -0
- esphome/components/ld2410/select/light_out_control_select.cpp +12 -0
- esphome/components/ld2410/select/light_out_control_select.h +18 -0
- esphome/components/ld2410/sensor.py +108 -0
- esphome/components/ld2410/switch/__init__.py +44 -0
- esphome/components/ld2410/switch/bluetooth_switch.cpp +12 -0
- esphome/components/ld2410/switch/bluetooth_switch.h +18 -0
- esphome/components/ld2410/switch/engineering_mode_switch.cpp +12 -0
- esphome/components/ld2410/switch/engineering_mode_switch.h +18 -0
- esphome/components/ld2410/text_sensor.py +33 -0
- esphome/components/ld2420/__init__.py +39 -0
- esphome/components/ld2420/binary_sensor/__init__.py +32 -0
- esphome/components/ld2420/binary_sensor/ld2420_binary_sensor.cpp +16 -0
- esphome/components/ld2420/binary_sensor/ld2420_binary_sensor.h +25 -0
- esphome/components/ld2420/button/__init__.py +69 -0
- esphome/components/ld2420/button/reconfig_buttons.cpp +16 -0
- esphome/components/ld2420/button/reconfig_buttons.h +42 -0
- esphome/components/ld2420/ld2420.cpp +778 -0
- esphome/components/ld2420/ld2420.h +271 -0
- esphome/components/ld2420/number/__init__.py +183 -0
- esphome/components/ld2420/number/gate_config_number.cpp +73 -0
- esphome/components/ld2420/number/gate_config_number.h +78 -0
- esphome/components/ld2420/select/__init__.py +33 -0
- esphome/components/ld2420/select/operating_mode_select.cpp +16 -0
- esphome/components/ld2420/select/operating_mode_select.h +18 -0
- esphome/components/ld2420/sensor/__init__.py +35 -0
- esphome/components/ld2420/sensor/ld2420_sensor.cpp +16 -0
- esphome/components/ld2420/sensor/ld2420_sensor.h +34 -0
- esphome/components/ld2420/text_sensor/__init__.py +38 -0
- esphome/components/ld2420/text_sensor/text_sensor.cpp +16 -0
- esphome/components/ld2420/text_sensor/text_sensor.h +24 -0
- esphome/components/ledc/__init__.py +1 -0
- esphome/components/ledc/ledc_output.cpp +268 -0
- esphome/components/ledc/ledc_output.h +62 -0
- esphome/components/ledc/output.py +84 -0
- esphome/components/libretiny/__init__.py +340 -0
- esphome/components/libretiny/const.py +90 -0
- esphome/components/libretiny/core.cpp +40 -0
- esphome/components/libretiny/core.h +11 -0
- esphome/components/libretiny/generate_components.py +329 -0
- esphome/components/libretiny/gpio.py +204 -0
- esphome/components/libretiny/gpio_arduino.cpp +105 -0
- esphome/components/libretiny/gpio_arduino.h +36 -0
- esphome/components/libretiny/lt_component.cpp +29 -0
- esphome/components/libretiny/lt_component.h +36 -0
- esphome/components/libretiny/preferences.cpp +182 -0
- esphome/components/libretiny/preferences.h +13 -0
- esphome/components/libretiny/text_sensor.py +31 -0
- esphome/components/libretiny_pwm/__init__.py +1 -0
- esphome/components/libretiny_pwm/libretiny_pwm.cpp +53 -0
- esphome/components/libretiny_pwm/libretiny_pwm.h +55 -0
- esphome/components/libretiny_pwm/output.py +49 -0
- esphome/components/light/__init__.py +229 -0
- esphome/components/light/addressable_light.cpp +113 -0
- esphome/components/light/addressable_light.h +123 -0
- esphome/components/light/addressable_light_effect.h +369 -0
- esphome/components/light/addressable_light_wrapper.h +127 -0
- esphome/components/light/automation.cpp +15 -0
- esphome/components/light/automation.h +220 -0
- esphome/components/light/automation.py +281 -0
- esphome/components/light/base_light_effects.h +231 -0
- esphome/components/light/color_mode.h +108 -0
- esphome/components/light/effects.py +552 -0
- esphome/components/light/esp_color_correction.cpp +27 -0
- esphome/components/light/esp_color_correction.h +77 -0
- esphome/components/light/esp_color_view.h +110 -0
- esphome/components/light/esp_hsv_color.cpp +74 -0
- esphome/components/light/esp_hsv_color.h +36 -0
- esphome/components/light/esp_range_view.cpp +96 -0
- esphome/components/light/esp_range_view.h +80 -0
- esphome/components/light/light_call.cpp +690 -0
- esphome/components/light/light_call.h +197 -0
- esphome/components/light/light_color_values.h +309 -0
- esphome/components/light/light_effect.h +43 -0
- esphome/components/light/light_json_schema.cpp +165 -0
- esphome/components/light/light_json_schema.h +28 -0
- esphome/components/light/light_output.cpp +12 -0
- esphome/components/light/light_output.h +33 -0
- esphome/components/light/light_state.cpp +296 -0
- esphome/components/light/light_state.h +257 -0
- esphome/components/light/light_traits.h +61 -0
- esphome/components/light/light_transformer.h +59 -0
- esphome/components/light/transformers.h +126 -0
- esphome/components/light/types.py +87 -0
- esphome/components/lightwaverf/LwRx.cpp +427 -0
- esphome/components/lightwaverf/LwRx.h +142 -0
- esphome/components/lightwaverf/LwTx.cpp +208 -0
- esphome/components/lightwaverf/LwTx.h +94 -0
- esphome/components/lightwaverf/__init__.py +83 -0
- esphome/components/lightwaverf/lightwaverf.cpp +67 -0
- esphome/components/lightwaverf/lightwaverf.h +70 -0
- esphome/components/lilygo_t5_47/__init__.py +3 -0
- esphome/components/lilygo_t5_47/touchscreen/__init__.py +39 -0
- esphome/components/lilygo_t5_47/touchscreen/lilygo_t5_47_touchscreen.cpp +105 -0
- esphome/components/lilygo_t5_47/touchscreen/lilygo_t5_47_touchscreen.h +31 -0
- esphome/components/lock/__init__.py +110 -0
- esphome/components/lock/automation.h +87 -0
- esphome/components/lock/lock.cpp +107 -0
- esphome/components/lock/lock.h +175 -0
- esphome/components/logger/__init__.py +367 -0
- esphome/components/logger/logger.cpp +201 -0
- esphome/components/logger/logger.h +192 -0
- esphome/components/logger/logger_esp32.cpp +214 -0
- esphome/components/logger/logger_esp8266.cpp +45 -0
- esphome/components/logger/logger_host.cpp +24 -0
- esphome/components/logger/logger_libretiny.cpp +62 -0
- esphome/components/logger/logger_rp2040.cpp +39 -0
- esphome/components/ltr390/__init__.py +0 -0
- esphome/components/ltr390/ltr390.cpp +204 -0
- esphome/components/ltr390/ltr390.h +91 -0
- esphome/components/ltr390/sensor.py +141 -0
- esphome/components/ltr501/__init__.py +1 -0
- esphome/components/ltr501/ltr501.cpp +542 -0
- esphome/components/ltr501/ltr501.h +184 -0
- esphome/components/ltr501/ltr_definitions_501.h +260 -0
- esphome/components/ltr501/sensor.py +274 -0
- esphome/components/ltr_als_ps/__init__.py +1 -0
- esphome/components/ltr_als_ps/ltr_als_ps.cpp +519 -0
- esphome/components/ltr_als_ps/ltr_als_ps.h +184 -0
- esphome/components/ltr_als_ps/ltr_definitions.h +275 -0
- esphome/components/ltr_als_ps/sensor.py +271 -0
- esphome/components/lvgl/__init__.py +470 -0
- esphome/components/lvgl/automation.py +319 -0
- esphome/components/lvgl/binary_sensor/__init__.py +37 -0
- esphome/components/lvgl/defines.py +549 -0
- esphome/components/lvgl/encoders.py +80 -0
- esphome/components/lvgl/font.cpp +76 -0
- esphome/components/lvgl/gradient.py +61 -0
- esphome/components/lvgl/hello_world.py +64 -0
- esphome/components/lvgl/helpers.py +49 -0
- esphome/components/lvgl/keypads.py +77 -0
- esphome/components/lvgl/light/__init__.py +31 -0
- esphome/components/lvgl/light/lvgl_light.h +48 -0
- esphome/components/lvgl/lv_validation.py +485 -0
- esphome/components/lvgl/lvcode.py +351 -0
- esphome/components/lvgl/lvgl_esphome.cpp +546 -0
- esphome/components/lvgl/lvgl_esphome.h +379 -0
- esphome/components/lvgl/lvgl_hal.h +21 -0
- esphome/components/lvgl/lvgl_proxy.h +17 -0
- esphome/components/lvgl/number/__init__.py +63 -0
- esphome/components/lvgl/number/lvgl_number.h +36 -0
- esphome/components/lvgl/schemas.py +444 -0
- esphome/components/lvgl/select/__init__.py +32 -0
- esphome/components/lvgl/select/lvgl_select.h +58 -0
- esphome/components/lvgl/sensor/__init__.py +42 -0
- esphome/components/lvgl/styles.py +58 -0
- esphome/components/lvgl/switch/__init__.py +53 -0
- esphome/components/lvgl/switch/lvgl_switch.h +36 -0
- esphome/components/lvgl/text/__init__.py +51 -0
- esphome/components/lvgl/text/lvgl_text.h +36 -0
- esphome/components/lvgl/text_sensor/__init__.py +43 -0
- esphome/components/lvgl/touchscreens.py +44 -0
- esphome/components/lvgl/trigger.py +73 -0
- esphome/components/lvgl/types.py +198 -0
- esphome/components/lvgl/widgets/__init__.py +460 -0
- esphome/components/lvgl/widgets/animimg.py +112 -0
- esphome/components/lvgl/widgets/arc.py +82 -0
- esphome/components/lvgl/widgets/button.py +20 -0
- esphome/components/lvgl/widgets/buttonmatrix.py +279 -0
- esphome/components/lvgl/widgets/checkbox.py +32 -0
- esphome/components/lvgl/widgets/dropdown.py +92 -0
- esphome/components/lvgl/widgets/img.py +85 -0
- esphome/components/lvgl/widgets/keyboard.py +49 -0
- esphome/components/lvgl/widgets/label.py +42 -0
- esphome/components/lvgl/widgets/led.py +29 -0
- esphome/components/lvgl/widgets/line.py +61 -0
- esphome/components/lvgl/widgets/lv_bar.py +55 -0
- esphome/components/lvgl/widgets/meter.py +314 -0
- esphome/components/lvgl/widgets/msgbox.py +148 -0
- esphome/components/lvgl/widgets/obj.py +30 -0
- esphome/components/lvgl/widgets/page.py +158 -0
- esphome/components/lvgl/widgets/qrcode.py +54 -0
- esphome/components/lvgl/widgets/roller.py +84 -0
- esphome/components/lvgl/widgets/slider.py +63 -0
- esphome/components/lvgl/widgets/spinbox.py +178 -0
- esphome/components/lvgl/widgets/spinner.py +43 -0
- esphome/components/lvgl/widgets/switch.py +20 -0
- esphome/components/lvgl/widgets/tabview.py +114 -0
- esphome/components/lvgl/widgets/textarea.py +66 -0
- esphome/components/lvgl/widgets/tileview.py +123 -0
- esphome/components/m5stack_8angle/__init__.py +33 -0
- esphome/components/m5stack_8angle/binary_sensor/__init__.py +30 -0
- esphome/components/m5stack_8angle/binary_sensor/m5stack_8angle_binary_sensor.cpp +17 -0
- esphome/components/m5stack_8angle/binary_sensor/m5stack_8angle_binary_sensor.h +19 -0
- esphome/components/m5stack_8angle/light/__init__.py +31 -0
- esphome/components/m5stack_8angle/light/m5stack_8angle_light.cpp +45 -0
- esphome/components/m5stack_8angle/light/m5stack_8angle_light.h +37 -0
- esphome/components/m5stack_8angle/m5stack_8angle.cpp +74 -0
- esphome/components/m5stack_8angle/m5stack_8angle.h +34 -0
- esphome/components/m5stack_8angle/sensor/__init__.py +66 -0
- esphome/components/m5stack_8angle/sensor/m5stack_8angle_sensor.cpp +24 -0
- esphome/components/m5stack_8angle/sensor/m5stack_8angle_sensor.h +27 -0
- esphome/components/matrix_keypad/__init__.py +87 -0
- esphome/components/matrix_keypad/binary_sensor/__init__.py +49 -0
- esphome/components/matrix_keypad/binary_sensor/matrix_keypad_binary_sensor.h +51 -0
- esphome/components/matrix_keypad/matrix_keypad.cpp +115 -0
- esphome/components/matrix_keypad/matrix_keypad.h +53 -0
- esphome/components/max17043/__init__.py +1 -0
- esphome/components/max17043/automation.h +20 -0
- esphome/components/max17043/max17043.cpp +98 -0
- esphome/components/max17043/max17043.h +29 -0
- esphome/components/max17043/sensor.py +77 -0
- esphome/components/max31855/__init__.py +0 -0
- esphome/components/max31855/max31855.cpp +108 -0
- esphome/components/max31855/max31855.h +31 -0
- esphome/components/max31855/sensor.py +44 -0
- esphome/components/max31856/__init__.py +0 -0
- esphome/components/max31856/max31856.cpp +209 -0
- esphome/components/max31856/max31856.h +103 -0
- esphome/components/max31856/sensor.py +66 -0
- esphome/components/max31865/__init__.py +0 -0
- esphome/components/max31865/max31865.cpp +232 -0
- esphome/components/max31865/max31865.h +58 -0
- esphome/components/max31865/sensor.py +62 -0
- esphome/components/max44009/__init__.py +0 -0
- esphome/components/max44009/max44009.cpp +144 -0
- esphome/components/max44009/max44009.h +37 -0
- esphome/components/max44009/sensor.py +53 -0
- esphome/components/max6675/__init__.py +0 -0
- esphome/components/max6675/max6675.cpp +52 -0
- esphome/components/max6675/max6675.h +26 -0
- esphome/components/max6675/sensor.py +31 -0
- esphome/components/max6956/__init__.py +142 -0
- esphome/components/max6956/automation.h +40 -0
- esphome/components/max6956/max6956.cpp +170 -0
- esphome/components/max6956/max6956.h +94 -0
- esphome/components/max6956/output/__init__.py +28 -0
- esphome/components/max6956/output/max6956_led_output.cpp +26 -0
- esphome/components/max6956/output/max6956_led_output.h +28 -0
- esphome/components/max7219/__init__.py +0 -0
- esphome/components/max7219/display.py +43 -0
- esphome/components/max7219/max7219.cpp +243 -0
- esphome/components/max7219/max7219.h +64 -0
- esphome/components/max7219digit/__init__.py +0 -0
- esphome/components/max7219digit/display.py +101 -0
- esphome/components/max7219digit/max7219digit.cpp +342 -0
- esphome/components/max7219digit/max7219digit.h +124 -0
- esphome/components/max7219digit/max7219font.h +270 -0
- esphome/components/max9611/__init__.py +1 -0
- esphome/components/max9611/max9611.cpp +93 -0
- esphome/components/max9611/max9611.h +62 -0
- esphome/components/max9611/sensor.py +92 -0
- esphome/components/mcp23008/__init__.py +28 -0
- esphome/components/mcp23008/mcp23008.cpp +43 -0
- esphome/components/mcp23008/mcp23008.h +24 -0
- esphome/components/mcp23016/__init__.py +72 -0
- esphome/components/mcp23016/mcp23016.cpp +95 -0
- esphome/components/mcp23016/mcp23016.h +72 -0
- esphome/components/mcp23017/__init__.py +28 -0
- esphome/components/mcp23017/mcp23017.cpp +44 -0
- esphome/components/mcp23017/mcp23017.h +24 -0
- esphome/components/mcp23s08/__init__.py +32 -0
- esphome/components/mcp23s08/mcp23s08.cpp +59 -0
- esphome/components/mcp23s08/mcp23s08.h +30 -0
- esphome/components/mcp23s17/__init__.py +32 -0
- esphome/components/mcp23s17/mcp23s17.cpp +69 -0
- esphome/components/mcp23s17/mcp23s17.h +29 -0
- esphome/components/mcp23x08_base/__init__.py +8 -0
- esphome/components/mcp23x08_base/mcp23x08_base.cpp +84 -0
- esphome/components/mcp23x08_base/mcp23x08_base.h +39 -0
- esphome/components/mcp23x17_base/__init__.py +8 -0
- esphome/components/mcp23x17_base/mcp23x17_base.cpp +89 -0
- esphome/components/mcp23x17_base/mcp23x17_base.h +52 -0
- esphome/components/mcp23xxx_base/__init__.py +86 -0
- esphome/components/mcp23xxx_base/mcp23xxx_base.cpp +20 -0
- esphome/components/mcp23xxx_base/mcp23xxx_base.h +55 -0
- esphome/components/mcp2515/__init__.py +0 -0
- esphome/components/mcp2515/canbus.py +50 -0
- esphome/components/mcp2515/mcp2515.cpp +681 -0
- esphome/components/mcp2515/mcp2515.h +112 -0
- esphome/components/mcp2515/mcp2515_defs.h +373 -0
- esphome/components/mcp3008/__init__.py +25 -0
- esphome/components/mcp3008/mcp3008.cpp +43 -0
- esphome/components/mcp3008/mcp3008.h +22 -0
- esphome/components/mcp3008/sensor/__init__.py +53 -0
- esphome/components/mcp3008/sensor/mcp3008_sensor.cpp +27 -0
- esphome/components/mcp3008/sensor/mcp3008_sensor.h +31 -0
- esphome/components/mcp3204/__init__.py +26 -0
- esphome/components/mcp3204/mcp3204.cpp +35 -0
- esphome/components/mcp3204/mcp3204.h +28 -0
- esphome/components/mcp3204/sensor/__init__.py +35 -0
- esphome/components/mcp3204/sensor/mcp3204_sensor.cpp +23 -0
- esphome/components/mcp3204/sensor/mcp3204_sensor.h +30 -0
- esphome/components/mcp4725/__init__.py +0 -0
- esphome/components/mcp4725/mcp4725.cpp +35 -0
- esphome/components/mcp4725/mcp4725.h +23 -0
- esphome/components/mcp4725/output.py +26 -0
- esphome/components/mcp4728/__init__.py +30 -0
- esphome/components/mcp4728/mcp4728.cpp +114 -0
- esphome/components/mcp4728/mcp4728.h +67 -0
- esphome/components/mcp4728/output/__init__.py +62 -0
- esphome/components/mcp4728/output/mcp4728_output.cpp +17 -0
- esphome/components/mcp4728/output/mcp4728_output.h +32 -0
- esphome/components/mcp47a1/__init__.py +0 -0
- esphome/components/mcp47a1/mcp47a1.cpp +21 -0
- esphome/components/mcp47a1/mcp47a1.h +17 -0
- esphome/components/mcp47a1/output.py +27 -0
- esphome/components/mcp9600/__init__.py +0 -0
- esphome/components/mcp9600/mcp9600.cpp +115 -0
- esphome/components/mcp9600/mcp9600.h +51 -0
- esphome/components/mcp9600/sensor.py +81 -0
- esphome/components/mcp9808/__init__.py +0 -0
- esphome/components/mcp9808/mcp9808.cpp +81 -0
- esphome/components/mcp9808/mcp9808.h +20 -0
- esphome/components/mcp9808/sensor.py +34 -0
- esphome/components/md5/__init__.py +7 -0
- esphome/components/md5/md5.cpp +69 -0
- esphome/components/md5/md5.h +70 -0
- esphome/components/mdns/__init__.py +113 -0
- esphome/components/mdns/mdns_component.cpp +129 -0
- esphome/components/mdns/mdns_component.h +50 -0
- esphome/components/mdns/mdns_esp32.cpp +60 -0
- esphome/components/mdns/mdns_esp8266.cpp +49 -0
- esphome/components/mdns/mdns_host.cpp +19 -0
- esphome/components/mdns/mdns_libretiny.cpp +44 -0
- esphome/components/mdns/mdns_rp2040.cpp +49 -0
- esphome/components/media_player/__init__.py +204 -0
- esphome/components/media_player/automation.h +82 -0
- esphome/components/media_player/media_player.cpp +132 -0
- esphome/components/media_player/media_player.h +113 -0
- esphome/components/mhz19/__init__.py +0 -0
- esphome/components/mhz19/mhz19.cpp +119 -0
- esphome/components/mhz19/mhz19.h +70 -0
- esphome/components/mhz19/sensor.py +96 -0
- esphome/components/micro_wake_word/__init__.py +498 -0
- esphome/components/micro_wake_word/micro_wake_word.cpp +458 -0
- esphome/components/micro_wake_word/micro_wake_word.h +176 -0
- esphome/components/micro_wake_word/preprocessor_settings.h +20 -0
- esphome/components/micro_wake_word/streaming_model.cpp +191 -0
- esphome/components/micro_wake_word/streaming_model.h +84 -0
- esphome/components/micronova/__init__.py +69 -0
- esphome/components/micronova/button/__init__.py +44 -0
- esphome/components/micronova/button/micronova_button.cpp +18 -0
- esphome/components/micronova/button/micronova_button.h +23 -0
- esphome/components/micronova/micronova.cpp +148 -0
- esphome/components/micronova/micronova.h +164 -0
- esphome/components/micronova/number/__init__.py +110 -0
- esphome/components/micronova/number/micronova_number.cpp +45 -0
- esphome/components/micronova/number/micronova_number.h +28 -0
- esphome/components/micronova/sensor/__init__.py +172 -0
- esphome/components/micronova/sensor/micronova_sensor.cpp +35 -0
- esphome/components/micronova/sensor/micronova_sensor.h +27 -0
- esphome/components/micronova/switch/__init__.py +56 -0
- esphome/components/micronova/switch/micronova_switch.cpp +33 -0
- esphome/components/micronova/switch/micronova_switch.h +29 -0
- esphome/components/micronova/text_sensor/__init__.py +43 -0
- esphome/components/micronova/text_sensor/micronova_text_sensor.cpp +31 -0
- esphome/components/micronova/text_sensor/micronova_text_sensor.h +20 -0
- esphome/components/microphone/__init__.py +91 -0
- esphome/components/microphone/automation.h +32 -0
- esphome/components/microphone/microphone.h +38 -0
- esphome/components/mics_4514/__init__.py +0 -0
- esphome/components/mics_4514/mics_4514.cpp +135 -0
- esphome/components/mics_4514/mics_4514.h +34 -0
- esphome/components/mics_4514/sensor.py +56 -0
- esphome/components/midea/__init__.py +0 -0
- esphome/components/midea/ac_adapter.cpp +179 -0
- esphome/components/midea/ac_adapter.h +51 -0
- esphome/components/midea/ac_automations.h +68 -0
- esphome/components/midea/air_conditioner.cpp +173 -0
- esphome/components/midea/air_conditioner.h +66 -0
- esphome/components/midea/appliance_base.h +102 -0
- esphome/components/midea/climate.py +296 -0
- esphome/components/midea/ir_transmitter.h +60 -0
- esphome/components/midea_ac/__init__.py +0 -0
- esphome/components/midea_ac/climate.py +3 -0
- esphome/components/midea_ir/__init__.py +0 -0
- esphome/components/midea_ir/climate.py +24 -0
- esphome/components/midea_ir/midea_data.h +92 -0
- esphome/components/midea_ir/midea_ir.cpp +202 -0
- esphome/components/midea_ir/midea_ir.h +47 -0
- esphome/components/mitsubishi/__init__.py +0 -0
- esphome/components/mitsubishi/climate.py +71 -0
- esphome/components/mitsubishi/mitsubishi.cpp +397 -0
- esphome/components/mitsubishi/mitsubishi.h +83 -0
- esphome/components/mlx90393/__init__.py +1 -0
- esphome/components/mlx90393/sensor.py +135 -0
- esphome/components/mlx90393/sensor_mlx90393.cpp +91 -0
- esphome/components/mlx90393/sensor_mlx90393.h +59 -0
- esphome/components/mlx90614/__init__.py +0 -0
- esphome/components/mlx90614/mlx90614.cpp +122 -0
- esphome/components/mlx90614/mlx90614.h +34 -0
- esphome/components/mlx90614/sensor.py +63 -0
- esphome/components/mmc5603/__init__.py +1 -0
- esphome/components/mmc5603/mmc5603.cpp +162 -0
- esphome/components/mmc5603/mmc5603.h +43 -0
- esphome/components/mmc5603/sensor.py +90 -0
- esphome/components/mmc5983/__init__.py +1 -0
- esphome/components/mmc5983/mmc5983.cpp +141 -0
- esphome/components/mmc5983/mmc5983.h +28 -0
- esphome/components/mmc5983/sensor.py +55 -0
- esphome/components/modbus/__init__.py +104 -0
- esphome/components/modbus/modbus.cpp +249 -0
- esphome/components/modbus/modbus.h +78 -0
- esphome/components/modbus_controller/__init__.py +338 -0
- esphome/components/modbus_controller/automation.h +35 -0
- esphome/components/modbus_controller/binary_sensor/__init__.py +60 -0
- esphome/components/modbus_controller/binary_sensor/modbus_binarysensor.cpp +38 -0
- esphome/components/modbus_controller/binary_sensor/modbus_binarysensor.h +44 -0
- esphome/components/modbus_controller/const.py +21 -0
- esphome/components/modbus_controller/modbus_controller.cpp +722 -0
- esphome/components/modbus_controller/modbus_controller.h +556 -0
- esphome/components/modbus_controller/number/__init__.py +125 -0
- esphome/components/modbus_controller/number/modbus_number.cpp +86 -0
- esphome/components/modbus_controller/number/modbus_number.h +50 -0
- esphome/components/modbus_controller/output/__init__.py +105 -0
- esphome/components/modbus_controller/output/modbus_output.cpp +111 -0
- esphome/components/modbus_controller/output/modbus_output.h +76 -0
- esphome/components/modbus_controller/select/__init__.py +143 -0
- esphome/components/modbus_controller/select/modbus_select.cpp +90 -0
- esphome/components/modbus_controller/select/modbus_select.h +54 -0
- esphome/components/modbus_controller/sensor/__init__.py +68 -0
- esphome/components/modbus_controller/sensor/modbus_sensor.cpp +31 -0
- esphome/components/modbus_controller/sensor/modbus_sensor.h +37 -0
- esphome/components/modbus_controller/switch/__init__.py +77 -0
- esphome/components/modbus_controller/switch/modbus_switch.cpp +104 -0
- esphome/components/modbus_controller/switch/modbus_switch.h +50 -0
- esphome/components/modbus_controller/text_sensor/__init__.py +84 -0
- esphome/components/modbus_controller/text_sensor/modbus_textsensor.cpp +58 -0
- esphome/components/modbus_controller/text_sensor/modbus_textsensor.h +44 -0
- esphome/components/monochromatic/__init__.py +0 -0
- esphome/components/monochromatic/light.py +24 -0
- esphome/components/monochromatic/monochromatic_light_output.h +29 -0
- esphome/components/mopeka_ble/__init__.py +30 -0
- esphome/components/mopeka_ble/mopeka_ble.cpp +91 -0
- esphome/components/mopeka_ble/mopeka_ble.h +27 -0
- esphome/components/mopeka_pro_check/__init__.py +1 -0
- esphome/components/mopeka_pro_check/mopeka_pro_check.cpp +159 -0
- esphome/components/mopeka_pro_check/mopeka_pro_check.h +72 -0
- esphome/components/mopeka_pro_check/sensor.py +174 -0
- esphome/components/mopeka_std_check/__init__.py +1 -0
- esphome/components/mopeka_std_check/mopeka_std_check.cpp +227 -0
- esphome/components/mopeka_std_check/mopeka_std_check.h +80 -0
- esphome/components/mopeka_std_check/sensor.py +138 -0
- esphome/components/mpl3115a2/__init__.py +0 -0
- esphome/components/mpl3115a2/mpl3115a2.cpp +99 -0
- esphome/components/mpl3115a2/mpl3115a2.h +108 -0
- esphome/components/mpl3115a2/sensor.py +75 -0
- esphome/components/mpr121/__init__.py +127 -0
- esphome/components/mpr121/binary_sensor/__init__.py +37 -0
- esphome/components/mpr121/binary_sensor/mpr121_binary_sensor.cpp +20 -0
- esphome/components/mpr121/binary_sensor/mpr121_binary_sensor.h +26 -0
- esphome/components/mpr121/mpr121.cpp +165 -0
- esphome/components/mpr121/mpr121.h +128 -0
- esphome/components/mpu6050/__init__.py +0 -0
- esphome/components/mpu6050/mpu6050.cpp +147 -0
- esphome/components/mpu6050/mpu6050.h +39 -0
- esphome/components/mpu6050/sensor.py +84 -0
- esphome/components/mpu6886/__init__.py +1 -0
- esphome/components/mpu6886/mpu6886.cpp +153 -0
- esphome/components/mpu6886/mpu6886.h +39 -0
- esphome/components/mpu6886/sensor.py +85 -0
- esphome/components/mqtt/__init__.py +594 -0
- esphome/components/mqtt/custom_mqtt_device.cpp +35 -0
- esphome/components/mqtt/custom_mqtt_device.h +220 -0
- esphome/components/mqtt/mqtt_alarm_control_panel.cpp +125 -0
- esphome/components/mqtt/mqtt_alarm_control_panel.h +39 -0
- esphome/components/mqtt/mqtt_backend.h +71 -0
- esphome/components/mqtt/mqtt_backend_esp32.cpp +194 -0
- esphome/components/mqtt/mqtt_backend_esp32.h +178 -0
- esphome/components/mqtt/mqtt_backend_esp8266.h +74 -0
- esphome/components/mqtt/mqtt_backend_libretiny.h +74 -0
- esphome/components/mqtt/mqtt_binary_sensor.cpp +60 -0
- esphome/components/mqtt/mqtt_binary_sensor.h +43 -0
- esphome/components/mqtt/mqtt_button.cpp +46 -0
- esphome/components/mqtt/mqtt_button.h +40 -0
- esphome/components/mqtt/mqtt_client.cpp +723 -0
- esphome/components/mqtt/mqtt_client.h +451 -0
- esphome/components/mqtt/mqtt_climate.cpp +459 -0
- esphome/components/mqtt/mqtt_climate.h +56 -0
- esphome/components/mqtt/mqtt_component.cpp +320 -0
- esphome/components/mqtt/mqtt_component.h +218 -0
- esphome/components/mqtt/mqtt_const.h +543 -0
- esphome/components/mqtt/mqtt_cover.cpp +118 -0
- esphome/components/mqtt/mqtt_cover.h +43 -0
- esphome/components/mqtt/mqtt_date.cpp +68 -0
- esphome/components/mqtt/mqtt_date.h +45 -0
- esphome/components/mqtt/mqtt_datetime.cpp +84 -0
- esphome/components/mqtt/mqtt_datetime.h +45 -0
- esphome/components/mqtt/mqtt_event.cpp +54 -0
- esphome/components/mqtt/mqtt_event.h +39 -0
- esphome/components/mqtt/mqtt_fan.cpp +143 -0
- esphome/components/mqtt/mqtt_fan.h +52 -0
- esphome/components/mqtt/mqtt_light.cpp +87 -0
- esphome/components/mqtt/mqtt_light.h +41 -0
- esphome/components/mqtt/mqtt_lock.cpp +57 -0
- esphome/components/mqtt/mqtt_lock.h +41 -0
- esphome/components/mqtt/mqtt_number.cpp +80 -0
- esphome/components/mqtt/mqtt_number.h +46 -0
- esphome/components/mqtt/mqtt_select.cpp +59 -0
- esphome/components/mqtt/mqtt_select.h +46 -0
- esphome/components/mqtt/mqtt_sensor.cpp +83 -0
- esphome/components/mqtt/mqtt_sensor.h +59 -0
- esphome/components/mqtt/mqtt_switch.cpp +62 -0
- esphome/components/mqtt/mqtt_switch.h +41 -0
- esphome/components/mqtt/mqtt_text.cpp +63 -0
- esphome/components/mqtt/mqtt_text.h +46 -0
- esphome/components/mqtt/mqtt_text_sensor.cpp +47 -0
- esphome/components/mqtt/mqtt_text_sensor.h +40 -0
- esphome/components/mqtt/mqtt_time.cpp +68 -0
- esphome/components/mqtt/mqtt_time.h +45 -0
- esphome/components/mqtt/mqtt_update.cpp +62 -0
- esphome/components/mqtt/mqtt_update.h +41 -0
- esphome/components/mqtt/mqtt_valve.cpp +90 -0
- esphome/components/mqtt/mqtt_valve.h +41 -0
- esphome/components/mqtt_subscribe/__init__.py +3 -0
- esphome/components/mqtt_subscribe/sensor/__init__.py +40 -0
- esphome/components/mqtt_subscribe/sensor/mqtt_subscribe_sensor.cpp +38 -0
- esphome/components/mqtt_subscribe/sensor/mqtt_subscribe_sensor.h +33 -0
- esphome/components/mqtt_subscribe/text_sensor/__init__.py +36 -0
- esphome/components/mqtt_subscribe/text_sensor/mqtt_subscribe_text_sensor.cpp +28 -0
- esphome/components/mqtt_subscribe/text_sensor/mqtt_subscribe_text_sensor.h +32 -0
- esphome/components/ms5611/__init__.py +0 -0
- esphome/components/ms5611/ms5611.cpp +130 -0
- esphome/components/ms5611/ms5611.h +31 -0
- esphome/components/ms5611/sensor.py +58 -0
- esphome/components/ms8607/__init__.py +1 -0
- esphome/components/ms8607/ms8607.cpp +444 -0
- esphome/components/ms8607/ms8607.h +109 -0
- esphome/components/ms8607/sensor.py +83 -0
- esphome/components/my9231/__init__.py +41 -0
- esphome/components/my9231/my9231.cpp +127 -0
- esphome/components/my9231/my9231.h +64 -0
- esphome/components/my9231/output.py +27 -0
- esphome/components/nau7802/__init__.py +0 -0
- esphome/components/nau7802/nau7802.cpp +323 -0
- esphome/components/nau7802/nau7802.h +121 -0
- esphome/components/nau7802/sensor.py +134 -0
- esphome/components/neopixelbus/__init__.py +0 -0
- esphome/components/neopixelbus/_methods.py +421 -0
- esphome/components/neopixelbus/const.py +42 -0
- esphome/components/neopixelbus/light.py +225 -0
- esphome/components/neopixelbus/neopixelbus_light.h +146 -0
- esphome/components/network/__init__.py +58 -0
- esphome/components/network/ip_address.h +145 -0
- esphome/components/network/util.cpp +66 -0
- esphome/components/network/util.h +20 -0
- esphome/components/nextion/__init__.py +10 -0
- esphome/components/nextion/automation.h +122 -0
- esphome/components/nextion/base_component.py +126 -0
- esphome/components/nextion/binary_sensor/__init__.py +95 -0
- esphome/components/nextion/binary_sensor/nextion_binarysensor.cpp +69 -0
- esphome/components/nextion/binary_sensor/nextion_binarysensor.h +42 -0
- esphome/components/nextion/display.py +168 -0
- esphome/components/nextion/nextion.cpp +1172 -0
- esphome/components/nextion/nextion.h +1357 -0
- esphome/components/nextion/nextion_base.h +64 -0
- esphome/components/nextion/nextion_commands.cpp +356 -0
- esphome/components/nextion/nextion_component.cpp +116 -0
- esphome/components/nextion/nextion_component.h +49 -0
- esphome/components/nextion/nextion_component_base.h +103 -0
- esphome/components/nextion/nextion_upload_arduino.cpp +387 -0
- esphome/components/nextion/nextion_upload_idf.cpp +367 -0
- esphome/components/nextion/sensor/__init__.py +130 -0
- esphome/components/nextion/sensor/nextion_sensor.cpp +116 -0
- esphome/components/nextion/sensor/nextion_sensor.h +49 -0
- esphome/components/nextion/switch/__init__.py +71 -0
- esphome/components/nextion/switch/nextion_switch.cpp +52 -0
- esphome/components/nextion/switch/nextion_switch.h +34 -0
- esphome/components/nextion/text_sensor/__init__.py +69 -0
- esphome/components/nextion/text_sensor/nextion_textsensor.cpp +49 -0
- esphome/components/nextion/text_sensor/nextion_textsensor.h +32 -0
- esphome/components/nfc/__init__.py +13 -0
- esphome/components/nfc/automation.cpp +9 -0
- esphome/components/nfc/automation.h +17 -0
- esphome/components/nfc/binary_sensor/__init__.py +72 -0
- esphome/components/nfc/binary_sensor/binary_sensor.cpp +114 -0
- esphome/components/nfc/binary_sensor/binary_sensor.h +38 -0
- esphome/components/nfc/nci_core.h +144 -0
- esphome/components/nfc/nci_message.cpp +166 -0
- esphome/components/nfc/nci_message.h +50 -0
- esphome/components/nfc/ndef_message.cpp +110 -0
- esphome/components/nfc/ndef_message.h +42 -0
- esphome/components/nfc/ndef_record.cpp +65 -0
- esphome/components/nfc/ndef_record.h +57 -0
- esphome/components/nfc/ndef_record_text.cpp +40 -0
- esphome/components/nfc/ndef_record_text.h +43 -0
- esphome/components/nfc/ndef_record_uri.cpp +48 -0
- esphome/components/nfc/ndef_record_uri.h +78 -0
- esphome/components/nfc/nfc.cpp +108 -0
- esphome/components/nfc/nfc.h +84 -0
- esphome/components/nfc/nfc_helpers.cpp +47 -0
- esphome/components/nfc/nfc_helpers.h +17 -0
- esphome/components/nfc/nfc_tag.cpp +9 -0
- esphome/components/nfc/nfc_tag.h +57 -0
- esphome/components/noblex/__init__.py +1 -0
- esphome/components/noblex/climate.py +20 -0
- esphome/components/noblex/noblex.cpp +309 -0
- esphome/components/noblex/noblex.h +47 -0
- esphome/components/npi19/__init__.py +0 -0
- esphome/components/npi19/npi19.cpp +111 -0
- esphome/components/npi19/npi19.h +30 -0
- esphome/components/npi19/sensor.py +52 -0
- esphome/components/ntc/__init__.py +0 -0
- esphome/components/ntc/ntc.cpp +31 -0
- esphome/components/ntc/ntc.h +29 -0
- esphome/components/ntc/sensor.py +146 -0
- esphome/components/number/__init__.py +414 -0
- esphome/components/number/automation.cpp +56 -0
- esphome/components/number/automation.h +95 -0
- esphome/components/number/number.cpp +21 -0
- esphome/components/number/number.h +70 -0
- esphome/components/number/number_call.cpp +118 -0
- esphome/components/number/number_call.h +43 -0
- esphome/components/number/number_traits.cpp +10 -0
- esphome/components/number/number_traits.h +39 -0
- esphome/components/one_wire/__init__.py +40 -0
- esphome/components/one_wire/one_wire.cpp +40 -0
- esphome/components/one_wire/one_wire.h +44 -0
- esphome/components/one_wire/one_wire_bus.cpp +88 -0
- esphome/components/one_wire/one_wire_bus.h +61 -0
- esphome/components/online_image/__init__.py +168 -0
- esphome/components/online_image/image_decoder.cpp +44 -0
- esphome/components/online_image/image_decoder.h +112 -0
- esphome/components/online_image/online_image.cpp +277 -0
- esphome/components/online_image/online_image.h +190 -0
- esphome/components/online_image/png_image.cpp +72 -0
- esphome/components/online_image/png_image.h +33 -0
- esphome/components/opentherm/__init__.py +83 -0
- esphome/components/opentherm/binary_sensor/__init__.py +33 -0
- esphome/components/opentherm/const.py +11 -0
- esphome/components/opentherm/generate.py +142 -0
- esphome/components/opentherm/hub.cpp +382 -0
- esphome/components/opentherm/hub.h +163 -0
- esphome/components/opentherm/input.h +18 -0
- esphome/components/opentherm/input.py +51 -0
- esphome/components/opentherm/number/__init__.py +74 -0
- esphome/components/opentherm/number/number.cpp +40 -0
- esphome/components/opentherm/number/number.h +31 -0
- esphome/components/opentherm/opentherm.cpp +582 -0
- esphome/components/opentherm/opentherm.h +378 -0
- esphome/components/opentherm/opentherm_macros.h +151 -0
- esphome/components/opentherm/output/__init__.py +47 -0
- esphome/components/opentherm/output/output.cpp +18 -0
- esphome/components/opentherm/output/output.h +33 -0
- esphome/components/opentherm/schema.py +814 -0
- esphome/components/opentherm/sensor/__init__.py +51 -0
- esphome/components/opentherm/switch/__init__.py +43 -0
- esphome/components/opentherm/switch/switch.cpp +28 -0
- esphome/components/opentherm/switch/switch.h +20 -0
- esphome/components/opentherm/validate.py +31 -0
- esphome/components/ota/__init__.py +122 -0
- esphome/components/ota/automation.h +78 -0
- esphome/components/ota/ota_backend.cpp +20 -0
- esphome/components/ota/ota_backend.h +96 -0
- esphome/components/ota/ota_backend_arduino_esp32.cpp +62 -0
- esphome/components/ota/ota_backend_arduino_esp32.h +24 -0
- esphome/components/ota/ota_backend_arduino_esp8266.cpp +75 -0
- esphome/components/ota/ota_backend_arduino_esp8266.h +30 -0
- esphome/components/ota/ota_backend_arduino_libretiny.cpp +62 -0
- esphome/components/ota/ota_backend_arduino_libretiny.h +23 -0
- esphome/components/ota/ota_backend_arduino_rp2040.cpp +75 -0
- esphome/components/ota/ota_backend_arduino_rp2040.h +26 -0
- esphome/components/ota/ota_backend_esp_idf.cpp +116 -0
- esphome/components/ota/ota_backend_esp_idf.h +31 -0
- esphome/components/output/__init__.py +110 -0
- esphome/components/output/automation.cpp +10 -0
- esphome/components/output/automation.h +44 -0
- esphome/components/output/binary_output.h +73 -0
- esphome/components/output/button/__init__.py +29 -0
- esphome/components/output/button/output_button.cpp +21 -0
- esphome/components/output/button/output_button.h +25 -0
- esphome/components/output/float_output.cpp +46 -0
- esphome/components/output/float_output.h +89 -0
- esphome/components/output/lock/__init__.py +23 -0
- esphome/components/output/lock/output_lock.cpp +22 -0
- esphome/components/output/lock/output_lock.h +24 -0
- esphome/components/output/switch/__init__.py +28 -0
- esphome/components/output/switch/output_switch.cpp +31 -0
- esphome/components/output/switch/output_switch.h +25 -0
- esphome/components/packages/__init__.py +183 -0
- esphome/components/partition/__init__.py +0 -0
- esphome/components/partition/light.py +121 -0
- esphome/components/partition/light_partition.cpp +10 -0
- esphome/components/partition/light_partition.h +97 -0
- esphome/components/pca6416a/__init__.py +78 -0
- esphome/components/pca6416a/pca6416a.cpp +176 -0
- esphome/components/pca6416a/pca6416a.h +63 -0
- esphome/components/pca9554/__init__.py +86 -0
- esphome/components/pca9554/pca9554.cpp +144 -0
- esphome/components/pca9554/pca9554.h +76 -0
- esphome/components/pca9685/__init__.py +47 -0
- esphome/components/pca9685/output.py +26 -0
- esphome/components/pca9685/pca9685_output.cpp +154 -0
- esphome/components/pca9685/pca9685_output.h +73 -0
- esphome/components/pcd8544/__init__.py +0 -0
- esphome/components/pcd8544/display.py +60 -0
- esphome/components/pcd8544/pcd_8544.cpp +126 -0
- esphome/components/pcd8544/pcd_8544.h +78 -0
- esphome/components/pcf85063/__init__.py +0 -0
- esphome/components/pcf85063/pcf85063.cpp +109 -0
- esphome/components/pcf85063/pcf85063.h +96 -0
- esphome/components/pcf85063/time.py +60 -0
- esphome/components/pcf8563/__init__.py +0 -0
- esphome/components/pcf8563/pcf8563.cpp +109 -0
- esphome/components/pcf8563/pcf8563.h +124 -0
- esphome/components/pcf8563/time.py +62 -0
- esphome/components/pcf8574/__init__.py +75 -0
- esphome/components/pcf8574/pcf8574.cpp +106 -0
- esphome/components/pcf8574/pcf8574.h +65 -0
- esphome/components/pid/__init__.py +1 -0
- esphome/components/pid/climate.py +194 -0
- esphome/components/pid/pid_autotuner.cpp +361 -0
- esphome/components/pid/pid_autotuner.h +115 -0
- esphome/components/pid/pid_climate.cpp +187 -0
- esphome/components/pid/pid_climate.h +160 -0
- esphome/components/pid/pid_controller.cpp +129 -0
- esphome/components/pid/pid_controller.h +71 -0
- esphome/components/pid/pid_simulator.h +77 -0
- esphome/components/pid/sensor/__init__.py +53 -0
- esphome/components/pid/sensor/pid_climate_sensor.cpp +59 -0
- esphome/components/pid/sensor/pid_climate_sensor.h +37 -0
- esphome/components/pipsolar/__init__.py +32 -0
- esphome/components/pipsolar/binary_sensor/__init__.py +141 -0
- esphome/components/pipsolar/output/__init__.py +106 -0
- esphome/components/pipsolar/output/pipsolar_output.cpp +22 -0
- esphome/components/pipsolar/output/pipsolar_output.h +42 -0
- esphome/components/pipsolar/pipsolar.cpp +912 -0
- esphome/components/pipsolar/pipsolar.h +223 -0
- esphome/components/pipsolar/sensor/__init__.py +279 -0
- esphome/components/pipsolar/switch/__init__.py +50 -0
- esphome/components/pipsolar/switch/pipsolar_switch.cpp +24 -0
- esphome/components/pipsolar/switch/pipsolar_switch.h +25 -0
- esphome/components/pipsolar/text_sensor/__init__.py +40 -0
- esphome/components/pm1006/__init__.py +0 -0
- esphome/components/pm1006/pm1006.cpp +103 -0
- esphome/components/pm1006/pm1006.h +36 -0
- esphome/components/pm1006/sensor.py +67 -0
- esphome/components/pmsa003i/__init__.py +0 -0
- esphome/components/pmsa003i/pmsa003i.cpp +110 -0
- esphome/components/pmsa003i/pmsa003i.h +68 -0
- esphome/components/pmsa003i/sensor.py +127 -0
- esphome/components/pmsx003/__init__.py +0 -0
- esphome/components/pmsx003/pmsx003.cpp +357 -0
- esphome/components/pmsx003/pmsx003.h +101 -0
- esphome/components/pmsx003/sensor.py +272 -0
- esphome/components/pmwcs3/__init__.py +1 -0
- esphome/components/pmwcs3/pmwcs3.cpp +116 -0
- esphome/components/pmwcs3/pmwcs3.h +70 -0
- esphome/components/pmwcs3/sensor.py +140 -0
- esphome/components/pn532/__init__.py +96 -0
- esphome/components/pn532/binary_sensor.py +48 -0
- esphome/components/pn532/pn532.cpp +465 -0
- esphome/components/pn532/pn532.h +150 -0
- esphome/components/pn532/pn532_mifare_classic.cpp +262 -0
- esphome/components/pn532/pn532_mifare_ultralight.cpp +192 -0
- esphome/components/pn532_i2c/__init__.py +26 -0
- esphome/components/pn532_i2c/pn532_i2c.cpp +129 -0
- esphome/components/pn532_i2c/pn532_i2c.h +25 -0
- esphome/components/pn532_spi/__init__.py +26 -0
- esphome/components/pn532_spi/pn532_spi.cpp +138 -0
- esphome/components/pn532_spi/pn532_spi.h +28 -0
- esphome/components/pn7150/__init__.py +215 -0
- esphome/components/pn7150/automation.h +82 -0
- esphome/components/pn7150/pn7150.cpp +1143 -0
- esphome/components/pn7150/pn7150.h +296 -0
- esphome/components/pn7150/pn7150_mifare_classic.cpp +322 -0
- esphome/components/pn7150/pn7150_mifare_ultralight.cpp +186 -0
- esphome/components/pn7150_i2c/__init__.py +25 -0
- esphome/components/pn7150_i2c/pn7150_i2c.cpp +49 -0
- esphome/components/pn7150_i2c/pn7150_i2c.h +22 -0
- esphome/components/pn7160/__init__.py +227 -0
- esphome/components/pn7160/automation.h +82 -0
- esphome/components/pn7160/pn7160.cpp +1167 -0
- esphome/components/pn7160/pn7160.h +315 -0
- esphome/components/pn7160/pn7160_mifare_classic.cpp +322 -0
- esphome/components/pn7160/pn7160_mifare_ultralight.cpp +186 -0
- esphome/components/pn7160_i2c/__init__.py +25 -0
- esphome/components/pn7160_i2c/pn7160_i2c.cpp +49 -0
- esphome/components/pn7160_i2c/pn7160_i2c.h +22 -0
- esphome/components/pn7160_spi/__init__.py +26 -0
- esphome/components/pn7160_spi/pn7160_spi.cpp +54 -0
- esphome/components/pn7160_spi/pn7160_spi.h +30 -0
- esphome/components/power_supply/__init__.py +42 -0
- esphome/components/power_supply/power_supply.cpp +59 -0
- esphome/components/power_supply/power_supply.h +67 -0
- esphome/components/preferences/__init__.py +24 -0
- esphome/components/preferences/syncer.h +23 -0
- esphome/components/prometheus/__init__.py +58 -0
- esphome/components/prometheus/prometheus_handler.cpp +516 -0
- esphome/components/prometheus/prometheus_handler.h +139 -0
- esphome/components/psram/__init__.py +60 -0
- esphome/components/psram/psram.cpp +32 -0
- esphome/components/psram/psram.h +17 -0
- esphome/components/pulse_counter/__init__.py +0 -0
- esphome/components/pulse_counter/automation.h +24 -0
- esphome/components/pulse_counter/pulse_counter_sensor.cpp +194 -0
- esphome/components/pulse_counter/pulse_counter_sensor.h +91 -0
- esphome/components/pulse_counter/sensor.py +156 -0
- esphome/components/pulse_meter/__init__.py +0 -0
- esphome/components/pulse_meter/automation.h +24 -0
- esphome/components/pulse_meter/pulse_meter_sensor.cpp +163 -0
- esphome/components/pulse_meter/pulse_meter_sensor.h +83 -0
- esphome/components/pulse_meter/sensor.py +114 -0
- esphome/components/pulse_width/__init__.py +0 -0
- esphome/components/pulse_width/pulse_width.cpp +31 -0
- esphome/components/pulse_width/pulse_width.h +44 -0
- esphome/components/pulse_width/sensor.py +40 -0
- esphome/components/pvvx_mithermometer/__init__.py +0 -0
- esphome/components/pvvx_mithermometer/display/__init__.py +55 -0
- esphome/components/pvvx_mithermometer/display/pvvx_display.cpp +163 -0
- esphome/components/pvvx_mithermometer/display/pvvx_display.h +135 -0
- esphome/components/pvvx_mithermometer/pvvx_mithermometer.cpp +141 -0
- esphome/components/pvvx_mithermometer/pvvx_mithermometer.h +51 -0
- esphome/components/pvvx_mithermometer/sensor.py +100 -0
- esphome/components/pylontech/__init__.py +46 -0
- esphome/components/pylontech/pylontech.cpp +104 -0
- esphome/components/pylontech/pylontech.h +53 -0
- esphome/components/pylontech/sensor/__init__.py +97 -0
- esphome/components/pylontech/sensor/pylontech_sensor.cpp +60 -0
- esphome/components/pylontech/sensor/pylontech_sensor.h +32 -0
- esphome/components/pylontech/text_sensor/__init__.py +41 -0
- esphome/components/pylontech/text_sensor/pylontech_text_sensor.cpp +40 -0
- esphome/components/pylontech/text_sensor/pylontech_text_sensor.h +26 -0
- esphome/components/pzem004t/__init__.py +0 -0
- esphome/components/pzem004t/pzem004t.cpp +126 -0
- esphome/components/pzem004t/pzem004t.h +46 -0
- esphome/components/pzem004t/sensor.py +82 -0
- esphome/components/pzemac/__init__.py +0 -0
- esphome/components/pzemac/pzemac.cpp +85 -0
- esphome/components/pzemac/pzemac.h +53 -0
- esphome/components/pzemac/sensor.py +125 -0
- esphome/components/pzemdc/__init__.py +0 -0
- esphome/components/pzemdc/pzemdc.cpp +73 -0
- esphome/components/pzemdc/pzemdc.h +46 -0
- esphome/components/pzemdc/sensor.py +101 -0
- esphome/components/qmc5883l/__init__.py +0 -0
- esphome/components/qmc5883l/qmc5883l.cpp +175 -0
- esphome/components/qmc5883l/qmc5883l.h +63 -0
- esphome/components/qmc5883l/sensor.py +145 -0
- esphome/components/qmp6988/__init__.py +1 -0
- esphome/components/qmp6988/qmp6988.cpp +397 -0
- esphome/components/qmp6988/qmp6988.h +116 -0
- esphome/components/qmp6988/sensor.py +101 -0
- esphome/components/qr_code/__init__.py +41 -0
- esphome/components/qr_code/qr_code.cpp +67 -0
- esphome/components/qr_code/qr_code.h +36 -0
- esphome/components/qspi_amoled/display.py +3 -0
- esphome/components/qspi_dbi/__init__.py +1 -0
- esphome/components/qspi_dbi/display.py +185 -0
- esphome/components/qspi_dbi/models.py +67 -0
- esphome/components/qspi_dbi/qspi_dbi.cpp +230 -0
- esphome/components/qspi_dbi/qspi_dbi.h +173 -0
- esphome/components/qwiic_pir/__init__.py +0 -0
- esphome/components/qwiic_pir/binary_sensor.py +67 -0
- esphome/components/qwiic_pir/qwiic_pir.cpp +137 -0
- esphome/components/qwiic_pir/qwiic_pir.h +70 -0
- esphome/components/radon_eye_ble/__init__.py +23 -0
- esphome/components/radon_eye_ble/radon_eye_listener.cpp +32 -0
- esphome/components/radon_eye_ble/radon_eye_listener.h +19 -0
- esphome/components/radon_eye_rd200/__init__.py +1 -0
- esphome/components/radon_eye_rd200/radon_eye_rd200.cpp +179 -0
- esphome/components/radon_eye_rd200/radon_eye_rd200.h +59 -0
- esphome/components/radon_eye_rd200/sensor.py +55 -0
- esphome/components/rc522/__init__.py +56 -0
- esphome/components/rc522/binary_sensor.py +48 -0
- esphome/components/rc522/rc522.cpp +505 -0
- esphome/components/rc522/rc522.h +280 -0
- esphome/components/rc522_i2c/__init__.py +26 -0
- esphome/components/rc522_i2c/rc522_i2c.cpp +70 -0
- esphome/components/rc522_i2c/rc522_i2c.h +42 -0
- esphome/components/rc522_spi/__init__.py +30 -0
- esphome/components/rc522_spi/binary_sensor.py +9 -0
- esphome/components/rc522_spi/rc522_spi.cpp +140 -0
- esphome/components/rc522_spi/rc522_spi.h +54 -0
- esphome/components/rdm6300/__init__.py +41 -0
- esphome/components/rdm6300/binary_sensor.py +27 -0
- esphome/components/rdm6300/rdm6300.cpp +68 -0
- esphome/components/rdm6300/rdm6300.h +58 -0
- esphome/components/remote_base/__init__.py +1965 -0
- esphome/components/remote_base/abbwelcome_protocol.cpp +123 -0
- esphome/components/remote_base/abbwelcome_protocol.h +253 -0
- esphome/components/remote_base/aeha_protocol.cpp +102 -0
- esphome/components/remote_base/aeha_protocol.h +46 -0
- esphome/components/remote_base/byronsx_protocol.cpp +139 -0
- esphome/components/remote_base/byronsx_protocol.h +46 -0
- esphome/components/remote_base/canalsat_protocol.cpp +108 -0
- esphome/components/remote_base/canalsat_protocol.h +78 -0
- esphome/components/remote_base/coolix_protocol.cpp +113 -0
- esphome/components/remote_base/coolix_protocol.h +41 -0
- esphome/components/remote_base/dish_protocol.cpp +94 -0
- esphome/components/remote_base/dish_protocol.h +38 -0
- esphome/components/remote_base/dooya_protocol.cpp +120 -0
- esphome/components/remote_base/dooya_protocol.h +49 -0
- esphome/components/remote_base/drayton_protocol.cpp +240 -0
- esphome/components/remote_base/drayton_protocol.h +46 -0
- esphome/components/remote_base/haier_protocol.cpp +84 -0
- esphome/components/remote_base/haier_protocol.h +39 -0
- esphome/components/remote_base/jvc_protocol.cpp +52 -0
- esphome/components/remote_base/jvc_protocol.h +37 -0
- esphome/components/remote_base/keeloq_protocol.cpp +194 -0
- esphome/components/remote_base/keeloq_protocol.h +53 -0
- esphome/components/remote_base/lg_protocol.cpp +58 -0
- esphome/components/remote_base/lg_protocol.h +41 -0
- esphome/components/remote_base/magiquest_protocol.cpp +83 -0
- esphome/components/remote_base/magiquest_protocol.h +52 -0
- esphome/components/remote_base/midea_protocol.cpp +76 -0
- esphome/components/remote_base/midea_protocol.h +83 -0
- esphome/components/remote_base/mirage_protocol.cpp +84 -0
- esphome/components/remote_base/mirage_protocol.h +39 -0
- esphome/components/remote_base/nec_protocol.cpp +102 -0
- esphome/components/remote_base/nec_protocol.h +41 -0
- esphome/components/remote_base/nexa_protocol.cpp +240 -0
- esphome/components/remote_base/nexa_protocol.h +54 -0
- esphome/components/remote_base/panasonic_protocol.cpp +74 -0
- esphome/components/remote_base/panasonic_protocol.h +41 -0
- esphome/components/remote_base/pioneer_protocol.cpp +156 -0
- esphome/components/remote_base/pioneer_protocol.h +38 -0
- esphome/components/remote_base/pronto_protocol.cpp +243 -0
- esphome/components/remote_base/pronto_protocol.h +55 -0
- esphome/components/remote_base/raw_protocol.cpp +47 -0
- esphome/components/remote_base/raw_protocol.h +81 -0
- esphome/components/remote_base/rc5_protocol.cpp +90 -0
- esphome/components/remote_base/rc5_protocol.h +39 -0
- esphome/components/remote_base/rc6_protocol.cpp +181 -0
- esphome/components/remote_base/rc6_protocol.h +46 -0
- esphome/components/remote_base/rc_switch_protocol.cpp +271 -0
- esphome/components/remote_base/rc_switch_protocol.h +221 -0
- esphome/components/remote_base/remote_base.cpp +168 -0
- esphome/components/remote_base/remote_base.h +313 -0
- esphome/components/remote_base/roomba_protocol.cpp +56 -0
- esphome/components/remote_base/roomba_protocol.h +35 -0
- esphome/components/remote_base/samsung36_protocol.cpp +103 -0
- esphome/components/remote_base/samsung36_protocol.h +41 -0
- esphome/components/remote_base/samsung_protocol.cpp +65 -0
- esphome/components/remote_base/samsung_protocol.h +39 -0
- esphome/components/remote_base/sony_protocol.cpp +69 -0
- esphome/components/remote_base/sony_protocol.h +41 -0
- esphome/components/remote_base/toshiba_ac_protocol.cpp +115 -0
- esphome/components/remote_base/toshiba_ac_protocol.h +39 -0
- esphome/components/remote_receiver/__init__.py +143 -0
- esphome/components/remote_receiver/binary_sensor.py +10 -0
- esphome/components/remote_receiver/remote_receiver.h +75 -0
- esphome/components/remote_receiver/remote_receiver_esp32.cpp +170 -0
- esphome/components/remote_receiver/remote_receiver_esp8266.cpp +123 -0
- esphome/components/remote_receiver/remote_receiver_libretiny.cpp +123 -0
- esphome/components/remote_transmitter/__init__.py +50 -0
- esphome/components/remote_transmitter/remote_transmitter.cpp +11 -0
- esphome/components/remote_transmitter/remote_transmitter.h +69 -0
- esphome/components/remote_transmitter/remote_transmitter_esp32.cpp +145 -0
- esphome/components/remote_transmitter/remote_transmitter_esp8266.cpp +103 -0
- esphome/components/remote_transmitter/remote_transmitter_libretiny.cpp +106 -0
- esphome/components/resistance/__init__.py +0 -0
- esphome/components/resistance/resistance_sensor.cpp +44 -0
- esphome/components/resistance/resistance_sensor.h +39 -0
- esphome/components/resistance/sensor.py +59 -0
- esphome/components/resistance_sampler/__init__.py +6 -0
- esphome/components/resistance_sampler/resistance_sampler.h +10 -0
- esphome/components/restart/__init__.py +1 -0
- esphome/components/restart/button/__init__.py +25 -0
- esphome/components/restart/button/restart_button.cpp +20 -0
- esphome/components/restart/button/restart_button.h +18 -0
- esphome/components/restart/switch/__init__.py +22 -0
- esphome/components/restart/switch/restart_switch.cpp +25 -0
- esphome/components/restart/switch/restart_switch.h +18 -0
- esphome/components/rf_bridge/__init__.py +242 -0
- esphome/components/rf_bridge/rf_bridge.cpp +235 -0
- esphome/components/rf_bridge/rf_bridge.h +196 -0
- esphome/components/rgb/__init__.py +0 -0
- esphome/components/rgb/light.py +28 -0
- esphome/components/rgb/rgb_light_output.h +36 -0
- esphome/components/rgbct/__init__.py +0 -0
- esphome/components/rgbct/light.py +59 -0
- esphome/components/rgbct/rgbct_light_output.h +59 -0
- esphome/components/rgbw/__init__.py +0 -0
- esphome/components/rgbw/light.py +40 -0
- esphome/components/rgbw/rgbw_light_output.h +44 -0
- esphome/components/rgbww/__init__.py +0 -0
- esphome/components/rgbww/light.py +69 -0
- esphome/components/rgbww/rgbww_light_output.h +55 -0
- esphome/components/rotary_encoder/__init__.py +0 -0
- esphome/components/rotary_encoder/rotary_encoder.cpp +245 -0
- esphome/components/rotary_encoder/rotary_encoder.h +138 -0
- esphome/components/rotary_encoder/sensor.py +148 -0
- esphome/components/rp2040/__init__.py +243 -0
- esphome/components/rp2040/boards.py +28 -0
- esphome/components/rp2040/build_pio.py.script +47 -0
- esphome/components/rp2040/const.py +7 -0
- esphome/components/rp2040/core.cpp +33 -0
- esphome/components/rp2040/core.h +14 -0
- esphome/components/rp2040/gpio.cpp +103 -0
- esphome/components/rp2040/gpio.h +38 -0
- esphome/components/rp2040/gpio.py +99 -0
- esphome/components/rp2040/post_build.py.script +23 -0
- esphome/components/rp2040/preferences.cpp +160 -0
- esphome/components/rp2040/preferences.h +14 -0
- esphome/components/rp2040_pio/__init__.py +40 -0
- esphome/components/rp2040_pio_led_strip/__init__.py +1 -0
- esphome/components/rp2040_pio_led_strip/led_strip.cpp +215 -0
- esphome/components/rp2040_pio_led_strip/led_strip.h +133 -0
- esphome/components/rp2040_pio_led_strip/light.py +283 -0
- esphome/components/rp2040_pwm/__init__.py +0 -0
- esphome/components/rp2040_pwm/output.py +55 -0
- esphome/components/rp2040_pwm/rp2040_pwm.cpp +68 -0
- esphome/components/rp2040_pwm/rp2040_pwm.h +59 -0
- esphome/components/rpi_dpi_rgb/__init__.py +1 -0
- esphome/components/rpi_dpi_rgb/display.py +200 -0
- esphome/components/rpi_dpi_rgb/rpi_dpi_rgb.cpp +166 -0
- esphome/components/rpi_dpi_rgb/rpi_dpi_rgb.h +97 -0
- esphome/components/rtl87xx/__init__.py +51 -0
- esphome/components/rtl87xx/boards.py +1404 -0
- esphome/components/rtttl/__init__.py +156 -0
- esphome/components/rtttl/rtttl.cpp +395 -0
- esphome/components/rtttl/rtttl.h +124 -0
- esphome/components/ruuvi_ble/__init__.py +22 -0
- esphome/components/ruuvi_ble/ruuvi_ble.cpp +144 -0
- esphome/components/ruuvi_ble/ruuvi_ble.h +37 -0
- esphome/components/ruuvitag/__init__.py +0 -0
- esphome/components/ruuvitag/ruuvitag.cpp +29 -0
- esphome/components/ruuvitag/ruuvitag.h +84 -0
- esphome/components/ruuvitag/sensor.py +163 -0
- esphome/components/safe_mode/__init__.py +75 -0
- esphome/components/safe_mode/automation.h +17 -0
- esphome/components/safe_mode/button/__init__.py +33 -0
- esphome/components/safe_mode/button/safe_mode_button.cpp +27 -0
- esphome/components/safe_mode/button/safe_mode_button.h +21 -0
- esphome/components/safe_mode/safe_mode.cpp +131 -0
- esphome/components/safe_mode/safe_mode.h +50 -0
- esphome/components/safe_mode/switch/__init__.py +32 -0
- esphome/components/safe_mode/switch/safe_mode_switch.cpp +32 -0
- esphome/components/safe_mode/switch/safe_mode_switch.h +21 -0
- esphome/components/scd30/__init__.py +0 -0
- esphome/components/scd30/automation.h +23 -0
- esphome/components/scd30/scd30.cpp +233 -0
- esphome/components/scd30/scd30.h +53 -0
- esphome/components/scd30/sensor.py +142 -0
- esphome/components/scd4x/__init__.py +0 -0
- esphome/components/scd4x/automation.h +28 -0
- esphome/components/scd4x/scd4x.cpp +317 -0
- esphome/components/scd4x/scd4x.h +61 -0
- esphome/components/scd4x/sensor.py +171 -0
- esphome/components/script/__init__.py +226 -0
- esphome/components/script/script.cpp +14 -0
- esphome/components/script/script.h +253 -0
- esphome/components/sdl/__init__.py +1 -0
- esphome/components/sdl/display.py +72 -0
- esphome/components/sdl/sdl_esphome.cpp +113 -0
- esphome/components/sdl/sdl_esphome.h +55 -0
- esphome/components/sdl/touchscreen/__init__.py +22 -0
- esphome/components/sdl/touchscreen/sdl_touchscreen.h +26 -0
- esphome/components/sdm_meter/__init__.py +0 -0
- esphome/components/sdm_meter/sdm_meter.cpp +111 -0
- esphome/components/sdm_meter/sdm_meter.h +83 -0
- esphome/components/sdm_meter/sdm_meter_registers.h +114 -0
- esphome/components/sdm_meter/sensor.py +174 -0
- esphome/components/sdp3x/__init__.py +0 -0
- esphome/components/sdp3x/sdp3x.cpp +122 -0
- esphome/components/sdp3x/sdp3x.h +30 -0
- esphome/components/sdp3x/sensor.py +52 -0
- esphome/components/sds011/__init__.py +0 -0
- esphome/components/sds011/sds011.cpp +190 -0
- esphome/components/sds011/sds011.h +49 -0
- esphome/components/sds011/sensor.py +81 -0
- esphome/components/seeed_mr24hpc1/__init__.py +51 -0
- esphome/components/seeed_mr24hpc1/binary_sensor.py +23 -0
- esphome/components/seeed_mr24hpc1/button/__init__.py +42 -0
- esphome/components/seeed_mr24hpc1/button/custom_mode_end_button.cpp +9 -0
- esphome/components/seeed_mr24hpc1/button/custom_mode_end_button.h +18 -0
- esphome/components/seeed_mr24hpc1/button/restart_button.cpp +9 -0
- esphome/components/seeed_mr24hpc1/button/restart_button.h +18 -0
- esphome/components/seeed_mr24hpc1/number/__init__.py +132 -0
- esphome/components/seeed_mr24hpc1/number/custom_mode_number.cpp +12 -0
- esphome/components/seeed_mr24hpc1/number/custom_mode_number.h +18 -0
- esphome/components/seeed_mr24hpc1/number/custom_unman_time_number.cpp +9 -0
- esphome/components/seeed_mr24hpc1/number/custom_unman_time_number.h +18 -0
- esphome/components/seeed_mr24hpc1/number/existence_threshold_number.cpp +9 -0
- esphome/components/seeed_mr24hpc1/number/existence_threshold_number.h +18 -0
- esphome/components/seeed_mr24hpc1/number/motion_threshold_number.cpp +9 -0
- esphome/components/seeed_mr24hpc1/number/motion_threshold_number.h +18 -0
- esphome/components/seeed_mr24hpc1/number/motion_trigger_time_number.cpp +9 -0
- esphome/components/seeed_mr24hpc1/number/motion_trigger_time_number.h +18 -0
- esphome/components/seeed_mr24hpc1/number/motiontorest_time_number.cpp +9 -0
- esphome/components/seeed_mr24hpc1/number/motiontorest_time_number.h +18 -0
- esphome/components/seeed_mr24hpc1/number/sensitivity_number.cpp +9 -0
- esphome/components/seeed_mr24hpc1/number/sensitivity_number.h +18 -0
- esphome/components/seeed_mr24hpc1/seeed_mr24hpc1.cpp +890 -0
- esphome/components/seeed_mr24hpc1/seeed_mr24hpc1.h +217 -0
- esphome/components/seeed_mr24hpc1/seeed_mr24hpc1_constants.h +173 -0
- esphome/components/seeed_mr24hpc1/select/__init__.py +103 -0
- esphome/components/seeed_mr24hpc1/select/existence_boundary_select.cpp +15 -0
- esphome/components/seeed_mr24hpc1/select/existence_boundary_select.h +18 -0
- esphome/components/seeed_mr24hpc1/select/motion_boundary_select.cpp +15 -0
- esphome/components/seeed_mr24hpc1/select/motion_boundary_select.h +18 -0
- esphome/components/seeed_mr24hpc1/select/scene_mode_select.cpp +15 -0
- esphome/components/seeed_mr24hpc1/select/scene_mode_select.h +18 -0
- esphome/components/seeed_mr24hpc1/select/unman_time_select.cpp +15 -0
- esphome/components/seeed_mr24hpc1/select/unman_time_select.h +18 -0
- esphome/components/seeed_mr24hpc1/sensor.py +82 -0
- esphome/components/seeed_mr24hpc1/switch/__init__.py +32 -0
- esphome/components/seeed_mr24hpc1/switch/underlyFuc_switch.cpp +12 -0
- esphome/components/seeed_mr24hpc1/switch/underlyFuc_switch.h +18 -0
- esphome/components/seeed_mr24hpc1/text_sensor.py +74 -0
- esphome/components/seeed_mr60bha2/__init__.py +41 -0
- esphome/components/seeed_mr60bha2/seeed_mr60bha2.cpp +173 -0
- esphome/components/seeed_mr60bha2/seeed_mr60bha2.h +61 -0
- esphome/components/seeed_mr60bha2/sensor.py +57 -0
- esphome/components/seeed_mr60fda2/__init__.py +41 -0
- esphome/components/seeed_mr60fda2/binary_sensor.py +33 -0
- esphome/components/seeed_mr60fda2/button/__init__.py +45 -0
- esphome/components/seeed_mr60fda2/button/get_radar_parameters_button.cpp +9 -0
- esphome/components/seeed_mr60fda2/button/get_radar_parameters_button.h +18 -0
- esphome/components/seeed_mr60fda2/button/reset_radar_button.cpp +9 -0
- esphome/components/seeed_mr60fda2/button/reset_radar_button.h +18 -0
- esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp +368 -0
- esphome/components/seeed_mr60fda2/seeed_mr60fda2.h +101 -0
- esphome/components/seeed_mr60fda2/select/__init__.py +59 -0
- esphome/components/seeed_mr60fda2/select/height_threshold_select.cpp +15 -0
- esphome/components/seeed_mr60fda2/select/height_threshold_select.h +18 -0
- esphome/components/seeed_mr60fda2/select/install_height_select.cpp +15 -0
- esphome/components/seeed_mr60fda2/select/install_height_select.h +18 -0
- esphome/components/seeed_mr60fda2/select/sensitivity_select.cpp +15 -0
- esphome/components/seeed_mr60fda2/select/sensitivity_select.h +18 -0
- esphome/components/selec_meter/__init__.py +0 -0
- esphome/components/selec_meter/selec_meter.cpp +108 -0
- esphome/components/selec_meter/selec_meter.h +47 -0
- esphome/components/selec_meter/selec_meter_registers.h +32 -0
- esphome/components/selec_meter/sensor.py +165 -0
- esphome/components/select/__init__.py +244 -0
- esphome/components/select/automation.h +67 -0
- esphome/components/select/select.cpp +62 -0
- esphome/components/select/select.h +80 -0
- esphome/components/select/select_call.cpp +120 -0
- esphome/components/select/select_call.h +47 -0
- esphome/components/select/select_traits.cpp +11 -0
- esphome/components/select/select_traits.h +19 -0
- esphome/components/sen0321/__init__.py +1 -0
- esphome/components/sen0321/sen0321.cpp +36 -0
- esphome/components/sen0321/sen0321.h +35 -0
- esphome/components/sen0321/sensor.py +34 -0
- esphome/components/sen21231/__init__.py +0 -0
- esphome/components/sen21231/sen21231.cpp +32 -0
- esphome/components/sen21231/sen21231.h +77 -0
- esphome/components/sen21231/sensor.py +24 -0
- esphome/components/sen5x/__init__.py +0 -0
- esphome/components/sen5x/automation.h +21 -0
- esphome/components/sen5x/sen5x.cpp +424 -0
- esphome/components/sen5x/sen5x.h +134 -0
- esphome/components/sen5x/sensor.py +250 -0
- esphome/components/senseair/__init__.py +0 -0
- esphome/components/senseair/senseair.cpp +150 -0
- esphome/components/senseair/senseair.h +82 -0
- esphome/components/senseair/sensor.py +93 -0
- esphome/components/sensirion_common/__init__.py +10 -0
- esphome/components/sensirion_common/i2c_sensirion.cpp +128 -0
- esphome/components/sensirion_common/i2c_sensirion.h +157 -0
- esphome/components/sensor/__init__.py +959 -0
- esphome/components/sensor/automation.cpp +10 -0
- esphome/components/sensor/automation.h +111 -0
- esphome/components/sensor/filter.cpp +485 -0
- esphome/components/sensor/filter.h +443 -0
- esphome/components/sensor/sensor.cpp +100 -0
- esphome/components/sensor/sensor.h +163 -0
- esphome/components/servo/__init__.py +85 -0
- esphome/components/servo/servo.cpp +107 -0
- esphome/components/servo/servo.h +78 -0
- esphome/components/sfa30/__init__.py +1 -0
- esphome/components/sfa30/sensor.py +78 -0
- esphome/components/sfa30/sfa30.cpp +99 -0
- esphome/components/sfa30/sfa30.h +34 -0
- esphome/components/sgp30/__init__.py +0 -0
- esphome/components/sgp30/sensor.py +118 -0
- esphome/components/sgp30/sgp30.cpp +305 -0
- esphome/components/sgp30/sgp30.h +71 -0
- esphome/components/sgp40/__init__.py +0 -0
- esphome/components/sgp40/sensor.py +8 -0
- esphome/components/sgp4x/__init__.py +0 -0
- esphome/components/sgp4x/sensor.py +145 -0
- esphome/components/sgp4x/sgp4x.cpp +310 -0
- esphome/components/sgp4x/sgp4x.h +145 -0
- esphome/components/shelly_dimmer/__init__.py +1 -0
- esphome/components/shelly_dimmer/dev_table.h +159 -0
- esphome/components/shelly_dimmer/light.py +221 -0
- esphome/components/shelly_dimmer/shelly_dimmer.cpp +527 -0
- esphome/components/shelly_dimmer/shelly_dimmer.h +123 -0
- esphome/components/shelly_dimmer/stm32flash.cpp +1066 -0
- esphome/components/shelly_dimmer/stm32flash.h +131 -0
- esphome/components/sht3xd/__init__.py +0 -0
- esphome/components/sht3xd/sensor.py +64 -0
- esphome/components/sht3xd/sht3xd.cpp +107 -0
- esphome/components/sht3xd/sht3xd.h +39 -0
- esphome/components/sht4x/__init__.py +0 -0
- esphome/components/sht4x/sensor.py +103 -0
- esphome/components/sht4x/sht4x.cpp +86 -0
- esphome/components/sht4x/sht4x.h +47 -0
- esphome/components/shtcx/__init__.py +0 -0
- esphome/components/shtcx/sensor.py +59 -0
- esphome/components/shtcx/shtcx.cpp +125 -0
- esphome/components/shtcx/shtcx.h +34 -0
- esphome/components/shutdown/__init__.py +1 -0
- esphome/components/shutdown/button/__init__.py +21 -0
- esphome/components/shutdown/button/shutdown_button.cpp +33 -0
- esphome/components/shutdown/button/shutdown_button.h +18 -0
- esphome/components/shutdown/switch/__init__.py +22 -0
- esphome/components/shutdown/switch/shutdown_switch.cpp +38 -0
- esphome/components/shutdown/switch/shutdown_switch.h +18 -0
- esphome/components/sigma_delta_output/__init__.py +1 -0
- esphome/components/sigma_delta_output/output.py +66 -0
- esphome/components/sigma_delta_output/sigma_delta_output.cpp +57 -0
- esphome/components/sigma_delta_output/sigma_delta_output.h +47 -0
- esphome/components/sim800l/__init__.py +209 -0
- esphome/components/sim800l/binary_sensor.py +28 -0
- esphome/components/sim800l/sensor.py +33 -0
- esphome/components/sim800l/sim800l.cpp +489 -0
- esphome/components/sim800l/sim800l.h +223 -0
- esphome/components/slow_pwm/__init__.py +0 -0
- esphome/components/slow_pwm/output.py +72 -0
- esphome/components/slow_pwm/slow_pwm_output.cpp +77 -0
- esphome/components/slow_pwm/slow_pwm_output.h +61 -0
- esphome/components/sm10bit_base/__init__.py +44 -0
- esphome/components/sm10bit_base/sm10bit_base.cpp +131 -0
- esphome/components/sm10bit_base/sm10bit_base.h +63 -0
- esphome/components/sm16716/__init__.py +38 -0
- esphome/components/sm16716/output.py +27 -0
- esphome/components/sm16716/sm16716.cpp +52 -0
- esphome/components/sm16716/sm16716.h +72 -0
- esphome/components/sm2135/__init__.py +71 -0
- esphome/components/sm2135/output.py +28 -0
- esphome/components/sm2135/sm2135.cpp +152 -0
- esphome/components/sm2135/sm2135.h +90 -0
- esphome/components/sm2235/__init__.py +22 -0
- esphome/components/sm2235/output.py +28 -0
- esphome/components/sm2235/sm2235.cpp +27 -0
- esphome/components/sm2235/sm2235.h +19 -0
- esphome/components/sm2335/__init__.py +22 -0
- esphome/components/sm2335/output.py +28 -0
- esphome/components/sm2335/sm2335.cpp +27 -0
- esphome/components/sm2335/sm2335.h +19 -0
- esphome/components/sm300d2/__init__.py +0 -0
- esphome/components/sm300d2/sensor.py +117 -0
- esphome/components/sm300d2/sm300d2.cpp +108 -0
- esphome/components/sm300d2/sm300d2.h +38 -0
- esphome/components/sml/__init__.py +68 -0
- esphome/components/sml/automation.h +19 -0
- esphome/components/sml/constants.h +27 -0
- esphome/components/sml/sensor/__init__.py +30 -0
- esphome/components/sml/sensor/sml_sensor.cpp +41 -0
- esphome/components/sml/sensor/sml_sensor.h +16 -0
- esphome/components/sml/sml.cpp +146 -0
- esphome/components/sml/sml.h +48 -0
- esphome/components/sml/sml_parser.cpp +155 -0
- esphome/components/sml/sml_parser.h +54 -0
- esphome/components/sml/text_sensor/__init__.py +43 -0
- esphome/components/sml/text_sensor/sml_text_sensor.cpp +54 -0
- esphome/components/sml/text_sensor/sml_text_sensor.h +21 -0
- esphome/components/smt100/__init__.py +1 -0
- esphome/components/smt100/sensor.py +94 -0
- esphome/components/smt100/smt100.cpp +84 -0
- esphome/components/smt100/smt100.h +43 -0
- esphome/components/sn74hc165/__init__.py +95 -0
- esphome/components/sn74hc165/sn74hc165.cpp +72 -0
- esphome/components/sn74hc165/sn74hc165.h +61 -0
- esphome/components/sn74hc595/__init__.py +121 -0
- esphome/components/sn74hc595/sn74hc595.cpp +100 -0
- esphome/components/sn74hc595/sn74hc595.h +94 -0
- esphome/components/sntp/__init__.py +0 -0
- esphome/components/sntp/sntp_component.cpp +73 -0
- esphome/components/sntp/sntp_component.h +35 -0
- esphome/components/sntp/time.py +51 -0
- esphome/components/socket/__init__.py +39 -0
- esphome/components/socket/bsd_sockets_impl.cpp +143 -0
- esphome/components/socket/headers.h +185 -0
- esphome/components/socket/lwip_raw_tcp_impl.cpp +612 -0
- esphome/components/socket/lwip_sockets_impl.cpp +115 -0
- esphome/components/socket/socket.cpp +78 -0
- esphome/components/socket/socket.h +61 -0
- esphome/components/sonoff_d1/__init__.py +1 -0
- esphome/components/sonoff_d1/light.py +43 -0
- esphome/components/sonoff_d1/sonoff_d1.cpp +309 -0
- esphome/components/sonoff_d1/sonoff_d1.h +85 -0
- esphome/components/speaker/__init__.py +143 -0
- esphome/components/speaker/automation.h +83 -0
- esphome/components/speaker/speaker.h +110 -0
- esphome/components/speed/__init__.py +3 -0
- esphome/components/speed/fan/__init__.py +51 -0
- esphome/components/speed/fan/speed_fan.cpp +48 -0
- esphome/components/speed/fan/speed_fan.h +37 -0
- esphome/components/spi/__init__.py +408 -0
- esphome/components/spi/spi.cpp +118 -0
- esphome/components/spi/spi.h +477 -0
- esphome/components/spi/spi_arduino.cpp +95 -0
- esphome/components/spi/spi_esp_idf.cpp +244 -0
- esphome/components/spi_device/__init__.py +36 -0
- esphome/components/spi_device/spi_device.cpp +31 -0
- esphome/components/spi_device/spi_device.h +22 -0
- esphome/components/spi_led_strip/__init__.py +2 -0
- esphome/components/spi_led_strip/light.py +25 -0
- esphome/components/spi_led_strip/spi_led_strip.h +92 -0
- esphome/components/sprinkler/__init__.py +837 -0
- esphome/components/sprinkler/automation.h +185 -0
- esphome/components/sprinkler/sprinkler.cpp +1735 -0
- esphome/components/sprinkler/sprinkler.h +611 -0
- esphome/components/sps30/__init__.py +0 -0
- esphome/components/sps30/automation.h +21 -0
- esphome/components/sps30/sensor.py +180 -0
- esphome/components/sps30/sps30.cpp +238 -0
- esphome/components/sps30/sps30.h +63 -0
- esphome/components/ssd1306_base/__init__.py +103 -0
- esphome/components/ssd1306_base/ssd1306_base.cpp +382 -0
- esphome/components/ssd1306_base/ssd1306_base.h +88 -0
- esphome/components/ssd1306_i2c/__init__.py +0 -0
- esphome/components/ssd1306_i2c/display.py +29 -0
- esphome/components/ssd1306_i2c/ssd1306_i2c.cpp +78 -0
- esphome/components/ssd1306_i2c/ssd1306_i2c.h +23 -0
- esphome/components/ssd1306_spi/__init__.py +0 -0
- esphome/components/ssd1306_spi/display.py +38 -0
- esphome/components/ssd1306_spi/ssd1306_spi.cpp +65 -0
- esphome/components/ssd1306_spi/ssd1306_spi.h +29 -0
- esphome/components/ssd1322_base/__init__.py +50 -0
- esphome/components/ssd1322_base/ssd1322_base.cpp +204 -0
- esphome/components/ssd1322_base/ssd1322_base.h +55 -0
- esphome/components/ssd1322_spi/__init__.py +0 -0
- esphome/components/ssd1322_spi/display.py +38 -0
- esphome/components/ssd1322_spi/ssd1322_spi.cpp +71 -0
- esphome/components/ssd1322_spi/ssd1322_spi.h +30 -0
- esphome/components/ssd1325_base/__init__.py +54 -0
- esphome/components/ssd1325_base/ssd1325_base.cpp +245 -0
- esphome/components/ssd1325_base/ssd1325_base.h +60 -0
- esphome/components/ssd1325_spi/__init__.py +0 -0
- esphome/components/ssd1325_spi/display.py +38 -0
- esphome/components/ssd1325_spi/ssd1325_spi.cpp +59 -0
- esphome/components/ssd1325_spi/ssd1325_spi.h +29 -0
- esphome/components/ssd1327_base/__init__.py +41 -0
- esphome/components/ssd1327_base/ssd1327_base.cpp +180 -0
- esphome/components/ssd1327_base/ssd1327_base.h +54 -0
- esphome/components/ssd1327_i2c/__init__.py +0 -0
- esphome/components/ssd1327_i2c/display.py +29 -0
- esphome/components/ssd1327_i2c/ssd1327_i2c.cpp +44 -0
- esphome/components/ssd1327_i2c/ssd1327_i2c.h +23 -0
- esphome/components/ssd1327_spi/__init__.py +0 -0
- esphome/components/ssd1327_spi/display.py +38 -0
- esphome/components/ssd1327_spi/ssd1327_spi.cpp +58 -0
- esphome/components/ssd1327_spi/ssd1327_spi.h +29 -0
- esphome/components/ssd1331_base/__init__.py +32 -0
- esphome/components/ssd1331_base/ssd1331_base.cpp +154 -0
- esphome/components/ssd1331_base/ssd1331_base.h +47 -0
- esphome/components/ssd1331_spi/__init__.py +0 -0
- esphome/components/ssd1331_spi/display.py +38 -0
- esphome/components/ssd1331_spi/ssd1331_spi.cpp +57 -0
- esphome/components/ssd1331_spi/ssd1331_spi.h +29 -0
- esphome/components/ssd1351_base/__init__.py +42 -0
- esphome/components/ssd1351_base/ssd1351_base.cpp +196 -0
- esphome/components/ssd1351_base/ssd1351_base.h +56 -0
- esphome/components/ssd1351_spi/__init__.py +0 -0
- esphome/components/ssd1351_spi/display.py +38 -0
- esphome/components/ssd1351_spi/ssd1351_spi.cpp +71 -0
- esphome/components/ssd1351_spi/ssd1351_spi.h +30 -0
- esphome/components/st7567_base/__init__.py +55 -0
- esphome/components/st7567_base/st7567_base.cpp +152 -0
- esphome/components/st7567_base/st7567_base.h +100 -0
- esphome/components/st7567_i2c/__init__.py +1 -0
- esphome/components/st7567_i2c/display.py +29 -0
- esphome/components/st7567_i2c/st7567_i2c.cpp +60 -0
- esphome/components/st7567_i2c/st7567_i2c.h +23 -0
- esphome/components/st7567_spi/__init__.py +1 -0
- esphome/components/st7567_spi/display.py +38 -0
- esphome/components/st7567_spi/st7567_spi.cpp +66 -0
- esphome/components/st7567_spi/st7567_spi.h +29 -0
- esphome/components/st7701s/__init__.py +1 -0
- esphome/components/st7701s/display.py +255 -0
- esphome/components/st7701s/init_sequences.py +363 -0
- esphome/components/st7701s/st7701s.cpp +198 -0
- esphome/components/st7701s/st7701s.h +118 -0
- esphome/components/st7735/__init__.py +3 -0
- esphome/components/st7735/display.py +105 -0
- esphome/components/st7735/st7735.cpp +490 -0
- esphome/components/st7735/st7735.h +90 -0
- esphome/components/st7789v/__init__.py +3 -0
- esphome/components/st7789v/display.py +209 -0
- esphome/components/st7789v/st7789v.cpp +309 -0
- esphome/components/st7789v/st7789v.h +172 -0
- esphome/components/st7920/__init__.py +0 -0
- esphome/components/st7920/display.py +41 -0
- esphome/components/st7920/st7920.cpp +145 -0
- esphome/components/st7920/st7920.h +51 -0
- esphome/components/statsd/__init__.py +65 -0
- esphome/components/statsd/statsd.cpp +158 -0
- esphome/components/statsd/statsd.h +88 -0
- esphome/components/status/__init__.py +0 -0
- esphome/components/status/binary_sensor.py +25 -0
- esphome/components/status/status_binary_sensor.cpp +37 -0
- esphome/components/status/status_binary_sensor.h +22 -0
- esphome/components/status_led/__init__.py +25 -0
- esphome/components/status_led/light/__init__.py +35 -0
- esphome/components/status_led/light/status_led_light.cpp +77 -0
- esphome/components/status_led/light/status_led_light.h +44 -0
- esphome/components/status_led/status_led.cpp +35 -0
- esphome/components/status_led/status_led.h +26 -0
- esphome/components/stepper/__init__.py +185 -0
- esphome/components/stepper/stepper.cpp +51 -0
- esphome/components/stepper/stepper.h +110 -0
- esphome/components/sts3x/__init__.py +0 -0
- esphome/components/sts3x/sensor.py +35 -0
- esphome/components/sts3x/sts3x.cpp +71 -0
- esphome/components/sts3x/sts3x.h +22 -0
- esphome/components/substitutions/__init__.py +144 -0
- esphome/components/sun/__init__.py +181 -0
- esphome/components/sun/sensor/__init__.py +43 -0
- esphome/components/sun/sensor/sun_sensor.cpp +12 -0
- esphome/components/sun/sensor/sun_sensor.h +41 -0
- esphome/components/sun/sun.cpp +322 -0
- esphome/components/sun/sun.h +133 -0
- esphome/components/sun/text_sensor/__init__.py +58 -0
- esphome/components/sun/text_sensor/sun_text_sensor.cpp +12 -0
- esphome/components/sun/text_sensor/sun_text_sensor.h +44 -0
- esphome/components/sun_gtil2/__init__.py +26 -0
- esphome/components/sun_gtil2/sensor.py +87 -0
- esphome/components/sun_gtil2/sun_gtil2.cpp +135 -0
- esphome/components/sun_gtil2/sun_gtil2.h +58 -0
- esphome/components/sun_gtil2/text_sensor.py +31 -0
- esphome/components/switch/__init__.py +211 -0
- esphome/components/switch/automation.cpp +10 -0
- esphome/components/switch/automation.h +84 -0
- esphome/components/switch/binary_sensor/__init__.py +31 -0
- esphome/components/switch/binary_sensor/switch_binary_sensor.cpp +17 -0
- esphome/components/switch/binary_sensor/switch_binary_sensor.h +22 -0
- esphome/components/switch/switch.cpp +96 -0
- esphome/components/switch/switch.h +136 -0
- esphome/components/sx1509/__init__.py +119 -0
- esphome/components/sx1509/binary_sensor/__init__.py +26 -0
- esphome/components/sx1509/binary_sensor/sx1509_binary_keypad_sensor.h +19 -0
- esphome/components/sx1509/output/__init__.py +28 -0
- esphome/components/sx1509/output/sx1509_float_output.cpp +31 -0
- esphome/components/sx1509/output/sx1509_float_output.h +27 -0
- esphome/components/sx1509/sx1509.cpp +290 -0
- esphome/components/sx1509/sx1509.h +86 -0
- esphome/components/sx1509/sx1509_gpio_pin.cpp +22 -0
- esphome/components/sx1509/sx1509_gpio_pin.h +31 -0
- esphome/components/sx1509/sx1509_registers.h +110 -0
- esphome/components/t6615/__init__.py +0 -0
- esphome/components/t6615/sensor.py +46 -0
- esphome/components/t6615/t6615.cpp +95 -0
- esphome/components/t6615/t6615.h +44 -0
- esphome/components/tc74/__init__.py +1 -0
- esphome/components/tc74/sensor.py +32 -0
- esphome/components/tc74/tc74.cpp +68 -0
- esphome/components/tc74/tc74.h +28 -0
- esphome/components/tca9548a/__init__.py +43 -0
- esphome/components/tca9548a/tca9548a.cpp +57 -0
- esphome/components/tca9548a/tca9548a.h +39 -0
- esphome/components/tca9555/__init__.py +72 -0
- esphome/components/tca9555/tca9555.cpp +140 -0
- esphome/components/tca9555/tca9555.h +64 -0
- esphome/components/tcl112/__init__.py +0 -0
- esphome/components/tcl112/climate.py +21 -0
- esphome/components/tcl112/tcl112.cpp +244 -0
- esphome/components/tcl112/tcl112.h +28 -0
- esphome/components/tcs34725/__init__.py +0 -0
- esphome/components/tcs34725/sensor.py +132 -0
- esphome/components/tcs34725/tcs34725.cpp +354 -0
- esphome/components/tcs34725/tcs34725.h +90 -0
- esphome/components/tee501/__init__.py +0 -0
- esphome/components/tee501/sensor.py +36 -0
- esphome/components/tee501/tee501.cpp +85 -0
- esphome/components/tee501/tee501.h +25 -0
- esphome/components/teleinfo/__init__.py +40 -0
- esphome/components/teleinfo/sensor/__init__.py +28 -0
- esphome/components/teleinfo/sensor/teleinfo_sensor.cpp +14 -0
- esphome/components/teleinfo/sensor/teleinfo_sensor.h +16 -0
- esphome/components/teleinfo/teleinfo.cpp +209 -0
- esphome/components/teleinfo/teleinfo.h +54 -0
- esphome/components/teleinfo/text_sensor/__init__.py +21 -0
- esphome/components/teleinfo/text_sensor/teleinfo_text_sensor.cpp +11 -0
- esphome/components/teleinfo/text_sensor/teleinfo_text_sensor.h +13 -0
- esphome/components/tem3200/__init__.py +0 -0
- esphome/components/tem3200/sensor.py +55 -0
- esphome/components/tem3200/tem3200.cpp +151 -0
- esphome/components/tem3200/tem3200.h +30 -0
- esphome/components/template/__init__.py +3 -0
- esphome/components/template/alarm_control_panel/__init__.py +159 -0
- esphome/components/template/alarm_control_panel/template_alarm_control_panel.cpp +266 -0
- esphome/components/template/alarm_control_panel/template_alarm_control_panel.h +155 -0
- esphome/components/template/binary_sensor/__init__.py +62 -0
- esphome/components/template/binary_sensor/template_binary_sensor.cpp +31 -0
- esphome/components/template/binary_sensor/template_binary_sensor.h +24 -0
- esphome/components/template/button/__init__.py +11 -0
- esphome/components/template/button/template_button.h +15 -0
- esphome/components/template/cover/__init__.py +139 -0
- esphome/components/template/cover/template_cover.cpp +141 -0
- esphome/components/template/cover/template_cover.h +66 -0
- esphome/components/template/datetime/__init__.py +151 -0
- esphome/components/template/datetime/template_date.cpp +111 -0
- esphome/components/template/datetime/template_date.h +46 -0
- esphome/components/template/datetime/template_datetime.cpp +150 -0
- esphome/components/template/datetime/template_datetime.h +46 -0
- esphome/components/template/datetime/template_time.cpp +111 -0
- esphome/components/template/datetime/template_time.h +46 -0
- esphome/components/template/event/__init__.py +24 -0
- esphome/components/template/event/template_event.h +12 -0
- esphome/components/template/fan/__init__.py +43 -0
- esphome/components/template/fan/template_fan.cpp +38 -0
- esphome/components/template/fan/template_fan.h +33 -0
- esphome/components/template/lock/__init__.py +103 -0
- esphome/components/template/lock/template_lock.cpp +59 -0
- esphome/components/template/lock/template_lock.h +38 -0
- esphome/components/template/number/__init__.py +93 -0
- esphome/components/template/number/template_number.cpp +56 -0
- esphome/components/template/number/template_number.h +37 -0
- esphome/components/template/output/__init__.py +47 -0
- esphome/components/template/output/template_output.h +31 -0
- esphome/components/template/select/__init__.py +84 -0
- esphome/components/template/select/template_select.cpp +75 -0
- esphome/components/template/select/template_select.h +37 -0
- esphome/components/template/sensor/__init__.py +56 -0
- esphome/components/template/sensor/template_sensor.cpp +27 -0
- esphome/components/template/sensor/template_sensor.h +24 -0
- esphome/components/template/switch/__init__.py +92 -0
- esphome/components/template/switch/template_switch.cpp +62 -0
- esphome/components/template/switch/template_switch.h +40 -0
- esphome/components/template/text/__init__.py +92 -0
- esphome/components/template/text/template_text.cpp +64 -0
- esphome/components/template/text/template_text.h +87 -0
- esphome/components/template/text_sensor/__init__.py +51 -0
- esphome/components/template/text_sensor/template_text_sensor.cpp +23 -0
- esphome/components/template/text_sensor/template_text_sensor.h +25 -0
- esphome/components/template/valve/__init__.py +118 -0
- esphome/components/template/valve/template_valve.cpp +131 -0
- esphome/components/template/valve/template_valve.h +60 -0
- esphome/components/text/__init__.py +146 -0
- esphome/components/text/automation.h +33 -0
- esphome/components/text/text.cpp +26 -0
- esphome/components/text/text.h +55 -0
- esphome/components/text/text_call.cpp +56 -0
- esphome/components/text/text_call.h +25 -0
- esphome/components/text/text_traits.h +39 -0
- esphome/components/text_sensor/__init__.py +253 -0
- esphome/components/text_sensor/automation.h +50 -0
- esphome/components/text_sensor/filter.cpp +81 -0
- esphome/components/text_sensor/filter.h +124 -0
- esphome/components/text_sensor/text_sensor.cpp +72 -0
- esphome/components/text_sensor/text_sensor.h +84 -0
- esphome/components/thermostat/__init__.py +0 -0
- esphome/components/thermostat/climate.py +951 -0
- esphome/components/thermostat/thermostat_climate.cpp +1404 -0
- esphome/components/thermostat/thermostat_climate.h +475 -0
- esphome/components/time/__init__.py +346 -0
- esphome/components/time/automation.cpp +96 -0
- esphome/components/time/automation.h +52 -0
- esphome/components/time/real_time_clock.cpp +62 -0
- esphome/components/time/real_time_clock.h +64 -0
- esphome/components/time_based/__init__.py +0 -0
- esphome/components/time_based/cover.py +57 -0
- esphome/components/time_based/time_based_cover.cpp +183 -0
- esphome/components/time_based/time_based_cover.h +55 -0
- esphome/components/tlc59208f/__init__.py +26 -0
- esphome/components/tlc59208f/output.py +26 -0
- esphome/components/tlc59208f/tlc59208f_output.cpp +156 -0
- esphome/components/tlc59208f/tlc59208f_output.h +69 -0
- esphome/components/tlc5947/__init__.py +49 -0
- esphome/components/tlc5947/output/__init__.py +27 -0
- esphome/components/tlc5947/output/tlc5947_output.cpp +12 -0
- esphome/components/tlc5947/output/tlc5947_output.h +22 -0
- esphome/components/tlc5947/tlc5947.cpp +73 -0
- esphome/components/tlc5947/tlc5947.h +46 -0
- esphome/components/tlc5971/__init__.py +40 -0
- esphome/components/tlc5971/output/__init__.py +27 -0
- esphome/components/tlc5971/output/tlc5971_output.cpp +12 -0
- esphome/components/tlc5971/output/tlc5971_output.h +22 -0
- esphome/components/tlc5971/tlc5971.cpp +101 -0
- esphome/components/tlc5971/tlc5971.h +43 -0
- esphome/components/tm1621/__init__.py +1 -0
- esphome/components/tm1621/display.py +46 -0
- esphome/components/tm1621/tm1621.cpp +283 -0
- esphome/components/tm1621/tm1621.h +74 -0
- esphome/components/tm1637/__init__.py +0 -0
- esphome/components/tm1637/binary_sensor.py +25 -0
- esphome/components/tm1637/display.py +52 -0
- esphome/components/tm1637/tm1637.cpp +382 -0
- esphome/components/tm1637/tm1637.h +102 -0
- esphome/components/tm1638/__init__.py +0 -0
- esphome/components/tm1638/binary_sensor/__init__.py +22 -0
- esphome/components/tm1638/binary_sensor/tm1638_key.cpp +13 -0
- esphome/components/tm1638/binary_sensor/tm1638_key.h +19 -0
- esphome/components/tm1638/display.py +54 -0
- esphome/components/tm1638/output/__init__.py +26 -0
- esphome/components/tm1638/output/tm1638_output_led.cpp +17 -0
- esphome/components/tm1638/output/tm1638_output_led.h +25 -0
- esphome/components/tm1638/sevenseg.h +107 -0
- esphome/components/tm1638/switch/__init__.py +25 -0
- esphome/components/tm1638/switch/tm1638_switch_led.cpp +20 -0
- esphome/components/tm1638/switch/tm1638_switch_led.h +23 -0
- esphome/components/tm1638/tm1638.cpp +286 -0
- esphome/components/tm1638/tm1638.h +78 -0
- esphome/components/tm1651/__init__.py +139 -0
- esphome/components/tm1651/tm1651.cpp +94 -0
- esphome/components/tm1651/tm1651.h +96 -0
- esphome/components/tmp102/__init__.py +9 -0
- esphome/components/tmp102/sensor.py +44 -0
- esphome/components/tmp102/tmp102.cpp +54 -0
- esphome/components/tmp102/tmp102.h +22 -0
- esphome/components/tmp1075/__init__.py +1 -0
- esphome/components/tmp1075/sensor.py +92 -0
- esphome/components/tmp1075/tmp1075.cpp +129 -0
- esphome/components/tmp1075/tmp1075.h +92 -0
- esphome/components/tmp117/__init__.py +0 -0
- esphome/components/tmp117/sensor.py +80 -0
- esphome/components/tmp117/tmp117.cpp +76 -0
- esphome/components/tmp117/tmp117.h +27 -0
- esphome/components/tof10120/__init__.py +0 -0
- esphome/components/tof10120/sensor.py +34 -0
- esphome/components/tof10120/tof10120_sensor.cpp +60 -0
- esphome/components/tof10120/tof10120_sensor.h +19 -0
- esphome/components/toshiba/__init__.py +0 -0
- esphome/components/toshiba/climate.py +30 -0
- esphome/components/toshiba/toshiba.cpp +768 -0
- esphome/components/toshiba/toshiba.h +64 -0
- esphome/components/total_daily_energy/__init__.py +0 -0
- esphome/components/total_daily_energy/sensor.py +92 -0
- esphome/components/total_daily_energy/total_daily_energy.cpp +75 -0
- esphome/components/total_daily_energy/total_daily_energy.h +46 -0
- esphome/components/touchscreen/__init__.py +158 -0
- esphome/components/touchscreen/binary_sensor/__init__.py +83 -0
- esphome/components/touchscreen/binary_sensor/touchscreen_binary_sensor.cpp +28 -0
- esphome/components/touchscreen/binary_sensor/touchscreen_binary_sensor.h +46 -0
- esphome/components/touchscreen/touchscreen.cpp +165 -0
- esphome/components/touchscreen/touchscreen.h +119 -0
- esphome/components/tsl2561/__init__.py +0 -0
- esphome/components/tsl2561/sensor.py +69 -0
- esphome/components/tsl2561/tsl2561.cpp +164 -0
- esphome/components/tsl2561/tsl2561.h +87 -0
- esphome/components/tsl2591/__init__.py +1 -0
- esphome/components/tsl2591/sensor.py +172 -0
- esphome/components/tsl2591/tsl2591.cpp +482 -0
- esphome/components/tsl2591/tsl2591.h +276 -0
- esphome/components/tt21100/__init__.py +5 -0
- esphome/components/tt21100/binary_sensor/__init__.py +31 -0
- esphome/components/tt21100/binary_sensor/tt21100_button.cpp +27 -0
- esphome/components/tt21100/binary_sensor/tt21100_button.h +28 -0
- esphome/components/tt21100/touchscreen/__init__.py +41 -0
- esphome/components/tt21100/touchscreen/tt21100.cpp +145 -0
- esphome/components/tt21100/touchscreen/tt21100.h +43 -0
- esphome/components/ttp229_bsf/__init__.py +30 -0
- esphome/components/ttp229_bsf/binary_sensor.py +23 -0
- esphome/components/ttp229_bsf/ttp229_bsf.cpp +23 -0
- esphome/components/ttp229_bsf/ttp229_bsf.h +56 -0
- esphome/components/ttp229_lsf/__init__.py +31 -0
- esphome/components/ttp229_lsf/binary_sensor.py +23 -0
- esphome/components/ttp229_lsf/ttp229_lsf.cpp +45 -0
- esphome/components/ttp229_lsf/ttp229_lsf.h +38 -0
- esphome/components/tuya/__init__.py +133 -0
- esphome/components/tuya/automation.cpp +67 -0
- esphome/components/tuya/automation.h +55 -0
- esphome/components/tuya/binary_sensor/__init__.py +34 -0
- esphome/components/tuya/binary_sensor/tuya_binary_sensor.cpp +22 -0
- esphome/components/tuya/binary_sensor/tuya_binary_sensor.h +24 -0
- esphome/components/tuya/climate/__init__.py +274 -0
- esphome/components/tuya/climate/tuya_climate.cpp +492 -0
- esphome/components/tuya/climate/tuya_climate.h +128 -0
- esphome/components/tuya/cover/__init__.py +79 -0
- esphome/components/tuya/cover/tuya_cover.cpp +140 -0
- esphome/components/tuya/cover/tuya_cover.h +50 -0
- esphome/components/tuya/fan/__init__.py +45 -0
- esphome/components/tuya/fan/tuya_fan.cpp +107 -0
- esphome/components/tuya/fan/tuya_fan.h +36 -0
- esphome/components/tuya/light/__init__.py +122 -0
- esphome/components/tuya/light/tuya_light.cpp +224 -0
- esphome/components/tuya/light/tuya_light.h +71 -0
- esphome/components/tuya/number/__init__.py +95 -0
- esphome/components/tuya/number/tuya_number.cpp +95 -0
- esphome/components/tuya/number/tuya_number.h +38 -0
- esphome/components/tuya/select/__init__.py +50 -0
- esphome/components/tuya/select/tuya_select.cpp +52 -0
- esphome/components/tuya/select/tuya_select.h +32 -0
- esphome/components/tuya/sensor/__init__.py +32 -0
- esphome/components/tuya/sensor/tuya_sensor.cpp +34 -0
- esphome/components/tuya/sensor/tuya_sensor.h +24 -0
- esphome/components/tuya/switch/__init__.py +31 -0
- esphome/components/tuya/switch/tuya_switch.cpp +28 -0
- esphome/components/tuya/switch/tuya_switch.h +26 -0
- esphome/components/tuya/text_sensor/__init__.py +32 -0
- esphome/components/tuya/text_sensor/tuya_text_sensor.cpp +41 -0
- esphome/components/tuya/text_sensor/tuya_text_sensor.h +24 -0
- esphome/components/tuya/tuya.cpp +714 -0
- esphome/components/tuya/tuya.h +166 -0
- esphome/components/tx20/__init__.py +0 -0
- esphome/components/tx20/sensor.py +54 -0
- esphome/components/tx20/tx20.cpp +197 -0
- esphome/components/tx20/tx20.h +52 -0
- esphome/components/uart/__init__.py +440 -0
- esphome/components/uart/automation.h +38 -0
- esphome/components/uart/button/__init__.py +35 -0
- esphome/components/uart/button/uart_button.cpp +17 -0
- esphome/components/uart/button/uart_button.h +24 -0
- esphome/components/uart/switch/__init__.py +58 -0
- esphome/components/uart/switch/uart_switch.cpp +61 -0
- esphome/components/uart/switch/uart_switch.h +35 -0
- esphome/components/uart/uart.cpp +47 -0
- esphome/components/uart/uart.h +72 -0
- esphome/components/uart/uart_component.cpp +24 -0
- esphome/components/uart/uart_component.h +175 -0
- esphome/components/uart/uart_component_esp32_arduino.cpp +213 -0
- esphome/components/uart/uart_component_esp32_arduino.h +60 -0
- esphome/components/uart/uart_component_esp8266.cpp +320 -0
- esphome/components/uart/uart_component_esp8266.h +94 -0
- esphome/components/uart/uart_component_esp_idf.cpp +248 -0
- esphome/components/uart/uart_component_esp_idf.h +58 -0
- esphome/components/uart/uart_component_host.cpp +299 -0
- esphome/components/uart/uart_component_host.h +38 -0
- esphome/components/uart/uart_component_libretiny.cpp +168 -0
- esphome/components/uart/uart_component_libretiny.h +43 -0
- esphome/components/uart/uart_component_rp2040.cpp +184 -0
- esphome/components/uart/uart_component_rp2040.h +46 -0
- esphome/components/uart/uart_debugger.cpp +202 -0
- esphome/components/uart/uart_debugger.h +101 -0
- esphome/components/udp/__init__.py +158 -0
- esphome/components/udp/binary_sensor.py +27 -0
- esphome/components/udp/sensor.py +27 -0
- esphome/components/udp/udp_component.cpp +635 -0
- esphome/components/udp/udp_component.h +160 -0
- esphome/components/ufire_ec/__init__.py +1 -0
- esphome/components/ufire_ec/sensor.py +126 -0
- esphome/components/ufire_ec/ufire_ec.cpp +118 -0
- esphome/components/ufire_ec/ufire_ec.h +87 -0
- esphome/components/ufire_ise/__init__.py +1 -0
- esphome/components/ufire_ise/sensor.py +127 -0
- esphome/components/ufire_ise/ufire_ise.cpp +153 -0
- esphome/components/ufire_ise/ufire_ise.h +95 -0
- esphome/components/uln2003/__init__.py +0 -0
- esphome/components/uln2003/stepper.py +56 -0
- esphome/components/uln2003/uln2003.cpp +92 -0
- esphome/components/uln2003/uln2003.h +44 -0
- esphome/components/ultrasonic/__init__.py +1 -0
- esphome/components/ultrasonic/sensor.py +53 -0
- esphome/components/ultrasonic/ultrasonic_sensor.cpp +63 -0
- esphome/components/ultrasonic/ultrasonic_sensor.h +46 -0
- esphome/components/update/__init__.py +132 -0
- esphome/components/update/automation.h +23 -0
- esphome/components/update/update_entity.cpp +38 -0
- esphome/components/update/update_entity.h +53 -0
- esphome/components/uponor_smatrix/__init__.py +78 -0
- esphome/components/uponor_smatrix/climate/__init__.py +33 -0
- esphome/components/uponor_smatrix/climate/uponor_smatrix_climate.cpp +101 -0
- esphome/components/uponor_smatrix/climate/uponor_smatrix_climate.h +28 -0
- esphome/components/uponor_smatrix/sensor/__init__.py +70 -0
- esphome/components/uponor_smatrix/sensor/uponor_smatrix_sensor.cpp +37 -0
- esphome/components/uponor_smatrix/sensor/uponor_smatrix_sensor.h +23 -0
- esphome/components/uponor_smatrix/uponor_smatrix.cpp +227 -0
- esphome/components/uponor_smatrix/uponor_smatrix.h +129 -0
- esphome/components/uptime/__init__.py +0 -0
- esphome/components/uptime/sensor.py +61 -0
- esphome/components/uptime/uptime_seconds_sensor.cpp +38 -0
- esphome/components/uptime/uptime_seconds_sensor.h +23 -0
- esphome/components/uptime/uptime_timestamp_sensor.cpp +39 -0
- esphome/components/uptime/uptime_timestamp_sensor.h +30 -0
- esphome/components/valve/__init__.py +204 -0
- esphome/components/valve/automation.h +129 -0
- esphome/components/valve/valve.cpp +179 -0
- esphome/components/valve/valve.h +152 -0
- esphome/components/valve/valve_traits.h +27 -0
- esphome/components/vbus/__init__.py +33 -0
- esphome/components/vbus/binary_sensor/__init__.py +348 -0
- esphome/components/vbus/binary_sensor/vbus_binary_sensor.cpp +165 -0
- esphome/components/vbus/binary_sensor/vbus_binary_sensor.h +136 -0
- esphome/components/vbus/sensor/__init__.py +690 -0
- esphome/components/vbus/sensor/vbus_sensor.cpp +250 -0
- esphome/components/vbus/sensor/vbus_sensor.h +182 -0
- esphome/components/vbus/vbus.cpp +125 -0
- esphome/components/vbus/vbus.h +52 -0
- esphome/components/veml3235/__init__.py +0 -0
- esphome/components/veml3235/sensor.py +84 -0
- esphome/components/veml3235/veml3235.cpp +230 -0
- esphome/components/veml3235/veml3235.h +109 -0
- esphome/components/veml7700/__init__.py +1 -0
- esphome/components/veml7700/sensor.py +190 -0
- esphome/components/veml7700/veml7700.cpp +437 -0
- esphome/components/veml7700/veml7700.h +202 -0
- esphome/components/version/__init__.py +1 -0
- esphome/components/version/text_sensor.py +33 -0
- esphome/components/version/version_text_sensor.cpp +24 -0
- esphome/components/version/version_text_sensor.h +22 -0
- esphome/components/vl53l0x/LICENSE.txt +80 -0
- esphome/components/vl53l0x/__init__.py +0 -0
- esphome/components/vl53l0x/sensor.py +76 -0
- esphome/components/vl53l0x/vl53l0x_sensor.cpp +534 -0
- esphome/components/vl53l0x/vl53l0x_sensor.h +75 -0
- esphome/components/voice_assistant/__init__.py +398 -0
- esphome/components/voice_assistant/voice_assistant.cpp +894 -0
- esphome/components/voice_assistant/voice_assistant.h +341 -0
- esphome/components/voltage_sampler/__init__.py +4 -0
- esphome/components/voltage_sampler/voltage_sampler.h +16 -0
- esphome/components/wake_on_lan/__init__.py +1 -0
- esphome/components/wake_on_lan/button.py +37 -0
- esphome/components/wake_on_lan/wake_on_lan.cpp +89 -0
- esphome/components/wake_on_lan/wake_on_lan.h +36 -0
- esphome/components/watchdog/__init__.py +1 -0
- esphome/components/watchdog/watchdog.cpp +74 -0
- esphome/components/watchdog/watchdog.h +24 -0
- esphome/components/waveshare_epaper/__init__.py +1 -0
- esphome/components/waveshare_epaper/display.py +234 -0
- esphome/components/waveshare_epaper/waveshare_213v3.cpp +186 -0
- esphome/components/waveshare_epaper/waveshare_epaper.cpp +3241 -0
- esphome/components/waveshare_epaper/waveshare_epaper.h +853 -0
- esphome/components/web_server/__init__.py +299 -0
- esphome/components/web_server/list_entities.cpp +192 -0
- esphome/components/web_server/list_entities.h +82 -0
- esphome/components/web_server/server_index_v2.h +646 -0
- esphome/components/web_server/server_index_v3.h +4030 -0
- esphome/components/web_server/web_server.cpp +1869 -0
- esphome/components/web_server/web_server.h +382 -0
- esphome/components/web_server/web_server_v1.cpp +217 -0
- esphome/components/web_server_base/__init__.py +40 -0
- esphome/components/web_server_base/web_server_base.cpp +125 -0
- esphome/components/web_server_base/web_server_base.h +149 -0
- esphome/components/web_server_idf/__init__.py +14 -0
- esphome/components/web_server_idf/utils.cpp +93 -0
- esphome/components/web_server_idf/utils.h +17 -0
- esphome/components/web_server_idf/web_server_idf.cpp +371 -0
- esphome/components/web_server_idf/web_server_idf.h +285 -0
- esphome/components/weikai/__init__.py +108 -0
- esphome/components/weikai/weikai.cpp +615 -0
- esphome/components/weikai/weikai.h +443 -0
- esphome/components/weikai/wk_reg_def.h +304 -0
- esphome/components/weikai_i2c/__init__.py +1 -0
- esphome/components/weikai_i2c/weikai_i2c.cpp +177 -0
- esphome/components/weikai_i2c/weikai_i2c.h +61 -0
- esphome/components/weikai_spi/__init__.py +1 -0
- esphome/components/weikai_spi/weikai_spi.cpp +189 -0
- esphome/components/weikai_spi/weikai_spi.h +54 -0
- esphome/components/whirlpool/__init__.py +0 -0
- esphome/components/whirlpool/climate.py +29 -0
- esphome/components/whirlpool/whirlpool.cpp +296 -0
- esphome/components/whirlpool/whirlpool.h +65 -0
- esphome/components/whynter/__init__.py +1 -0
- esphome/components/whynter/climate.py +23 -0
- esphome/components/whynter/whynter.cpp +181 -0
- esphome/components/whynter/whynter.h +53 -0
- esphome/components/wiegand/__init__.py +77 -0
- esphome/components/wiegand/wiegand.cpp +127 -0
- esphome/components/wiegand/wiegand.h +54 -0
- esphome/components/wifi/__init__.py +527 -0
- esphome/components/wifi/wifi_component.cpp +860 -0
- esphome/components/wifi/wifi_component.h +527 -0
- esphome/components/wifi/wifi_component_esp32_arduino.cpp +827 -0
- esphome/components/wifi/wifi_component_esp8266.cpp +854 -0
- esphome/components/wifi/wifi_component_esp_idf.cpp +1029 -0
- esphome/components/wifi/wifi_component_libretiny.cpp +486 -0
- esphome/components/wifi/wifi_component_pico_w.cpp +222 -0
- esphome/components/wifi/wpa2_eap.py +152 -0
- esphome/components/wifi_info/__init__.py +0 -0
- esphome/components/wifi_info/text_sensor.py +88 -0
- esphome/components/wifi_info/wifi_info_text_sensor.cpp +19 -0
- esphome/components/wifi_info/wifi_info_text_sensor.h +135 -0
- esphome/components/wifi_signal/__init__.py +0 -0
- esphome/components/wifi_signal/sensor.py +29 -0
- esphome/components/wifi_signal/wifi_signal_sensor.cpp +14 -0
- esphome/components/wifi_signal/wifi_signal_sensor.h +22 -0
- esphome/components/wireguard/__init__.py +184 -0
- esphome/components/wireguard/binary_sensor.py +36 -0
- esphome/components/wireguard/sensor.py +29 -0
- esphome/components/wireguard/text_sensor.py +26 -0
- esphome/components/wireguard/wireguard.cpp +292 -0
- esphome/components/wireguard/wireguard.h +174 -0
- esphome/components/wk2132_i2c/__init__.py +30 -0
- esphome/components/wk2132_i2c/wk2132_i2c.cpp +4 -0
- esphome/components/wk2132_spi/__init__.py +31 -0
- esphome/components/wk2168_i2c/__init__.py +64 -0
- esphome/components/wk2168_spi/__init__.py +62 -0
- esphome/components/wk2204_i2c/__init__.py +30 -0
- esphome/components/wk2204_spi/__init__.py +30 -0
- esphome/components/wk2212_i2c/__init__.py +64 -0
- esphome/components/wk2212_spi/__init__.py +62 -0
- esphome/components/wl_134/__init__.py +0 -0
- esphome/components/wl_134/text_sensor.py +31 -0
- esphome/components/wl_134/wl_134.cpp +113 -0
- esphome/components/wl_134/wl_134.h +63 -0
- esphome/components/wled/__init__.py +30 -0
- esphome/components/wled/wled_light_effect.cpp +287 -0
- esphome/components/wled/wled_light_effect.h +47 -0
- esphome/components/x9c/__init__.py +0 -0
- esphome/components/x9c/output.py +55 -0
- esphome/components/x9c/x9c.cpp +77 -0
- esphome/components/x9c/x9c.h +34 -0
- esphome/components/xgzp68xx/__init__.py +1 -0
- esphome/components/xgzp68xx/sensor.py +62 -0
- esphome/components/xgzp68xx/xgzp68xx.cpp +93 -0
- esphome/components/xgzp68xx/xgzp68xx.h +27 -0
- esphome/components/xiaomi_ble/__init__.py +22 -0
- esphome/components/xiaomi_ble/xiaomi_ble.cpp +398 -0
- esphome/components/xiaomi_ble/xiaomi_ble.h +83 -0
- esphome/components/xiaomi_cgd1/__init__.py +0 -0
- esphome/components/xiaomi_cgd1/sensor.py +76 -0
- esphome/components/xiaomi_cgd1/xiaomi_cgd1.cpp +73 -0
- esphome/components/xiaomi_cgd1/xiaomi_cgd1.h +36 -0
- esphome/components/xiaomi_cgdk2/__init__.py +0 -0
- esphome/components/xiaomi_cgdk2/sensor.py +76 -0
- esphome/components/xiaomi_cgdk2/xiaomi_cgdk2.cpp +73 -0
- esphome/components/xiaomi_cgdk2/xiaomi_cgdk2.h +36 -0
- esphome/components/xiaomi_cgg1/__init__.py +0 -0
- esphome/components/xiaomi_cgg1/sensor.py +77 -0
- esphome/components/xiaomi_cgg1/xiaomi_cgg1.cpp +73 -0
- esphome/components/xiaomi_cgg1/xiaomi_cgg1.h +37 -0
- esphome/components/xiaomi_cgpr1/__init__.py +0 -0
- esphome/components/xiaomi_cgpr1/binary_sensor.py +77 -0
- esphome/components/xiaomi_cgpr1/xiaomi_cgpr1.cpp +75 -0
- esphome/components/xiaomi_cgpr1/xiaomi_cgpr1.h +40 -0
- esphome/components/xiaomi_gcls002/__init__.py +0 -0
- esphome/components/xiaomi_gcls002/sensor.py +84 -0
- esphome/components/xiaomi_gcls002/xiaomi_gcls002.cpp +62 -0
- esphome/components/xiaomi_gcls002/xiaomi_gcls002.h +37 -0
- esphome/components/xiaomi_hhccjcy01/__init__.py +0 -0
- esphome/components/xiaomi_hhccjcy01/sensor.py +97 -0
- esphome/components/xiaomi_hhccjcy01/xiaomi_hhccjcy01.cpp +65 -0
- esphome/components/xiaomi_hhccjcy01/xiaomi_hhccjcy01.h +39 -0
- esphome/components/xiaomi_hhccjcy10/__init__.py +1 -0
- esphome/components/xiaomi_hhccjcy10/sensor.py +96 -0
- esphome/components/xiaomi_hhccjcy10/xiaomi_hhccjcy10.cpp +68 -0
- esphome/components/xiaomi_hhccjcy10/xiaomi_hhccjcy10.h +38 -0
- esphome/components/xiaomi_hhccpot002/__init__.py +0 -0
- esphome/components/xiaomi_hhccpot002/sensor.py +60 -0
- esphome/components/xiaomi_hhccpot002/xiaomi_hhccpot002.cpp +56 -0
- esphome/components/xiaomi_hhccpot002/xiaomi_hhccpot002.h +33 -0
- esphome/components/xiaomi_jqjcy01ym/__init__.py +0 -0
- esphome/components/xiaomi_jqjcy01ym/sensor.py +85 -0
- esphome/components/xiaomi_jqjcy01ym/xiaomi_jqjcy01ym.cpp +62 -0
- esphome/components/xiaomi_jqjcy01ym/xiaomi_jqjcy01ym.h +37 -0
- esphome/components/xiaomi_lywsd02/__init__.py +0 -0
- esphome/components/xiaomi_lywsd02/sensor.py +73 -0
- esphome/components/xiaomi_lywsd02/xiaomi_lywsd02.cpp +59 -0
- esphome/components/xiaomi_lywsd02/xiaomi_lywsd02.h +35 -0
- esphome/components/xiaomi_lywsd02mmc/__init__.py +0 -0
- esphome/components/xiaomi_lywsd02mmc/sensor.py +77 -0
- esphome/components/xiaomi_lywsd02mmc/xiaomi_lywsd02mmc.cpp +73 -0
- esphome/components/xiaomi_lywsd02mmc/xiaomi_lywsd02mmc.h +37 -0
- esphome/components/xiaomi_lywsd03mmc/__init__.py +0 -0
- esphome/components/xiaomi_lywsd03mmc/sensor.py +78 -0
- esphome/components/xiaomi_lywsd03mmc/xiaomi_lywsd03mmc.cpp +77 -0
- esphome/components/xiaomi_lywsd03mmc/xiaomi_lywsd03mmc.h +36 -0
- esphome/components/xiaomi_lywsdcgq/__init__.py +0 -0
- esphome/components/xiaomi_lywsdcgq/sensor.py +73 -0
- esphome/components/xiaomi_lywsdcgq/xiaomi_lywsdcgq.cpp +59 -0
- esphome/components/xiaomi_lywsdcgq/xiaomi_lywsdcgq.h +35 -0
- esphome/components/xiaomi_mhoc303/__init__.py +1 -0
- esphome/components/xiaomi_mhoc303/sensor.py +73 -0
- esphome/components/xiaomi_mhoc303/xiaomi_mhoc303.cpp +59 -0
- esphome/components/xiaomi_mhoc303/xiaomi_mhoc303.h +35 -0
- esphome/components/xiaomi_mhoc401/__init__.py +0 -0
- esphome/components/xiaomi_mhoc401/sensor.py +77 -0
- esphome/components/xiaomi_mhoc401/xiaomi_mhoc401.cpp +77 -0
- esphome/components/xiaomi_mhoc401/xiaomi_mhoc401.h +36 -0
- esphome/components/xiaomi_miscale/__init__.py +0 -0
- esphome/components/xiaomi_miscale/sensor.py +62 -0
- esphome/components/xiaomi_miscale/xiaomi_miscale.cpp +169 -0
- esphome/components/xiaomi_miscale/xiaomi_miscale.h +47 -0
- esphome/components/xiaomi_miscale2/__init__.py +0 -0
- esphome/components/xiaomi_miscale2/sensor.py +5 -0
- esphome/components/xiaomi_mjyd02yla/__init__.py +0 -0
- esphome/components/xiaomi_mjyd02yla/binary_sensor.py +89 -0
- esphome/components/xiaomi_mjyd02yla/xiaomi_mjyd02yla.cpp +78 -0
- esphome/components/xiaomi_mjyd02yla/xiaomi_mjyd02yla.h +42 -0
- esphome/components/xiaomi_mue4094rt/__init__.py +0 -0
- esphome/components/xiaomi_mue4094rt/binary_sensor.py +45 -0
- esphome/components/xiaomi_mue4094rt/xiaomi_mue4094rt.cpp +55 -0
- esphome/components/xiaomi_mue4094rt/xiaomi_mue4094rt.h +33 -0
- esphome/components/xiaomi_rtcgq02lm/__init__.py +36 -0
- esphome/components/xiaomi_rtcgq02lm/binary_sensor.py +63 -0
- esphome/components/xiaomi_rtcgq02lm/sensor.py +37 -0
- esphome/components/xiaomi_rtcgq02lm/xiaomi_rtcgq02lm.cpp +91 -0
- esphome/components/xiaomi_rtcgq02lm/xiaomi_rtcgq02lm.h +61 -0
- esphome/components/xiaomi_wx08zm/__init__.py +0 -0
- esphome/components/xiaomi_wx08zm/binary_sensor.py +64 -0
- esphome/components/xiaomi_wx08zm/xiaomi_wx08zm.cpp +60 -0
- esphome/components/xiaomi_wx08zm/xiaomi_wx08zm.h +36 -0
- esphome/components/xl9535/__init__.py +79 -0
- esphome/components/xl9535/xl9535.cpp +122 -0
- esphome/components/xl9535/xl9535.h +54 -0
- esphome/components/xpt2046/__init__.py +5 -0
- esphome/components/xpt2046/touchscreen/__init__.py +43 -0
- esphome/components/xpt2046/touchscreen/xpt2046.cpp +112 -0
- esphome/components/xpt2046/touchscreen/xpt2046.h +41 -0
- esphome/components/yashima/__init__.py +0 -0
- esphome/components/yashima/climate.py +39 -0
- esphome/components/yashima/yashima.cpp +197 -0
- esphome/components/yashima/yashima.h +40 -0
- esphome/components/zhlt01/__init__.py +0 -0
- esphome/components/zhlt01/climate.py +19 -0
- esphome/components/zhlt01/zhlt01.cpp +238 -0
- esphome/components/zhlt01/zhlt01.h +167 -0
- esphome/components/zio_ultrasonic/__init__.py +0 -0
- esphome/components/zio_ultrasonic/sensor.py +34 -0
- esphome/components/zio_ultrasonic/zio_ultrasonic.cpp +31 -0
- esphome/components/zio_ultrasonic/zio_ultrasonic.h +22 -0
- esphome/components/zyaura/__init__.py +0 -0
- esphome/components/zyaura/sensor.py +71 -0
- esphome/components/zyaura/zyaura.cpp +125 -0
- esphome/components/zyaura/zyaura.h +86 -0
- esphome/config.py +1124 -0
- esphome/config_helpers.py +105 -0
- esphome/config_validation.py +2223 -0
- esphome/const.py +1232 -0
- esphome/core/__init__.py +868 -0
- esphome/core/application.cpp +155 -0
- esphome/core/application.h +555 -0
- esphome/core/automation.h +255 -0
- esphome/core/base_automation.h +407 -0
- esphome/core/color.cpp +11 -0
- esphome/core/color.h +177 -0
- esphome/core/component.cpp +243 -0
- esphome/core/component.h +332 -0
- esphome/core/component_iterator.cpp +395 -0
- esphome/core/component_iterator.h +174 -0
- esphome/core/config.py +407 -0
- esphome/core/controller.cpp +132 -0
- esphome/core/controller.h +135 -0
- esphome/core/datatypes.h +61 -0
- esphome/core/defines.h +177 -0
- esphome/core/entity_base.cpp +96 -0
- esphome/core/entity_base.h +88 -0
- esphome/core/entity_helpers.py +56 -0
- esphome/core/gpio.h +99 -0
- esphome/core/hal.h +48 -0
- esphome/core/helpers.cpp +786 -0
- esphome/core/helpers.h +751 -0
- esphome/core/log.cpp +62 -0
- esphome/core/log.h +198 -0
- esphome/core/macros.h +4 -0
- esphome/core/optional.h +215 -0
- esphome/core/preferences.h +70 -0
- esphome/core/ring_buffer.cpp +127 -0
- esphome/core/ring_buffer.h +98 -0
- esphome/core/scheduler.cpp +364 -0
- esphome/core/scheduler.h +84 -0
- esphome/core/string_ref.cpp +12 -0
- esphome/core/string_ref.h +135 -0
- esphome/core/time.cpp +243 -0
- esphome/core/time.h +118 -0
- esphome/core/util.cpp +37 -0
- esphome/core/util.h +15 -0
- esphome/core/version.h +12 -0
- esphome/coroutine.py +253 -0
- esphome/cpp_generator.py +1034 -0
- esphome/cpp_helpers.py +148 -0
- esphome/cpp_types.py +43 -0
- esphome/dashboard/__init__.py +0 -0
- esphome/dashboard/const.py +12 -0
- esphome/dashboard/core.py +179 -0
- esphome/dashboard/dashboard.py +153 -0
- esphome/dashboard/dns.py +43 -0
- esphome/dashboard/entries.py +397 -0
- esphome/dashboard/enum.py +20 -0
- esphome/dashboard/settings.py +93 -0
- esphome/dashboard/status/__init__.py +0 -0
- esphome/dashboard/status/mdns.py +97 -0
- esphome/dashboard/status/mqtt.py +67 -0
- esphome/dashboard/status/ping.py +107 -0
- esphome/dashboard/util/__init__.py +0 -0
- esphome/dashboard/util/file.py +63 -0
- esphome/dashboard/util/itertools.py +22 -0
- esphome/dashboard/util/password.py +11 -0
- esphome/dashboard/util/subprocess.py +31 -0
- esphome/dashboard/util/text.py +25 -0
- esphome/dashboard/web_server.py +1231 -0
- esphome/espota2.py +360 -0
- esphome/external_files.py +107 -0
- esphome/final_validate.py +58 -0
- esphome/git.py +175 -0
- esphome/helpers.py +422 -0
- esphome/loader.py +207 -0
- esphome/log.py +90 -0
- esphome/mqtt.py +285 -0
- esphome/pins.py +334 -0
- esphome/platformio_api.py +334 -0
- esphome/schema_extractors.py +93 -0
- esphome/storage_json.py +286 -0
- esphome/types.py +19 -0
- esphome/util.py +312 -0
- esphome/voluptuous_schema.py +231 -0
- esphome/vscode.py +113 -0
- esphome/wizard.py +514 -0
- esphome/writer.py +378 -0
- esphome/yaml_util.py +584 -0
- esphome/zeroconf.py +201 -0
- esphome-2024.12.3.dist-info/LICENSE +709 -0
- esphome-2024.12.3.dist-info/METADATA +80 -0
- esphome-2024.12.3.dist-info/RECORD +3393 -0
- esphome-2024.12.3.dist-info/WHEEL +5 -0
- esphome-2024.12.3.dist-info/entry_points.txt +2 -0
- esphome-2024.12.3.dist-info/top_level.txt +1 -0
@@ -0,0 +1,3241 @@
|
|
1
|
+
#include "waveshare_epaper.h"
|
2
|
+
#include "esphome/core/log.h"
|
3
|
+
#include "esphome/core/application.h"
|
4
|
+
#include "esphome/core/helpers.h"
|
5
|
+
#include <cinttypes>
|
6
|
+
|
7
|
+
namespace esphome {
|
8
|
+
namespace waveshare_epaper {
|
9
|
+
|
10
|
+
static const char *const TAG = "waveshare_epaper";
|
11
|
+
|
12
|
+
static const uint8_t LUT_SIZE_WAVESHARE = 30;
|
13
|
+
|
14
|
+
static const uint8_t FULL_UPDATE_LUT[LUT_SIZE_WAVESHARE] = {0x02, 0x02, 0x01, 0x11, 0x12, 0x12, 0x22, 0x22, 0x66, 0x69,
|
15
|
+
0x69, 0x59, 0x58, 0x99, 0x99, 0x88, 0x00, 0x00, 0x00, 0x00,
|
16
|
+
0xF8, 0xB4, 0x13, 0x51, 0x35, 0x51, 0x51, 0x19, 0x01, 0x00};
|
17
|
+
|
18
|
+
static const uint8_t PARTIAL_UPDATE_LUT[LUT_SIZE_WAVESHARE] = {
|
19
|
+
0x10, 0x18, 0x18, 0x08, 0x18, 0x18, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
20
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x14, 0x44, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
21
|
+
|
22
|
+
static const uint8_t LUT_SIZE_TTGO = 70;
|
23
|
+
|
24
|
+
static const uint8_t FULL_UPDATE_LUT_TTGO[LUT_SIZE_TTGO] = {
|
25
|
+
0x80, 0x60, 0x40, 0x00, 0x00, 0x00, 0x00, // LUT0: BB: VS 0 ~7
|
26
|
+
0x10, 0x60, 0x20, 0x00, 0x00, 0x00, 0x00, // LUT1: BW: VS 0 ~7
|
27
|
+
0x80, 0x60, 0x40, 0x00, 0x00, 0x00, 0x00, // LUT2: WB: VS 0 ~7
|
28
|
+
0x10, 0x60, 0x20, 0x00, 0x00, 0x00, 0x00, // LUT3: WW: VS 0 ~7
|
29
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // LUT4: VCOM: VS 0 ~7
|
30
|
+
0x03, 0x03, 0x00, 0x00, 0x02, // TP0 A~D RP0
|
31
|
+
0x09, 0x09, 0x00, 0x00, 0x02, // TP1 A~D RP1
|
32
|
+
0x03, 0x03, 0x00, 0x00, 0x02, // TP2 A~D RP2
|
33
|
+
0x00, 0x00, 0x00, 0x00, 0x00, // TP3 A~D RP3
|
34
|
+
0x00, 0x00, 0x00, 0x00, 0x00, // TP4 A~D RP4
|
35
|
+
0x00, 0x00, 0x00, 0x00, 0x00, // TP5 A~D RP5
|
36
|
+
0x00, 0x00, 0x00, 0x00, 0x00, // TP6 A~D RP6
|
37
|
+
};
|
38
|
+
|
39
|
+
static const uint8_t PARTIAL_UPDATE_LUT_TTGO[LUT_SIZE_TTGO] = {
|
40
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // LUT0: BB: VS 0 ~7
|
41
|
+
0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // LUT1: BW: VS 0 ~7
|
42
|
+
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // LUT2: WB: VS 0 ~7
|
43
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // LUT3: WW: VS 0 ~7
|
44
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // LUT4: VCOM: VS 0 ~7
|
45
|
+
0x0A, 0x00, 0x00, 0x00, 0x00, // TP0 A~D RP0
|
46
|
+
0x00, 0x00, 0x00, 0x00, 0x00, // TP1 A~D RP1
|
47
|
+
0x00, 0x00, 0x00, 0x00, 0x00, // TP2 A~D RP2
|
48
|
+
0x00, 0x00, 0x00, 0x00, 0x00, // TP3 A~D RP3
|
49
|
+
0x00, 0x00, 0x00, 0x00, 0x00, // TP4 A~D RP4
|
50
|
+
0x00, 0x00, 0x00, 0x00, 0x00, // TP5 A~D RP5
|
51
|
+
0x00, 0x00, 0x00, 0x00, 0x00, // TP6 A~D RP6
|
52
|
+
};
|
53
|
+
|
54
|
+
static const uint8_t LUT_SIZE_TTGO_B73 = 100;
|
55
|
+
|
56
|
+
static const uint8_t FULL_UPDATE_LUT_TTGO_B73[LUT_SIZE_TTGO_B73] = {
|
57
|
+
0xA0, 0x90, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x90, 0xA0, 0x00, 0x00, 0x00, 0x00,
|
58
|
+
0x00, 0x00, 0x00, 0xA0, 0x90, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x90, 0xA0, 0x00,
|
59
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
60
|
+
|
61
|
+
0x0F, 0x0F, 0x00, 0x00, 0x00, 0x0F, 0x0F, 0x00, 0x00, 0x03, 0x0F, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00,
|
62
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
63
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
64
|
+
};
|
65
|
+
|
66
|
+
static const uint8_t PARTIAL_UPDATE_LUT_TTGO_B73[LUT_SIZE_TTGO_B73] = {
|
67
|
+
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
68
|
+
0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
|
69
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
70
|
+
|
71
|
+
0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
72
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
73
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
74
|
+
};
|
75
|
+
|
76
|
+
static const uint8_t LUT_SIZE_TTGO_B1 = 29;
|
77
|
+
|
78
|
+
static const uint8_t FULL_UPDATE_LUT_TTGO_B1[LUT_SIZE_TTGO_B1] = {
|
79
|
+
0x22, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
80
|
+
0x00, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x01, 0x00, 0x00, 0x00, 0x00};
|
81
|
+
|
82
|
+
static const uint8_t PARTIAL_UPDATE_LUT_TTGO_B1[LUT_SIZE_TTGO_B1] = {
|
83
|
+
0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
84
|
+
0x00, 0x0F, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
85
|
+
|
86
|
+
// clang-format off
|
87
|
+
// Disable formatting to preserve the same look as in Waveshare examples
|
88
|
+
static const uint8_t PARTIAL_UPD_2IN9_LUT_SIZE = 159;
|
89
|
+
static const uint8_t PARTIAL_UPD_2IN9_LUT[PARTIAL_UPD_2IN9_LUT_SIZE] =
|
90
|
+
{
|
91
|
+
0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
92
|
+
0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
93
|
+
0x40, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
94
|
+
0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
95
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
96
|
+
0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
|
97
|
+
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
98
|
+
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
99
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
100
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
101
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
102
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
103
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
104
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
105
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
106
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
107
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
108
|
+
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x00, 0x00, 0x00,
|
109
|
+
0x22, 0x17, 0x41, 0xB0, 0x32, 0x36,
|
110
|
+
};
|
111
|
+
// clang-format on
|
112
|
+
|
113
|
+
void WaveshareEPaperBase::setup_pins_() {
|
114
|
+
this->init_internal_(this->get_buffer_length_());
|
115
|
+
this->dc_pin_->setup(); // OUTPUT
|
116
|
+
this->dc_pin_->digital_write(false);
|
117
|
+
if (this->reset_pin_ != nullptr) {
|
118
|
+
this->reset_pin_->setup(); // OUTPUT
|
119
|
+
this->reset_pin_->digital_write(true);
|
120
|
+
}
|
121
|
+
if (this->busy_pin_ != nullptr) {
|
122
|
+
this->busy_pin_->setup(); // INPUT
|
123
|
+
}
|
124
|
+
this->spi_setup();
|
125
|
+
|
126
|
+
this->reset_();
|
127
|
+
}
|
128
|
+
float WaveshareEPaperBase::get_setup_priority() const { return setup_priority::PROCESSOR; }
|
129
|
+
void WaveshareEPaperBase::command(uint8_t value) {
|
130
|
+
this->start_command_();
|
131
|
+
this->write_byte(value);
|
132
|
+
this->end_command_();
|
133
|
+
}
|
134
|
+
void WaveshareEPaperBase::data(uint8_t value) {
|
135
|
+
this->start_data_();
|
136
|
+
this->write_byte(value);
|
137
|
+
this->end_data_();
|
138
|
+
}
|
139
|
+
|
140
|
+
// write a command followed by one or more bytes of data.
|
141
|
+
// The command is the first byte, length is the total including cmd.
|
142
|
+
void WaveshareEPaperBase::cmd_data(const uint8_t *c_data, size_t length) {
|
143
|
+
this->dc_pin_->digital_write(false);
|
144
|
+
this->enable();
|
145
|
+
this->write_byte(c_data[0]);
|
146
|
+
this->dc_pin_->digital_write(true);
|
147
|
+
this->write_array(c_data + 1, length - 1);
|
148
|
+
this->disable();
|
149
|
+
}
|
150
|
+
|
151
|
+
bool WaveshareEPaperBase::wait_until_idle_() {
|
152
|
+
if (this->busy_pin_ == nullptr || !this->busy_pin_->digital_read()) {
|
153
|
+
return true;
|
154
|
+
}
|
155
|
+
|
156
|
+
const uint32_t start = millis();
|
157
|
+
while (this->busy_pin_->digital_read()) {
|
158
|
+
if (millis() - start > this->idle_timeout_()) {
|
159
|
+
ESP_LOGE(TAG, "Timeout while displaying image!");
|
160
|
+
return false;
|
161
|
+
}
|
162
|
+
delay(1);
|
163
|
+
}
|
164
|
+
return true;
|
165
|
+
}
|
166
|
+
void WaveshareEPaperBase::update() {
|
167
|
+
this->do_update_();
|
168
|
+
this->display();
|
169
|
+
}
|
170
|
+
void WaveshareEPaper::fill(Color color) {
|
171
|
+
// flip logic
|
172
|
+
const uint8_t fill = color.is_on() ? 0x00 : 0xFF;
|
173
|
+
for (uint32_t i = 0; i < this->get_buffer_length_(); i++)
|
174
|
+
this->buffer_[i] = fill;
|
175
|
+
}
|
176
|
+
void HOT WaveshareEPaper::draw_absolute_pixel_internal(int x, int y, Color color) {
|
177
|
+
if (x >= this->get_width_internal() || y >= this->get_height_internal() || x < 0 || y < 0)
|
178
|
+
return;
|
179
|
+
|
180
|
+
const uint32_t pos = (x + y * this->get_width_controller()) / 8u;
|
181
|
+
const uint8_t subpos = x & 0x07;
|
182
|
+
// flip logic
|
183
|
+
if (!color.is_on()) {
|
184
|
+
this->buffer_[pos] |= 0x80 >> subpos;
|
185
|
+
} else {
|
186
|
+
this->buffer_[pos] &= ~(0x80 >> subpos);
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
uint32_t WaveshareEPaper::get_buffer_length_() {
|
191
|
+
return this->get_width_controller() * this->get_height_internal() / 8u;
|
192
|
+
} // just a black buffer
|
193
|
+
uint32_t WaveshareEPaperBWR::get_buffer_length_() {
|
194
|
+
return this->get_width_controller() * this->get_height_internal() / 4u;
|
195
|
+
} // black and red buffer
|
196
|
+
|
197
|
+
void WaveshareEPaperBWR::fill(Color color) {
|
198
|
+
this->filled_rectangle(0, 0, this->get_width(), this->get_height(), color);
|
199
|
+
}
|
200
|
+
void HOT WaveshareEPaperBWR::draw_absolute_pixel_internal(int x, int y, Color color) {
|
201
|
+
if (x >= this->get_width_internal() || y >= this->get_height_internal() || x < 0 || y < 0)
|
202
|
+
return;
|
203
|
+
|
204
|
+
const uint32_t buf_half_len = this->get_buffer_length_() / 2u;
|
205
|
+
|
206
|
+
const uint32_t pos = (x + y * this->get_width_internal()) / 8u;
|
207
|
+
const uint8_t subpos = x & 0x07;
|
208
|
+
// flip logic
|
209
|
+
if (color.is_on()) {
|
210
|
+
this->buffer_[pos] |= 0x80 >> subpos;
|
211
|
+
} else {
|
212
|
+
this->buffer_[pos] &= ~(0x80 >> subpos);
|
213
|
+
}
|
214
|
+
|
215
|
+
// draw red pixels only, if the color contains red only
|
216
|
+
if (((color.red > 0) && (color.green == 0) && (color.blue == 0))) {
|
217
|
+
this->buffer_[pos + buf_half_len] |= 0x80 >> subpos;
|
218
|
+
} else {
|
219
|
+
this->buffer_[pos + buf_half_len] &= ~(0x80 >> subpos);
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
void WaveshareEPaperBase::start_command_() {
|
224
|
+
this->dc_pin_->digital_write(false);
|
225
|
+
this->enable();
|
226
|
+
}
|
227
|
+
void WaveshareEPaperBase::end_command_() { this->disable(); }
|
228
|
+
void WaveshareEPaperBase::start_data_() {
|
229
|
+
this->dc_pin_->digital_write(true);
|
230
|
+
this->enable();
|
231
|
+
}
|
232
|
+
void WaveshareEPaperBase::end_data_() { this->disable(); }
|
233
|
+
void WaveshareEPaperBase::on_safe_shutdown() { this->deep_sleep(); }
|
234
|
+
|
235
|
+
// ========================================================
|
236
|
+
// Type A
|
237
|
+
// ========================================================
|
238
|
+
|
239
|
+
void WaveshareEPaperTypeA::initialize() {
|
240
|
+
// Achieve display intialization
|
241
|
+
this->init_display_();
|
242
|
+
// If a reset pin is configured, eligible displays can be set to deep sleep
|
243
|
+
// between updates, as recommended by the hardware provider
|
244
|
+
if (this->reset_pin_ != nullptr) {
|
245
|
+
switch (this->model_) {
|
246
|
+
// More models can be added here to enable deep sleep if eligible
|
247
|
+
case WAVESHARE_EPAPER_1_54_IN:
|
248
|
+
case WAVESHARE_EPAPER_1_54_IN_V2:
|
249
|
+
this->deep_sleep_between_updates_ = true;
|
250
|
+
ESP_LOGI(TAG, "Set the display to deep sleep");
|
251
|
+
this->deep_sleep();
|
252
|
+
break;
|
253
|
+
default:
|
254
|
+
break;
|
255
|
+
}
|
256
|
+
}
|
257
|
+
}
|
258
|
+
void WaveshareEPaperTypeA::init_display_() {
|
259
|
+
if (this->model_ == TTGO_EPAPER_2_13_IN_B74 || this->model_ == WAVESHARE_EPAPER_2_13_IN_V2) {
|
260
|
+
if (this->reset_pin_ != nullptr) {
|
261
|
+
this->reset_pin_->digital_write(false);
|
262
|
+
delay(10);
|
263
|
+
this->reset_pin_->digital_write(true);
|
264
|
+
delay(10);
|
265
|
+
this->wait_until_idle_();
|
266
|
+
}
|
267
|
+
|
268
|
+
this->command(0x12); // SWRESET
|
269
|
+
this->wait_until_idle_();
|
270
|
+
}
|
271
|
+
|
272
|
+
// COMMAND DRIVER OUTPUT CONTROL
|
273
|
+
this->command(0x01);
|
274
|
+
this->data(this->get_height_internal() - 1);
|
275
|
+
this->data((this->get_height_internal() - 1) >> 8);
|
276
|
+
this->data(0x00); // ? GD = 0, SM = 0, TB = 0
|
277
|
+
|
278
|
+
// COMMAND BOOSTER SOFT START CONTROL
|
279
|
+
this->command(0x0C);
|
280
|
+
this->data(0xD7);
|
281
|
+
this->data(0xD6);
|
282
|
+
this->data(0x9D);
|
283
|
+
|
284
|
+
// COMMAND WRITE VCOM REGISTER
|
285
|
+
this->command(0x2C);
|
286
|
+
this->data(0xA8);
|
287
|
+
|
288
|
+
// COMMAND SET DUMMY LINE PERIOD
|
289
|
+
this->command(0x3A);
|
290
|
+
this->data(0x1A);
|
291
|
+
|
292
|
+
// COMMAND SET GATE TIME
|
293
|
+
this->command(0x3B);
|
294
|
+
this->data(0x08); // 2µs per row
|
295
|
+
|
296
|
+
// COMMAND DATA ENTRY MODE SETTING
|
297
|
+
this->command(0x11);
|
298
|
+
switch (this->model_) {
|
299
|
+
case TTGO_EPAPER_2_13_IN_B1:
|
300
|
+
this->data(0x01); // x increase, y decrease : as in demo code
|
301
|
+
break;
|
302
|
+
case TTGO_EPAPER_2_13_IN_B74:
|
303
|
+
case WAVESHARE_EPAPER_2_9_IN_V2:
|
304
|
+
this->data(0x03); // from top left to bottom right
|
305
|
+
// RAM content option for Display Update
|
306
|
+
this->command(0x21);
|
307
|
+
this->data(0x00);
|
308
|
+
this->data(0x80);
|
309
|
+
break;
|
310
|
+
default:
|
311
|
+
this->data(0x03); // from top left to bottom right
|
312
|
+
}
|
313
|
+
}
|
314
|
+
void WaveshareEPaperTypeA::dump_config() {
|
315
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
316
|
+
switch (this->model_) {
|
317
|
+
case WAVESHARE_EPAPER_1_54_IN:
|
318
|
+
ESP_LOGCONFIG(TAG, " Model: 1.54in");
|
319
|
+
break;
|
320
|
+
case WAVESHARE_EPAPER_1_54_IN_V2:
|
321
|
+
ESP_LOGCONFIG(TAG, " Model: 1.54inV2");
|
322
|
+
break;
|
323
|
+
case WAVESHARE_EPAPER_2_13_IN:
|
324
|
+
ESP_LOGCONFIG(TAG, " Model: 2.13in");
|
325
|
+
break;
|
326
|
+
case WAVESHARE_EPAPER_2_13_IN_V2:
|
327
|
+
ESP_LOGCONFIG(TAG, " Model: 2.13inV2");
|
328
|
+
break;
|
329
|
+
case TTGO_EPAPER_2_13_IN:
|
330
|
+
ESP_LOGCONFIG(TAG, " Model: 2.13in (TTGO)");
|
331
|
+
break;
|
332
|
+
case TTGO_EPAPER_2_13_IN_B73:
|
333
|
+
ESP_LOGCONFIG(TAG, " Model: 2.13in (TTGO B73)");
|
334
|
+
break;
|
335
|
+
case TTGO_EPAPER_2_13_IN_B74:
|
336
|
+
ESP_LOGCONFIG(TAG, " Model: 2.13in (TTGO B74)");
|
337
|
+
break;
|
338
|
+
case TTGO_EPAPER_2_13_IN_B1:
|
339
|
+
ESP_LOGCONFIG(TAG, " Model: 2.13in (TTGO B1)");
|
340
|
+
break;
|
341
|
+
case WAVESHARE_EPAPER_2_9_IN:
|
342
|
+
ESP_LOGCONFIG(TAG, " Model: 2.9in");
|
343
|
+
break;
|
344
|
+
case WAVESHARE_EPAPER_2_9_IN_V2:
|
345
|
+
ESP_LOGCONFIG(TAG, " Model: 2.9inV2");
|
346
|
+
break;
|
347
|
+
}
|
348
|
+
ESP_LOGCONFIG(TAG, " Full Update Every: %" PRIu32, this->full_update_every_);
|
349
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
350
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
351
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
352
|
+
LOG_UPDATE_INTERVAL(this);
|
353
|
+
}
|
354
|
+
void HOT WaveshareEPaperTypeA::display() {
|
355
|
+
bool full_update = this->at_update_ == 0;
|
356
|
+
bool prev_full_update = this->at_update_ == 1;
|
357
|
+
|
358
|
+
if (this->deep_sleep_between_updates_) {
|
359
|
+
ESP_LOGI(TAG, "Wake up the display");
|
360
|
+
this->reset_();
|
361
|
+
this->wait_until_idle_();
|
362
|
+
this->init_display_();
|
363
|
+
}
|
364
|
+
|
365
|
+
if (!this->wait_until_idle_()) {
|
366
|
+
this->status_set_warning();
|
367
|
+
return;
|
368
|
+
}
|
369
|
+
|
370
|
+
if (this->full_update_every_ >= 1) {
|
371
|
+
if (full_update != prev_full_update) {
|
372
|
+
switch (this->model_) {
|
373
|
+
case TTGO_EPAPER_2_13_IN:
|
374
|
+
case WAVESHARE_EPAPER_2_13_IN_V2:
|
375
|
+
// Waveshare 2.13" V2 uses the same LUTs as TTGO
|
376
|
+
this->write_lut_(full_update ? FULL_UPDATE_LUT_TTGO : PARTIAL_UPDATE_LUT_TTGO, LUT_SIZE_TTGO);
|
377
|
+
break;
|
378
|
+
case TTGO_EPAPER_2_13_IN_B73:
|
379
|
+
this->write_lut_(full_update ? FULL_UPDATE_LUT_TTGO_B73 : PARTIAL_UPDATE_LUT_TTGO_B73, LUT_SIZE_TTGO_B73);
|
380
|
+
break;
|
381
|
+
case TTGO_EPAPER_2_13_IN_B74:
|
382
|
+
// there is no LUT
|
383
|
+
break;
|
384
|
+
case TTGO_EPAPER_2_13_IN_B1:
|
385
|
+
this->write_lut_(full_update ? FULL_UPDATE_LUT_TTGO_B1 : PARTIAL_UPDATE_LUT_TTGO_B1, LUT_SIZE_TTGO_B1);
|
386
|
+
break;
|
387
|
+
default:
|
388
|
+
this->write_lut_(full_update ? FULL_UPDATE_LUT : PARTIAL_UPDATE_LUT, LUT_SIZE_WAVESHARE);
|
389
|
+
}
|
390
|
+
}
|
391
|
+
this->at_update_ = (this->at_update_ + 1) % this->full_update_every_;
|
392
|
+
}
|
393
|
+
|
394
|
+
if (this->model_ == WAVESHARE_EPAPER_2_13_IN_V2) {
|
395
|
+
// Set VCOM for full or partial update
|
396
|
+
this->command(0x2C);
|
397
|
+
this->data(full_update ? 0x55 : 0x26);
|
398
|
+
|
399
|
+
if (!full_update) {
|
400
|
+
// Enable "ping-pong"
|
401
|
+
this->command(0x37);
|
402
|
+
this->data(0x00);
|
403
|
+
this->data(0x00);
|
404
|
+
this->data(0x00);
|
405
|
+
this->data(0x00);
|
406
|
+
this->data(0x40);
|
407
|
+
this->data(0x00);
|
408
|
+
this->data(0x00);
|
409
|
+
this->command(0x22);
|
410
|
+
this->data(0xc0);
|
411
|
+
this->command(0x20);
|
412
|
+
}
|
413
|
+
}
|
414
|
+
|
415
|
+
// Border waveform
|
416
|
+
switch (this->model_) {
|
417
|
+
case TTGO_EPAPER_2_13_IN_B74:
|
418
|
+
this->command(0x3C);
|
419
|
+
this->data(full_update ? 0x05 : 0x80);
|
420
|
+
break;
|
421
|
+
case WAVESHARE_EPAPER_2_13_IN_V2:
|
422
|
+
this->command(0x3C);
|
423
|
+
this->data(full_update ? 0x03 : 0x01);
|
424
|
+
break;
|
425
|
+
default:
|
426
|
+
break;
|
427
|
+
}
|
428
|
+
|
429
|
+
// Set x & y regions we want to write to (full)
|
430
|
+
switch (this->model_) {
|
431
|
+
case TTGO_EPAPER_2_13_IN_B1:
|
432
|
+
// COMMAND SET RAM X ADDRESS START END POSITION
|
433
|
+
this->command(0x44);
|
434
|
+
this->data(0x00);
|
435
|
+
this->data((this->get_width_controller() - 1) >> 3);
|
436
|
+
// COMMAND SET RAM Y ADDRESS START END POSITION
|
437
|
+
this->command(0x45);
|
438
|
+
this->data(this->get_height_internal() - 1);
|
439
|
+
this->data((this->get_height_internal() - 1) >> 8);
|
440
|
+
this->data(0x00);
|
441
|
+
this->data(0x00);
|
442
|
+
|
443
|
+
// COMMAND SET RAM X ADDRESS COUNTER
|
444
|
+
this->command(0x4E);
|
445
|
+
this->data(0x00);
|
446
|
+
// COMMAND SET RAM Y ADDRESS COUNTER
|
447
|
+
this->command(0x4F);
|
448
|
+
this->data(this->get_height_internal() - 1);
|
449
|
+
this->data((this->get_height_internal() - 1) >> 8);
|
450
|
+
|
451
|
+
break;
|
452
|
+
default:
|
453
|
+
// COMMAND SET RAM X ADDRESS START END POSITION
|
454
|
+
this->command(0x44);
|
455
|
+
this->data(0x00);
|
456
|
+
this->data((this->get_width_internal() - 1) >> 3);
|
457
|
+
// COMMAND SET RAM Y ADDRESS START END POSITION
|
458
|
+
this->command(0x45);
|
459
|
+
this->data(0x00);
|
460
|
+
this->data(0x00);
|
461
|
+
this->data(this->get_height_internal() - 1);
|
462
|
+
this->data((this->get_height_internal() - 1) >> 8);
|
463
|
+
|
464
|
+
// COMMAND SET RAM X ADDRESS COUNTER
|
465
|
+
this->command(0x4E);
|
466
|
+
this->data(0x00);
|
467
|
+
// COMMAND SET RAM Y ADDRESS COUNTER
|
468
|
+
this->command(0x4F);
|
469
|
+
this->data(0x00);
|
470
|
+
this->data(0x00);
|
471
|
+
}
|
472
|
+
|
473
|
+
if (!this->wait_until_idle_()) {
|
474
|
+
this->status_set_warning();
|
475
|
+
return;
|
476
|
+
}
|
477
|
+
|
478
|
+
// COMMAND WRITE RAM
|
479
|
+
this->command(0x24);
|
480
|
+
this->start_data_();
|
481
|
+
switch (this->model_) {
|
482
|
+
case TTGO_EPAPER_2_13_IN_B1: { // block needed because of variable initializations
|
483
|
+
int16_t wb = ((this->get_width_controller()) >> 3);
|
484
|
+
for (int i = 0; i < this->get_height_internal(); i++) {
|
485
|
+
for (int j = 0; j < wb; j++) {
|
486
|
+
int idx = j + (this->get_height_internal() - 1 - i) * wb;
|
487
|
+
this->write_byte(this->buffer_[idx]);
|
488
|
+
}
|
489
|
+
}
|
490
|
+
break;
|
491
|
+
}
|
492
|
+
default:
|
493
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
494
|
+
}
|
495
|
+
this->end_data_();
|
496
|
+
|
497
|
+
if (this->model_ == WAVESHARE_EPAPER_2_13_IN_V2 && full_update) {
|
498
|
+
// Write base image again on full refresh
|
499
|
+
this->command(0x26);
|
500
|
+
this->start_data_();
|
501
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
502
|
+
this->end_data_();
|
503
|
+
}
|
504
|
+
|
505
|
+
// COMMAND DISPLAY UPDATE CONTROL 2
|
506
|
+
this->command(0x22);
|
507
|
+
switch (this->model_) {
|
508
|
+
case WAVESHARE_EPAPER_2_9_IN_V2:
|
509
|
+
case WAVESHARE_EPAPER_1_54_IN_V2:
|
510
|
+
case TTGO_EPAPER_2_13_IN_B74:
|
511
|
+
this->data(full_update ? 0xF7 : 0xFF);
|
512
|
+
break;
|
513
|
+
case TTGO_EPAPER_2_13_IN_B73:
|
514
|
+
this->data(0xC7);
|
515
|
+
break;
|
516
|
+
case WAVESHARE_EPAPER_2_13_IN_V2:
|
517
|
+
this->data(full_update ? 0xC7 : 0x0C);
|
518
|
+
break;
|
519
|
+
default:
|
520
|
+
this->data(0xC4);
|
521
|
+
break;
|
522
|
+
}
|
523
|
+
|
524
|
+
// COMMAND MASTER ACTIVATION
|
525
|
+
this->command(0x20);
|
526
|
+
// COMMAND TERMINATE FRAME READ WRITE
|
527
|
+
this->command(0xFF);
|
528
|
+
|
529
|
+
this->status_clear_warning();
|
530
|
+
|
531
|
+
if (this->deep_sleep_between_updates_) {
|
532
|
+
ESP_LOGI(TAG, "Set the display back to deep sleep");
|
533
|
+
this->deep_sleep();
|
534
|
+
}
|
535
|
+
}
|
536
|
+
int WaveshareEPaperTypeA::get_width_internal() {
|
537
|
+
switch (this->model_) {
|
538
|
+
case WAVESHARE_EPAPER_1_54_IN:
|
539
|
+
case WAVESHARE_EPAPER_1_54_IN_V2:
|
540
|
+
return 200;
|
541
|
+
case WAVESHARE_EPAPER_2_13_IN:
|
542
|
+
case WAVESHARE_EPAPER_2_13_IN_V2:
|
543
|
+
case TTGO_EPAPER_2_13_IN:
|
544
|
+
case TTGO_EPAPER_2_13_IN_B73:
|
545
|
+
case TTGO_EPAPER_2_13_IN_B74:
|
546
|
+
case TTGO_EPAPER_2_13_IN_B1:
|
547
|
+
return 122;
|
548
|
+
case WAVESHARE_EPAPER_2_9_IN:
|
549
|
+
case WAVESHARE_EPAPER_2_9_IN_V2:
|
550
|
+
return 128;
|
551
|
+
}
|
552
|
+
return 0;
|
553
|
+
}
|
554
|
+
// The controller of the 2.13" displays has a buffer larger than screen size
|
555
|
+
int WaveshareEPaperTypeA::get_width_controller() {
|
556
|
+
switch (this->model_) {
|
557
|
+
case WAVESHARE_EPAPER_2_13_IN:
|
558
|
+
case WAVESHARE_EPAPER_2_13_IN_V2:
|
559
|
+
case TTGO_EPAPER_2_13_IN:
|
560
|
+
case TTGO_EPAPER_2_13_IN_B73:
|
561
|
+
case TTGO_EPAPER_2_13_IN_B74:
|
562
|
+
case TTGO_EPAPER_2_13_IN_B1:
|
563
|
+
return 128;
|
564
|
+
default:
|
565
|
+
return this->get_width_internal();
|
566
|
+
}
|
567
|
+
}
|
568
|
+
int WaveshareEPaperTypeA::get_height_internal() {
|
569
|
+
switch (this->model_) {
|
570
|
+
case WAVESHARE_EPAPER_1_54_IN:
|
571
|
+
case WAVESHARE_EPAPER_1_54_IN_V2:
|
572
|
+
return 200;
|
573
|
+
case WAVESHARE_EPAPER_2_13_IN:
|
574
|
+
case WAVESHARE_EPAPER_2_13_IN_V2:
|
575
|
+
case TTGO_EPAPER_2_13_IN:
|
576
|
+
case TTGO_EPAPER_2_13_IN_B73:
|
577
|
+
case TTGO_EPAPER_2_13_IN_B74:
|
578
|
+
case TTGO_EPAPER_2_13_IN_B1:
|
579
|
+
return 250;
|
580
|
+
case WAVESHARE_EPAPER_2_9_IN:
|
581
|
+
case WAVESHARE_EPAPER_2_9_IN_V2:
|
582
|
+
return 296;
|
583
|
+
}
|
584
|
+
return 0;
|
585
|
+
}
|
586
|
+
void WaveshareEPaperTypeA::write_lut_(const uint8_t *lut, const uint8_t size) {
|
587
|
+
// COMMAND WRITE LUT REGISTER
|
588
|
+
this->command(0x32);
|
589
|
+
for (uint8_t i = 0; i < size; i++)
|
590
|
+
this->data(lut[i]);
|
591
|
+
}
|
592
|
+
WaveshareEPaperTypeA::WaveshareEPaperTypeA(WaveshareEPaperTypeAModel model) : model_(model) {}
|
593
|
+
void WaveshareEPaperTypeA::set_full_update_every(uint32_t full_update_every) {
|
594
|
+
this->full_update_every_ = full_update_every;
|
595
|
+
}
|
596
|
+
|
597
|
+
uint32_t WaveshareEPaperTypeA::idle_timeout_() {
|
598
|
+
switch (this->model_) {
|
599
|
+
case WAVESHARE_EPAPER_1_54_IN:
|
600
|
+
case WAVESHARE_EPAPER_1_54_IN_V2:
|
601
|
+
case WAVESHARE_EPAPER_2_13_IN_V2:
|
602
|
+
case TTGO_EPAPER_2_13_IN_B1:
|
603
|
+
return 2500;
|
604
|
+
default:
|
605
|
+
return WaveshareEPaperBase::idle_timeout_();
|
606
|
+
}
|
607
|
+
}
|
608
|
+
|
609
|
+
// ========================================================
|
610
|
+
// Type B
|
611
|
+
// ========================================================
|
612
|
+
// Datasheet:
|
613
|
+
// - https://www.waveshare.com/w/upload/7/7f/4.2inch-e-paper-b-specification.pdf
|
614
|
+
// - https://github.com/soonuse/epd-library-arduino/blob/master/4.2inch_e-paper/epd4in2/
|
615
|
+
|
616
|
+
static const uint8_t LUT_VCOM_DC_2_7[44] = {
|
617
|
+
0x00, 0x00, 0x00, 0x0F, 0x0F, 0x00, 0x00, 0x05, 0x00, 0x32, 0x32, 0x00, 0x00, 0x02, 0x00,
|
618
|
+
0x0F, 0x0F, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
619
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
620
|
+
};
|
621
|
+
|
622
|
+
static const uint8_t LUT_WHITE_TO_WHITE_2_7[42] = {
|
623
|
+
0x50, 0x0F, 0x0F, 0x00, 0x00, 0x05, 0x60, 0x32, 0x32, 0x00, 0x00, 0x02, 0xA0, 0x0F,
|
624
|
+
0x0F, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
625
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
626
|
+
};
|
627
|
+
|
628
|
+
static const uint8_t LUT_BLACK_TO_WHITE_2_7[42] = {
|
629
|
+
0x50, 0x0F, 0x0F, 0x00, 0x00, 0x05, 0x60, 0x32, 0x32, 0x00, 0x00, 0x02, 0xA0, 0x0F,
|
630
|
+
0x0F, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
631
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
632
|
+
};
|
633
|
+
|
634
|
+
static const uint8_t LUT_WHITE_TO_BLACK_2_7[] = {
|
635
|
+
0xA0, 0x0F, 0x0F, 0x00, 0x00, 0x05, 0x60, 0x32, 0x32, 0x00, 0x00, 0x02, 0x50, 0x0F,
|
636
|
+
0x0F, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
637
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
638
|
+
};
|
639
|
+
|
640
|
+
static const uint8_t LUT_BLACK_TO_BLACK_2_7[42] = {
|
641
|
+
0xA0, 0x0F, 0x0F, 0x00, 0x00, 0x05, 0x60, 0x32, 0x32, 0x00, 0x00, 0x02, 0x50, 0x0F,
|
642
|
+
0x0F, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
643
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
644
|
+
};
|
645
|
+
|
646
|
+
void WaveshareEPaper2P7In::initialize() {
|
647
|
+
// command power setting
|
648
|
+
this->command(0x01);
|
649
|
+
this->data(0x03); // VDS_EN, VDG_EN
|
650
|
+
this->data(0x00); // VCOM_HV, VGHL_LV[1], VGHL_LV[0]
|
651
|
+
this->data(0x2B); // VDH
|
652
|
+
this->data(0x2B); // VDL
|
653
|
+
this->data(0x09); // VDHR
|
654
|
+
|
655
|
+
// command booster soft start
|
656
|
+
this->command(0x06);
|
657
|
+
this->data(0x07);
|
658
|
+
this->data(0x07);
|
659
|
+
this->data(0x17);
|
660
|
+
|
661
|
+
// Power optimization - ???
|
662
|
+
this->command(0xF8);
|
663
|
+
this->data(0x60);
|
664
|
+
this->data(0xA5);
|
665
|
+
this->command(0xF8);
|
666
|
+
this->data(0x89);
|
667
|
+
this->data(0xA5);
|
668
|
+
this->command(0xF8);
|
669
|
+
this->data(0x90);
|
670
|
+
this->data(0x00);
|
671
|
+
this->command(0xF8);
|
672
|
+
this->data(0x93);
|
673
|
+
this->data(0x2A);
|
674
|
+
this->command(0xF8);
|
675
|
+
this->data(0xA0);
|
676
|
+
this->data(0xA5);
|
677
|
+
this->command(0xF8);
|
678
|
+
this->data(0xA1);
|
679
|
+
this->data(0x00);
|
680
|
+
this->command(0xF8);
|
681
|
+
this->data(0x73);
|
682
|
+
this->data(0x41);
|
683
|
+
|
684
|
+
// command partial display refresh
|
685
|
+
this->command(0x16);
|
686
|
+
this->data(0x00);
|
687
|
+
|
688
|
+
// command power on
|
689
|
+
this->command(0x04);
|
690
|
+
this->wait_until_idle_();
|
691
|
+
delay(10);
|
692
|
+
|
693
|
+
// Command panel setting
|
694
|
+
this->command(0x00);
|
695
|
+
this->data(0xAF); // KW-BF KWR-AF BWROTP 0f
|
696
|
+
// command pll control
|
697
|
+
this->command(0x30);
|
698
|
+
this->data(0x3A); // 3A 100HZ 29 150Hz 39 200HZ 31 171HZ
|
699
|
+
// COMMAND VCM DC SETTING
|
700
|
+
this->command(0x82);
|
701
|
+
this->data(0x12);
|
702
|
+
|
703
|
+
delay(2);
|
704
|
+
// COMMAND LUT FOR VCOM
|
705
|
+
this->command(0x20);
|
706
|
+
for (uint8_t i : LUT_VCOM_DC_2_7)
|
707
|
+
this->data(i);
|
708
|
+
|
709
|
+
// COMMAND LUT WHITE TO WHITE
|
710
|
+
this->command(0x21);
|
711
|
+
for (uint8_t i : LUT_WHITE_TO_WHITE_2_7)
|
712
|
+
this->data(i);
|
713
|
+
// COMMAND LUT BLACK TO WHITE
|
714
|
+
this->command(0x22);
|
715
|
+
for (uint8_t i : LUT_BLACK_TO_WHITE_2_7)
|
716
|
+
this->data(i);
|
717
|
+
// COMMAND LUT WHITE TO BLACK
|
718
|
+
this->command(0x23);
|
719
|
+
for (uint8_t i : LUT_WHITE_TO_BLACK_2_7)
|
720
|
+
this->data(i);
|
721
|
+
// COMMAND LUT BLACK TO BLACK
|
722
|
+
this->command(0x24);
|
723
|
+
for (uint8_t i : LUT_BLACK_TO_BLACK_2_7)
|
724
|
+
this->data(i);
|
725
|
+
}
|
726
|
+
void HOT WaveshareEPaper2P7In::display() {
|
727
|
+
uint32_t buf_len = this->get_buffer_length_();
|
728
|
+
|
729
|
+
// COMMAND DATA START TRANSMISSION 1
|
730
|
+
this->command(0x10);
|
731
|
+
delay(2);
|
732
|
+
for (uint32_t i = 0; i < buf_len; i++) {
|
733
|
+
this->data(this->buffer_[i]);
|
734
|
+
}
|
735
|
+
delay(2);
|
736
|
+
|
737
|
+
// COMMAND DATA START TRANSMISSION 2
|
738
|
+
this->command(0x13);
|
739
|
+
delay(2);
|
740
|
+
for (uint32_t i = 0; i < buf_len; i++) {
|
741
|
+
this->data(this->buffer_[i]);
|
742
|
+
}
|
743
|
+
|
744
|
+
// COMMAND DISPLAY REFRESH
|
745
|
+
this->command(0x12);
|
746
|
+
}
|
747
|
+
int WaveshareEPaper2P7In::get_width_internal() { return 176; }
|
748
|
+
int WaveshareEPaper2P7In::get_height_internal() { return 264; }
|
749
|
+
void WaveshareEPaper2P7In::dump_config() {
|
750
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
751
|
+
ESP_LOGCONFIG(TAG, " Model: 2.7in");
|
752
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
753
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
754
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
755
|
+
LOG_UPDATE_INTERVAL(this);
|
756
|
+
}
|
757
|
+
|
758
|
+
void WaveshareEPaper2P7InV2::initialize() {
|
759
|
+
this->reset_();
|
760
|
+
this->wait_until_idle_();
|
761
|
+
|
762
|
+
this->command(0x12); // SWRESET
|
763
|
+
this->wait_until_idle_();
|
764
|
+
|
765
|
+
// SET WINDOWS
|
766
|
+
// XRAM_START_AND_END_POSITION
|
767
|
+
this->command(0x44);
|
768
|
+
this->data(0x00);
|
769
|
+
this->data(((this->get_width_controller() - 1) >> 3) & 0xFF);
|
770
|
+
// YRAM_START_AND_END_POSITION
|
771
|
+
this->command(0x45);
|
772
|
+
this->data(0x00);
|
773
|
+
this->data(0x00);
|
774
|
+
this->data((get_height_internal() - 1) & 0xFF);
|
775
|
+
this->data(((get_height_internal() - 1) >> 8) & 0xFF);
|
776
|
+
|
777
|
+
// SET CURSOR
|
778
|
+
// XRAM_ADDRESS
|
779
|
+
this->command(0x4E);
|
780
|
+
this->data(0x00);
|
781
|
+
// YRAM_ADDRESS
|
782
|
+
this->command(0x4F);
|
783
|
+
this->data(0x00);
|
784
|
+
this->data(0x00);
|
785
|
+
|
786
|
+
this->command(0x11); // data entry mode
|
787
|
+
this->data(0x03);
|
788
|
+
}
|
789
|
+
void HOT WaveshareEPaper2P7InV2::display() {
|
790
|
+
this->command(0x24);
|
791
|
+
this->start_data_();
|
792
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
793
|
+
this->end_data_();
|
794
|
+
|
795
|
+
// COMMAND DISPLAY REFRESH
|
796
|
+
this->command(0x22);
|
797
|
+
this->data(0xF7);
|
798
|
+
this->command(0x20);
|
799
|
+
}
|
800
|
+
int WaveshareEPaper2P7InV2::get_width_internal() { return 176; }
|
801
|
+
int WaveshareEPaper2P7InV2::get_height_internal() { return 264; }
|
802
|
+
void WaveshareEPaper2P7InV2::dump_config() {
|
803
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
804
|
+
ESP_LOGCONFIG(TAG, " Model: 2.7in V2");
|
805
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
806
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
807
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
808
|
+
LOG_UPDATE_INTERVAL(this);
|
809
|
+
}
|
810
|
+
|
811
|
+
// ========================================================
|
812
|
+
// 1.54inch_v2_e-paper_b
|
813
|
+
// ========================================================
|
814
|
+
// Datasheet:
|
815
|
+
// - https://files.waveshare.com/upload/9/9e/1.54inch-e-paper-b-v2-specification.pdf
|
816
|
+
// - https://www.waveshare.com/wiki/1.54inch_e-Paper_Module_(B)_Manual
|
817
|
+
|
818
|
+
void WaveshareEPaper1P54InBV2::initialize() {
|
819
|
+
this->reset_();
|
820
|
+
|
821
|
+
this->wait_until_idle_();
|
822
|
+
|
823
|
+
this->command(0x12);
|
824
|
+
this->wait_until_idle_();
|
825
|
+
|
826
|
+
this->command(0x01);
|
827
|
+
this->data(0xC7);
|
828
|
+
this->data(0x00);
|
829
|
+
this->data(0x01);
|
830
|
+
|
831
|
+
this->command(0x11); // data entry mode
|
832
|
+
this->data(0x01);
|
833
|
+
|
834
|
+
this->command(0x44); // set Ram-X address start/end position
|
835
|
+
this->data(0x00);
|
836
|
+
this->data(0x18); // 0x18-->(24+1)*8=200
|
837
|
+
|
838
|
+
this->command(0x45); // set Ram-Y address start/end position
|
839
|
+
this->data(0xC7); // 0xC7-->(199+1)=200
|
840
|
+
this->data(0x00);
|
841
|
+
this->data(0x00);
|
842
|
+
this->data(0x00);
|
843
|
+
|
844
|
+
this->command(0x3C); // BorderWavefrom
|
845
|
+
this->data(0x05);
|
846
|
+
|
847
|
+
this->command(0x18); // Read built-in temperature sensor
|
848
|
+
this->data(0x80);
|
849
|
+
|
850
|
+
this->command(0x4E); // set RAM x address count to 0;
|
851
|
+
this->data(0x00);
|
852
|
+
this->command(0x4F); // set RAM y address count to 0X199;
|
853
|
+
this->data(0xC7);
|
854
|
+
this->data(0x00);
|
855
|
+
|
856
|
+
this->wait_until_idle_();
|
857
|
+
}
|
858
|
+
|
859
|
+
void HOT WaveshareEPaper1P54InBV2::display() {
|
860
|
+
uint32_t buf_len_half = this->get_buffer_length_() >> 1;
|
861
|
+
this->initialize();
|
862
|
+
|
863
|
+
// COMMAND DATA START TRANSMISSION 1 (BLACK)
|
864
|
+
this->command(0x24);
|
865
|
+
delay(2);
|
866
|
+
for (uint32_t i = 0; i < buf_len_half; i++) {
|
867
|
+
this->data(~this->buffer_[i]);
|
868
|
+
}
|
869
|
+
delay(2);
|
870
|
+
|
871
|
+
// COMMAND DATA START TRANSMISSION 2 (RED)
|
872
|
+
this->command(0x26);
|
873
|
+
delay(2);
|
874
|
+
for (uint32_t i = buf_len_half; i < buf_len_half * 2u; i++) {
|
875
|
+
this->data(this->buffer_[i]);
|
876
|
+
}
|
877
|
+
this->command(0x22);
|
878
|
+
this->data(0xf7);
|
879
|
+
this->command(0x20);
|
880
|
+
this->wait_until_idle_();
|
881
|
+
|
882
|
+
this->deep_sleep();
|
883
|
+
}
|
884
|
+
int WaveshareEPaper1P54InBV2::get_height_internal() { return 200; }
|
885
|
+
int WaveshareEPaper1P54InBV2::get_width_internal() { return 200; }
|
886
|
+
void WaveshareEPaper1P54InBV2::dump_config() {
|
887
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
888
|
+
ESP_LOGCONFIG(TAG, " Model: 1.54in V2 B");
|
889
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
890
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
891
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
892
|
+
LOG_UPDATE_INTERVAL(this);
|
893
|
+
}
|
894
|
+
|
895
|
+
// ========================================================
|
896
|
+
// 2.7inch_e-paper_b
|
897
|
+
// ========================================================
|
898
|
+
// Datasheet:
|
899
|
+
// - https://www.waveshare.com/w/upload/d/d8/2.7inch-e-paper-b-specification.pdf
|
900
|
+
// - https://github.com/waveshare/e-Paper/blob/master/RaspberryPi_JetsonNano/c/lib/e-Paper/EPD_2in7b.c
|
901
|
+
|
902
|
+
static const uint8_t LUT_VCOM_DC_2_7B[44] = {0x00, 0x00, 0x00, 0x1A, 0x1A, 0x00, 0x00, 0x01, 0x00, 0x0A, 0x0A,
|
903
|
+
0x00, 0x00, 0x08, 0x00, 0x0E, 0x01, 0x0E, 0x01, 0x10, 0x00, 0x0A,
|
904
|
+
0x0A, 0x00, 0x00, 0x08, 0x00, 0x04, 0x10, 0x00, 0x00, 0x05, 0x00,
|
905
|
+
0x03, 0x0E, 0x00, 0x00, 0x0A, 0x00, 0x23, 0x00, 0x00, 0x00, 0x01};
|
906
|
+
|
907
|
+
static const uint8_t LUT_WHITE_TO_WHITE_2_7B[42] = {0x90, 0x1A, 0x1A, 0x00, 0x00, 0x01, 0x40, 0x0A, 0x0A, 0x00, 0x00,
|
908
|
+
0x08, 0x84, 0x0E, 0x01, 0x0E, 0x01, 0x10, 0x80, 0x0A, 0x0A, 0x00,
|
909
|
+
0x00, 0x08, 0x00, 0x04, 0x10, 0x00, 0x00, 0x05, 0x00, 0x03, 0x0E,
|
910
|
+
0x00, 0x00, 0x0A, 0x00, 0x23, 0x00, 0x00, 0x00, 0x01};
|
911
|
+
|
912
|
+
static const uint8_t LUT_BLACK_TO_WHITE_2_7B[42] = {0xA0, 0x1A, 0x1A, 0x00, 0x00, 0x01, 0x00, 0x0A, 0x0A, 0x00, 0x00,
|
913
|
+
0x08, 0x84, 0x0E, 0x01, 0x0E, 0x01, 0x10, 0x90, 0x0A, 0x0A, 0x00,
|
914
|
+
0x00, 0x08, 0xB0, 0x04, 0x10, 0x00, 0x00, 0x05, 0xB0, 0x03, 0x0E,
|
915
|
+
0x00, 0x00, 0x0A, 0xC0, 0x23, 0x00, 0x00, 0x00, 0x01};
|
916
|
+
|
917
|
+
static const uint8_t LUT_WHITE_TO_BLACK_2_7B[] = {0x90, 0x1A, 0x1A, 0x00, 0x00, 0x01, 0x20, 0x0A, 0x0A, 0x00, 0x00,
|
918
|
+
0x08, 0x84, 0x0E, 0x01, 0x0E, 0x01, 0x10, 0x10, 0x0A, 0x0A, 0x00,
|
919
|
+
0x00, 0x08, 0x00, 0x04, 0x10, 0x00, 0x00, 0x05, 0x00, 0x03, 0x0E,
|
920
|
+
0x00, 0x00, 0x0A, 0x00, 0x23, 0x00, 0x00, 0x00, 0x01};
|
921
|
+
|
922
|
+
static const uint8_t LUT_BLACK_TO_BLACK_2_7B[42] = {0x90, 0x1A, 0x1A, 0x00, 0x00, 0x01, 0x40, 0x0A, 0x0A, 0x00, 0x00,
|
923
|
+
0x08, 0x84, 0x0E, 0x01, 0x0E, 0x01, 0x10, 0x80, 0x0A, 0x0A, 0x00,
|
924
|
+
0x00, 0x08, 0x00, 0x04, 0x10, 0x00, 0x00, 0x05, 0x00, 0x03, 0x0E,
|
925
|
+
0x00, 0x00, 0x0A, 0x00, 0x23, 0x00, 0x00, 0x00, 0x01};
|
926
|
+
|
927
|
+
void WaveshareEPaper2P7InB::initialize() {
|
928
|
+
this->reset_();
|
929
|
+
|
930
|
+
// command power on
|
931
|
+
this->command(0x04);
|
932
|
+
this->wait_until_idle_();
|
933
|
+
delay(10);
|
934
|
+
|
935
|
+
// Command panel setting
|
936
|
+
this->command(0x00);
|
937
|
+
this->data(0xAF); // KW-BF KWR-AF BWROTP 0f
|
938
|
+
// command pll control
|
939
|
+
this->command(0x30);
|
940
|
+
this->data(0x3A); // 3A 100HZ 29 150Hz 39 200HZ 31 171HZ
|
941
|
+
|
942
|
+
// command power setting
|
943
|
+
this->command(0x01);
|
944
|
+
this->data(0x03); // VDS_EN, VDG_EN
|
945
|
+
this->data(0x00); // VCOM_HV, VGHL_LV[1], VGHL_LV[0]
|
946
|
+
this->data(0x2B); // VDH
|
947
|
+
this->data(0x2B); // VDL
|
948
|
+
this->data(0x09); // VDHR
|
949
|
+
|
950
|
+
// command booster soft start
|
951
|
+
this->command(0x06);
|
952
|
+
this->data(0x07);
|
953
|
+
this->data(0x07);
|
954
|
+
this->data(0x17);
|
955
|
+
|
956
|
+
// Power optimization - ???
|
957
|
+
this->command(0xF8);
|
958
|
+
this->data(0x60);
|
959
|
+
this->data(0xA5);
|
960
|
+
this->command(0xF8);
|
961
|
+
this->data(0x89);
|
962
|
+
this->data(0xA5);
|
963
|
+
this->command(0xF8);
|
964
|
+
this->data(0x90);
|
965
|
+
this->data(0x00);
|
966
|
+
this->command(0xF8);
|
967
|
+
this->data(0x93);
|
968
|
+
this->data(0x2A);
|
969
|
+
this->command(0xF8);
|
970
|
+
this->data(0x73);
|
971
|
+
this->data(0x41);
|
972
|
+
|
973
|
+
// COMMAND VCM DC SETTING
|
974
|
+
this->command(0x82);
|
975
|
+
this->data(0x12);
|
976
|
+
|
977
|
+
// VCOM_AND_DATA_INTERVAL_SETTING
|
978
|
+
this->command(0x50);
|
979
|
+
this->data(0x87); // define by OTP
|
980
|
+
|
981
|
+
delay(2);
|
982
|
+
// COMMAND LUT FOR VCOM
|
983
|
+
this->command(0x20);
|
984
|
+
for (uint8_t i : LUT_VCOM_DC_2_7B)
|
985
|
+
this->data(i);
|
986
|
+
// COMMAND LUT WHITE TO WHITE
|
987
|
+
this->command(0x21);
|
988
|
+
for (uint8_t i : LUT_WHITE_TO_WHITE_2_7B)
|
989
|
+
this->data(i);
|
990
|
+
// COMMAND LUT BLACK TO WHITE
|
991
|
+
this->command(0x22);
|
992
|
+
for (uint8_t i : LUT_BLACK_TO_WHITE_2_7B)
|
993
|
+
this->data(i);
|
994
|
+
// COMMAND LUT WHITE TO BLACK
|
995
|
+
this->command(0x23);
|
996
|
+
for (uint8_t i : LUT_WHITE_TO_BLACK_2_7B) {
|
997
|
+
this->data(i);
|
998
|
+
}
|
999
|
+
// COMMAND LUT BLACK TO BLACK
|
1000
|
+
this->command(0x24);
|
1001
|
+
|
1002
|
+
for (uint8_t i : LUT_BLACK_TO_BLACK_2_7B) {
|
1003
|
+
this->data(i);
|
1004
|
+
}
|
1005
|
+
|
1006
|
+
delay(2);
|
1007
|
+
}
|
1008
|
+
|
1009
|
+
void HOT WaveshareEPaper2P7InB::display() {
|
1010
|
+
uint32_t buf_len_half = this->get_buffer_length_() >> 1;
|
1011
|
+
this->initialize();
|
1012
|
+
|
1013
|
+
// TCON_RESOLUTION
|
1014
|
+
this->command(0x61);
|
1015
|
+
this->data(this->get_width_controller() >> 8);
|
1016
|
+
this->data(this->get_width_controller() & 0xff); // 176
|
1017
|
+
this->data(this->get_height_internal() >> 8);
|
1018
|
+
this->data(this->get_height_internal() & 0xff); // 264
|
1019
|
+
|
1020
|
+
// COMMAND DATA START TRANSMISSION 1 (BLACK)
|
1021
|
+
this->command(0x10);
|
1022
|
+
delay(2);
|
1023
|
+
for (uint32_t i = 0; i < buf_len_half; i++) {
|
1024
|
+
this->data(this->buffer_[i]);
|
1025
|
+
}
|
1026
|
+
this->command(0x11);
|
1027
|
+
delay(2);
|
1028
|
+
|
1029
|
+
// COMMAND DATA START TRANSMISSION 2 (RED)
|
1030
|
+
this->command(0x13);
|
1031
|
+
delay(2);
|
1032
|
+
for (uint32_t i = buf_len_half; i < buf_len_half * 2u; i++) {
|
1033
|
+
this->data(this->buffer_[i]);
|
1034
|
+
}
|
1035
|
+
this->command(0x11);
|
1036
|
+
|
1037
|
+
delay(2);
|
1038
|
+
|
1039
|
+
// COMMAND DISPLAY REFRESH
|
1040
|
+
this->command(0x12);
|
1041
|
+
this->wait_until_idle_();
|
1042
|
+
|
1043
|
+
this->deep_sleep();
|
1044
|
+
}
|
1045
|
+
int WaveshareEPaper2P7InB::get_width_internal() { return 176; }
|
1046
|
+
int WaveshareEPaper2P7InB::get_height_internal() { return 264; }
|
1047
|
+
void WaveshareEPaper2P7InB::dump_config() {
|
1048
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
1049
|
+
ESP_LOGCONFIG(TAG, " Model: 2.7in B");
|
1050
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
1051
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
1052
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
1053
|
+
LOG_UPDATE_INTERVAL(this);
|
1054
|
+
}
|
1055
|
+
|
1056
|
+
// ========================================================
|
1057
|
+
// 2.7inch_e-paper_b_v2
|
1058
|
+
// ========================================================
|
1059
|
+
// Datasheet:
|
1060
|
+
// - https://www.waveshare.com/w/upload/7/7b/2.7inch-e-paper-b-v2-specification.pdf
|
1061
|
+
// - https://github.com/waveshare/e-Paper/blob/master/RaspberryPi_JetsonNano/c/lib/e-Paper/EPD_2in7b_V2.c
|
1062
|
+
|
1063
|
+
void WaveshareEPaper2P7InBV2::initialize() {
|
1064
|
+
this->reset_();
|
1065
|
+
|
1066
|
+
this->wait_until_idle_();
|
1067
|
+
this->command(0x12);
|
1068
|
+
this->wait_until_idle_();
|
1069
|
+
|
1070
|
+
this->command(0x00);
|
1071
|
+
this->data(0x27);
|
1072
|
+
this->data(0x01);
|
1073
|
+
this->data(0x00);
|
1074
|
+
|
1075
|
+
this->command(0x11);
|
1076
|
+
this->data(0x03);
|
1077
|
+
|
1078
|
+
// self.SetWindows(0, 0, self.width-1, self.height-1)
|
1079
|
+
// SetWindows(self, Xstart, Ystart, Xend, Yend):
|
1080
|
+
|
1081
|
+
uint32_t xend = this->get_width_controller() - 1;
|
1082
|
+
uint32_t yend = this->get_height_internal() - 1;
|
1083
|
+
this->command(0x44);
|
1084
|
+
this->data(0x00);
|
1085
|
+
this->data((xend >> 3) & 0xff);
|
1086
|
+
|
1087
|
+
this->command(0x45);
|
1088
|
+
this->data(0x00);
|
1089
|
+
this->data(0x00);
|
1090
|
+
this->data(yend & 0xff);
|
1091
|
+
this->data((yend >> 8) & 0xff);
|
1092
|
+
|
1093
|
+
// SetCursor(self, Xstart, Ystart):
|
1094
|
+
this->command(0x4E);
|
1095
|
+
this->data(0x00);
|
1096
|
+
this->command(0x4F);
|
1097
|
+
this->data(0x00);
|
1098
|
+
this->data(0x00);
|
1099
|
+
}
|
1100
|
+
|
1101
|
+
void HOT WaveshareEPaper2P7InBV2::display() {
|
1102
|
+
uint32_t buf_len = this->get_buffer_length_();
|
1103
|
+
// COMMAND DATA START TRANSMISSION 1 (BLACK)
|
1104
|
+
this->command(0x24);
|
1105
|
+
delay(2);
|
1106
|
+
for (uint32_t i = 0; i < buf_len; i++) {
|
1107
|
+
this->data(this->buffer_[i]);
|
1108
|
+
}
|
1109
|
+
delay(2);
|
1110
|
+
|
1111
|
+
// COMMAND DATA START TRANSMISSION 2 (RED)
|
1112
|
+
this->command(0x26);
|
1113
|
+
delay(2);
|
1114
|
+
for (uint32_t i = 0; i < buf_len; i++) {
|
1115
|
+
this->data(this->buffer_[i]);
|
1116
|
+
}
|
1117
|
+
|
1118
|
+
delay(2);
|
1119
|
+
|
1120
|
+
this->command(0x20);
|
1121
|
+
|
1122
|
+
this->wait_until_idle_();
|
1123
|
+
}
|
1124
|
+
int WaveshareEPaper2P7InBV2::get_width_internal() { return 176; }
|
1125
|
+
int WaveshareEPaper2P7InBV2::get_height_internal() { return 264; }
|
1126
|
+
void WaveshareEPaper2P7InBV2::dump_config() {
|
1127
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
1128
|
+
ESP_LOGCONFIG(TAG, " Model: 2.7in B V2");
|
1129
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
1130
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
1131
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
1132
|
+
LOG_UPDATE_INTERVAL(this);
|
1133
|
+
}
|
1134
|
+
|
1135
|
+
// ========================================================
|
1136
|
+
// 2.90in Type B (LUT from OTP)
|
1137
|
+
// Datasheet:
|
1138
|
+
// - https://www.waveshare.com/w/upload/b/bb/2.9inch-e-paper-b-specification.pdf
|
1139
|
+
// - https://github.com/soonuse/epd-library-arduino/blob/master/2.9inch_e-paper_b/epd2in9b/epd2in9b.cpp
|
1140
|
+
// ========================================================
|
1141
|
+
|
1142
|
+
void WaveshareEPaper2P9InB::initialize() {
|
1143
|
+
// from https://www.waveshare.com/w/upload/b/bb/2.9inch-e-paper-b-specification.pdf, page 37
|
1144
|
+
// EPD hardware init start
|
1145
|
+
this->reset_();
|
1146
|
+
|
1147
|
+
// COMMAND BOOSTER SOFT START
|
1148
|
+
this->command(0x06);
|
1149
|
+
this->data(0x17);
|
1150
|
+
this->data(0x17);
|
1151
|
+
this->data(0x17);
|
1152
|
+
|
1153
|
+
// COMMAND POWER ON
|
1154
|
+
this->command(0x04);
|
1155
|
+
this->wait_until_idle_();
|
1156
|
+
|
1157
|
+
// COMMAND PANEL SETTING
|
1158
|
+
this->command(0x00);
|
1159
|
+
// 128x296 resolution: 10
|
1160
|
+
// LUT from OTP: 0
|
1161
|
+
// B/W mode (doesn't work): 1
|
1162
|
+
// scan-up: 1
|
1163
|
+
// shift-right: 1
|
1164
|
+
// booster ON: 1
|
1165
|
+
// no soft reset: 1
|
1166
|
+
this->data(0x9F);
|
1167
|
+
|
1168
|
+
// COMMAND RESOLUTION SETTING
|
1169
|
+
// set to 128x296 by COMMAND PANEL SETTING
|
1170
|
+
|
1171
|
+
// COMMAND VCOM AND DATA INTERVAL SETTING
|
1172
|
+
// use defaults for white border and ESPHome image polarity
|
1173
|
+
|
1174
|
+
// EPD hardware init end
|
1175
|
+
}
|
1176
|
+
void HOT WaveshareEPaper2P9InB::display() {
|
1177
|
+
// COMMAND DATA START TRANSMISSION 1 (B/W data)
|
1178
|
+
this->command(0x10);
|
1179
|
+
delay(2);
|
1180
|
+
this->start_data_();
|
1181
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
1182
|
+
this->end_data_();
|
1183
|
+
delay(2);
|
1184
|
+
|
1185
|
+
// COMMAND DATA START TRANSMISSION 2 (RED data)
|
1186
|
+
this->command(0x13);
|
1187
|
+
delay(2);
|
1188
|
+
this->start_data_();
|
1189
|
+
for (size_t i = 0; i < this->get_buffer_length_(); i++)
|
1190
|
+
this->write_byte(0x00);
|
1191
|
+
this->end_data_();
|
1192
|
+
delay(2);
|
1193
|
+
|
1194
|
+
// COMMAND DISPLAY REFRESH
|
1195
|
+
this->command(0x12);
|
1196
|
+
delay(2);
|
1197
|
+
this->wait_until_idle_();
|
1198
|
+
|
1199
|
+
// COMMAND POWER OFF
|
1200
|
+
// NOTE: power off < deep sleep
|
1201
|
+
this->command(0x02);
|
1202
|
+
}
|
1203
|
+
int WaveshareEPaper2P9InB::get_width_internal() { return 128; }
|
1204
|
+
int WaveshareEPaper2P9InB::get_height_internal() { return 296; }
|
1205
|
+
void WaveshareEPaper2P9InB::dump_config() {
|
1206
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
1207
|
+
ESP_LOGCONFIG(TAG, " Model: 2.9in (B)");
|
1208
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
1209
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
1210
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
1211
|
+
LOG_UPDATE_INTERVAL(this);
|
1212
|
+
}
|
1213
|
+
|
1214
|
+
// DKE 2.9
|
1215
|
+
// https://www.badge.team/docs/badges/sha2017/hardware/#e-ink-display-the-dke-group-depg0290b1
|
1216
|
+
// https://www.badge.team/docs/badges/sha2017/hardware/DEPG0290B01V3.0.pdf
|
1217
|
+
static const uint8_t LUT_SIZE_DKE = 70;
|
1218
|
+
static const uint8_t UPDATE_LUT_DKE[LUT_SIZE_DKE] = {
|
1219
|
+
0xA0, 0x90, 0x50, 0x0, 0x0, 0x0, 0x0, 0x50, 0x90, 0xA0, 0x0, 0x0, 0x0, 0x0, 0xA0, 0x90, 0x50, 0x0,
|
1220
|
+
0x0, 0x0, 0x0, 0x50, 0x90, 0xA0, 0x0, 0x0, 0x0, 0x0, 0x00, 0x00, 0x00, 0x0, 0x0, 0x0, 0x0, 0xF,
|
1221
|
+
0xF, 0x0, 0x0, 0x0, 0xF, 0xF, 0x0, 0x0, 0x02, 0xF, 0xF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
1222
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
1223
|
+
};
|
1224
|
+
static const uint8_t PART_UPDATE_LUT_DKE[LUT_SIZE_DKE] = {
|
1225
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xa0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x50, 0x10, 0x00, 0x00,
|
1226
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
|
1227
|
+
0x05, 0x00, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
1228
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
1229
|
+
static const uint8_t FULL_UPDATE_LUT_DKE[LUT_SIZE_DKE] = {
|
1230
|
+
0x90, 0x50, 0xa0, 0x50, 0x50, 0x00, 0x00, 0x00, 0x00, 0x10, 0xa0, 0xa0, 0x80, 0x00, 0x90, 0x50, 0xa0, 0x50,
|
1231
|
+
0x50, 0x00, 0x00, 0x00, 0x00, 0x10, 0xa0, 0xa0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17,
|
1232
|
+
0x04, 0x00, 0x00, 0x00, 0x0b, 0x04, 0x00, 0x00, 0x00, 0x06, 0x05, 0x00, 0x00, 0x00, 0x04, 0x05, 0x00, 0x00,
|
1233
|
+
0x00, 0x01, 0x0e, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
1234
|
+
|
1235
|
+
void WaveshareEPaper2P9InDKE::initialize() {
|
1236
|
+
// Hardware reset
|
1237
|
+
delay(10);
|
1238
|
+
this->reset_pin_->digital_write(false);
|
1239
|
+
delayMicroseconds(200);
|
1240
|
+
this->reset_pin_->digital_write(true);
|
1241
|
+
delayMicroseconds(200);
|
1242
|
+
// Wait for busy low
|
1243
|
+
this->wait_until_idle_();
|
1244
|
+
// Software reset
|
1245
|
+
this->command(0x12);
|
1246
|
+
// Wait for busy low
|
1247
|
+
this->wait_until_idle_();
|
1248
|
+
// Set Analog Block Control
|
1249
|
+
this->command(0x74);
|
1250
|
+
this->data(0x54);
|
1251
|
+
// Set Digital Block Control
|
1252
|
+
this->command(0x7E);
|
1253
|
+
this->data(0x3B);
|
1254
|
+
// Set display size and driver output control
|
1255
|
+
this->command(0x01);
|
1256
|
+
// this->data(0x27);
|
1257
|
+
// this->data(0x01);
|
1258
|
+
// this->data(0x00);
|
1259
|
+
this->data(this->get_height_internal() - 1);
|
1260
|
+
this->data((this->get_height_internal() - 1) >> 8);
|
1261
|
+
this->data(0x00); // ? GD = 0, SM = 0, TB = 0
|
1262
|
+
// Ram data entry mode
|
1263
|
+
this->command(0x11);
|
1264
|
+
this->data(0x03);
|
1265
|
+
// Set Ram X address
|
1266
|
+
this->command(0x44);
|
1267
|
+
this->data(0x00);
|
1268
|
+
this->data(0x0F);
|
1269
|
+
// Set Ram Y address
|
1270
|
+
this->command(0x45);
|
1271
|
+
this->data(0x00);
|
1272
|
+
this->data(0x00);
|
1273
|
+
this->data(0x27);
|
1274
|
+
this->data(0x01);
|
1275
|
+
// Set border
|
1276
|
+
this->command(0x3C);
|
1277
|
+
// this->data(0x80);
|
1278
|
+
this->data(0x01);
|
1279
|
+
// Set VCOM value
|
1280
|
+
this->command(0x2C);
|
1281
|
+
this->data(0x26);
|
1282
|
+
// Gate voltage setting
|
1283
|
+
this->command(0x03);
|
1284
|
+
this->data(0x17);
|
1285
|
+
// Source voltage setting
|
1286
|
+
this->command(0x04);
|
1287
|
+
this->data(0x41);
|
1288
|
+
this->data(0x00);
|
1289
|
+
this->data(0x32);
|
1290
|
+
// Frame setting 50hz
|
1291
|
+
this->command(0x3A);
|
1292
|
+
this->data(0x30);
|
1293
|
+
this->command(0x3B);
|
1294
|
+
this->data(0x0A);
|
1295
|
+
// Load LUT
|
1296
|
+
this->command(0x32);
|
1297
|
+
for (uint8_t v : FULL_UPDATE_LUT_DKE)
|
1298
|
+
this->data(v);
|
1299
|
+
}
|
1300
|
+
|
1301
|
+
void HOT WaveshareEPaper2P9InDKE::display() {
|
1302
|
+
ESP_LOGI(TAG, "Performing e-paper update.");
|
1303
|
+
// Set Ram X address counter
|
1304
|
+
this->command(0x4e);
|
1305
|
+
this->data(0);
|
1306
|
+
// Set Ram Y address counter
|
1307
|
+
this->command(0x4f);
|
1308
|
+
this->data(0);
|
1309
|
+
this->data(0);
|
1310
|
+
// Load image (128/8*296)
|
1311
|
+
this->command(0x24);
|
1312
|
+
this->start_data_();
|
1313
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
1314
|
+
this->end_data_();
|
1315
|
+
// Image update
|
1316
|
+
this->command(0x22);
|
1317
|
+
this->data(0xC7);
|
1318
|
+
this->command(0x20);
|
1319
|
+
// Wait for busy low
|
1320
|
+
this->wait_until_idle_();
|
1321
|
+
// Enter deep sleep mode
|
1322
|
+
this->command(0x10);
|
1323
|
+
this->data(0x01);
|
1324
|
+
}
|
1325
|
+
int WaveshareEPaper2P9InDKE::get_width_internal() { return 128; }
|
1326
|
+
int WaveshareEPaper2P9InDKE::get_height_internal() { return 296; }
|
1327
|
+
void WaveshareEPaper2P9InDKE::dump_config() {
|
1328
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
1329
|
+
ESP_LOGCONFIG(TAG, " Model: 2.9in DKE");
|
1330
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
1331
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
1332
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
1333
|
+
LOG_UPDATE_INTERVAL(this);
|
1334
|
+
}
|
1335
|
+
void WaveshareEPaper2P9InDKE::set_full_update_every(uint32_t full_update_every) {
|
1336
|
+
this->full_update_every_ = full_update_every;
|
1337
|
+
}
|
1338
|
+
|
1339
|
+
// ========================================================
|
1340
|
+
// 2.90in Type B (LUT from OTP)
|
1341
|
+
// Datasheet:
|
1342
|
+
// - https://files.waveshare.com/upload/a/af/2.9inch-e-paper-b-v3-specification.pdf
|
1343
|
+
// ========================================================
|
1344
|
+
|
1345
|
+
void WaveshareEPaper2P9InBV3::initialize() {
|
1346
|
+
// from https://github.com/waveshareteam/e-Paper/blob/master/Arduino/epd2in9b_V3/epd2in9b_V3.cpp
|
1347
|
+
this->reset_();
|
1348
|
+
|
1349
|
+
// COMMAND POWER ON
|
1350
|
+
this->command(0x04);
|
1351
|
+
this->wait_until_idle_();
|
1352
|
+
|
1353
|
+
// COMMAND PANEL SETTING
|
1354
|
+
this->command(0x00);
|
1355
|
+
this->data(0x0F);
|
1356
|
+
this->data(0x89);
|
1357
|
+
|
1358
|
+
// COMMAND RESOLUTION SETTING
|
1359
|
+
this->command(0x61);
|
1360
|
+
this->data(0x80);
|
1361
|
+
this->data(0x01);
|
1362
|
+
this->data(0x28);
|
1363
|
+
|
1364
|
+
// COMMAND VCOM AND DATA INTERVAL SETTING
|
1365
|
+
this->command(0x50);
|
1366
|
+
this->data(0x77);
|
1367
|
+
}
|
1368
|
+
void HOT WaveshareEPaper2P9InBV3::display() {
|
1369
|
+
// COMMAND DATA START TRANSMISSION 1 (B/W data)
|
1370
|
+
this->command(0x10);
|
1371
|
+
delay(2);
|
1372
|
+
this->start_data_();
|
1373
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
1374
|
+
this->end_data_();
|
1375
|
+
this->command(0x92);
|
1376
|
+
delay(2);
|
1377
|
+
|
1378
|
+
// COMMAND DATA START TRANSMISSION 2 (RED data)
|
1379
|
+
this->command(0x13);
|
1380
|
+
delay(2);
|
1381
|
+
this->start_data_();
|
1382
|
+
for (size_t i = 0; i < this->get_buffer_length_(); i++)
|
1383
|
+
this->write_byte(0xFF);
|
1384
|
+
this->end_data_();
|
1385
|
+
this->command(0x92);
|
1386
|
+
delay(2);
|
1387
|
+
|
1388
|
+
// COMMAND DISPLAY REFRESH
|
1389
|
+
this->command(0x12);
|
1390
|
+
delay(2);
|
1391
|
+
this->wait_until_idle_();
|
1392
|
+
|
1393
|
+
// COMMAND POWER OFF
|
1394
|
+
// NOTE: power off < deep sleep
|
1395
|
+
this->command(0x02);
|
1396
|
+
}
|
1397
|
+
int WaveshareEPaper2P9InBV3::get_width_internal() { return 128; }
|
1398
|
+
int WaveshareEPaper2P9InBV3::get_height_internal() { return 296; }
|
1399
|
+
void WaveshareEPaper2P9InBV3::dump_config() {
|
1400
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
1401
|
+
ESP_LOGCONFIG(TAG, " Model: 2.9in (B) V3");
|
1402
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
1403
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
1404
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
1405
|
+
LOG_UPDATE_INTERVAL(this);
|
1406
|
+
}
|
1407
|
+
|
1408
|
+
// ========================================================
|
1409
|
+
// 2.90in v2 rev2
|
1410
|
+
// based on SDK and examples in ZIP file from:
|
1411
|
+
// https://www.waveshare.com/pico-epaper-2.9.htm
|
1412
|
+
// ========================================================
|
1413
|
+
|
1414
|
+
void WaveshareEPaper2P9InV2R2::initialize() {
|
1415
|
+
this->reset_();
|
1416
|
+
this->wait_until_idle_();
|
1417
|
+
|
1418
|
+
this->command(0x12); // SWRESET
|
1419
|
+
this->wait_until_idle_();
|
1420
|
+
|
1421
|
+
this->command(0x01);
|
1422
|
+
this->data(0x27);
|
1423
|
+
this->data(0x01);
|
1424
|
+
this->data(0x00);
|
1425
|
+
|
1426
|
+
this->command(0x11);
|
1427
|
+
this->data(0x03);
|
1428
|
+
|
1429
|
+
// SetWindows(0, 0, w, h)
|
1430
|
+
this->command(0x44);
|
1431
|
+
this->data(0x00);
|
1432
|
+
this->data(((this->get_width_controller() - 1) >> 3) & 0xFF);
|
1433
|
+
|
1434
|
+
this->command(0x45);
|
1435
|
+
this->data(0x00);
|
1436
|
+
this->data(0x00);
|
1437
|
+
this->data((this->get_height_internal() - 1) & 0xFF);
|
1438
|
+
this->data(((this->get_height_internal() - 1) >> 8) & 0xFF);
|
1439
|
+
|
1440
|
+
this->command(0x21);
|
1441
|
+
this->data(0x00);
|
1442
|
+
this->data(0x80);
|
1443
|
+
|
1444
|
+
// SetCursor(0, 0)
|
1445
|
+
this->command(0x4E);
|
1446
|
+
this->data(0x00);
|
1447
|
+
this->command(0x4f);
|
1448
|
+
this->data(0x00);
|
1449
|
+
this->data(0x00);
|
1450
|
+
|
1451
|
+
this->wait_until_idle_();
|
1452
|
+
}
|
1453
|
+
|
1454
|
+
WaveshareEPaper2P9InV2R2::WaveshareEPaper2P9InV2R2() { this->reset_duration_ = 10; }
|
1455
|
+
|
1456
|
+
void WaveshareEPaper2P9InV2R2::reset_() {
|
1457
|
+
if (this->reset_pin_ != nullptr) {
|
1458
|
+
this->reset_pin_->digital_write(false);
|
1459
|
+
delay(reset_duration_); // NOLINT
|
1460
|
+
this->reset_pin_->digital_write(true);
|
1461
|
+
delay(reset_duration_); // NOLINT
|
1462
|
+
}
|
1463
|
+
}
|
1464
|
+
|
1465
|
+
void WaveshareEPaper2P9InV2R2::display() {
|
1466
|
+
if (!this->wait_until_idle_()) {
|
1467
|
+
this->status_set_warning();
|
1468
|
+
ESP_LOGE(TAG, "fail idle 1");
|
1469
|
+
return;
|
1470
|
+
}
|
1471
|
+
|
1472
|
+
if (this->full_update_every_ == 1) {
|
1473
|
+
// do single full update
|
1474
|
+
this->command(0x24);
|
1475
|
+
this->start_data_();
|
1476
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
1477
|
+
this->end_data_();
|
1478
|
+
|
1479
|
+
// TurnOnDisplay
|
1480
|
+
this->command(0x22);
|
1481
|
+
this->data(0xF7);
|
1482
|
+
this->command(0x20);
|
1483
|
+
return;
|
1484
|
+
}
|
1485
|
+
|
1486
|
+
// if (this->full_update_every_ == 1 ||
|
1487
|
+
if (this->at_update_ == 0) {
|
1488
|
+
// do base update
|
1489
|
+
this->command(0x24);
|
1490
|
+
this->start_data_();
|
1491
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
1492
|
+
this->end_data_();
|
1493
|
+
|
1494
|
+
this->command(0x26);
|
1495
|
+
this->start_data_();
|
1496
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
1497
|
+
this->end_data_();
|
1498
|
+
|
1499
|
+
// TurnOnDisplay
|
1500
|
+
this->command(0x22);
|
1501
|
+
this->data(0xF7);
|
1502
|
+
this->command(0x20);
|
1503
|
+
} else {
|
1504
|
+
// do partial update
|
1505
|
+
this->reset_();
|
1506
|
+
|
1507
|
+
this->write_lut_(PARTIAL_UPD_2IN9_LUT, PARTIAL_UPD_2IN9_LUT_SIZE);
|
1508
|
+
|
1509
|
+
this->command(0x37);
|
1510
|
+
this->data(0x00);
|
1511
|
+
this->data(0x00);
|
1512
|
+
this->data(0x00);
|
1513
|
+
this->data(0x00);
|
1514
|
+
this->data(0x00);
|
1515
|
+
this->data(0x40);
|
1516
|
+
this->data(0x00);
|
1517
|
+
this->data(0x00);
|
1518
|
+
this->data(0x00);
|
1519
|
+
this->data(0x00);
|
1520
|
+
|
1521
|
+
this->command(0x3C);
|
1522
|
+
this->data(0x80);
|
1523
|
+
|
1524
|
+
this->command(0x22);
|
1525
|
+
this->data(0xC0);
|
1526
|
+
this->command(0x20);
|
1527
|
+
|
1528
|
+
if (!this->wait_until_idle_()) {
|
1529
|
+
ESP_LOGE(TAG, "fail idle 2");
|
1530
|
+
}
|
1531
|
+
|
1532
|
+
// SetWindows(0, 0, w, h)
|
1533
|
+
this->command(0x44);
|
1534
|
+
this->data(0x00);
|
1535
|
+
this->data(((this->get_width_controller() - 1) >> 3) & 0xFF);
|
1536
|
+
|
1537
|
+
this->command(0x45);
|
1538
|
+
this->data(0x00);
|
1539
|
+
this->data(0x00);
|
1540
|
+
this->data((this->get_height_internal() - 1) & 0xFF);
|
1541
|
+
this->data(((this->get_height_internal() - 1) >> 8) & 0xFF);
|
1542
|
+
|
1543
|
+
// SetCursor(0, 0)
|
1544
|
+
this->command(0x4E);
|
1545
|
+
this->data(0x00);
|
1546
|
+
this->command(0x4f);
|
1547
|
+
this->data(0x00);
|
1548
|
+
this->data(0x00);
|
1549
|
+
|
1550
|
+
// write b/w
|
1551
|
+
this->command(0x24);
|
1552
|
+
this->start_data_();
|
1553
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
1554
|
+
this->end_data_();
|
1555
|
+
|
1556
|
+
// TurnOnDisplayPartial
|
1557
|
+
this->command(0x22);
|
1558
|
+
this->data(0x0F);
|
1559
|
+
this->command(0x20);
|
1560
|
+
}
|
1561
|
+
|
1562
|
+
this->at_update_ = (this->at_update_ + 1) % this->full_update_every_;
|
1563
|
+
}
|
1564
|
+
|
1565
|
+
void WaveshareEPaper2P9InV2R2::write_lut_(const uint8_t *lut, const uint8_t size) {
|
1566
|
+
// COMMAND WRITE LUT REGISTER
|
1567
|
+
this->command(0x32);
|
1568
|
+
for (uint8_t i = 0; i < size; i++)
|
1569
|
+
this->data(lut[i]);
|
1570
|
+
}
|
1571
|
+
|
1572
|
+
void WaveshareEPaper2P9InV2R2::dump_config() {
|
1573
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
1574
|
+
ESP_LOGCONFIG(TAG, " Model: 2.9inV2R2");
|
1575
|
+
ESP_LOGCONFIG(TAG, " Full Update Every: %" PRIu32, this->full_update_every_);
|
1576
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
1577
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
1578
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
1579
|
+
LOG_UPDATE_INTERVAL(this);
|
1580
|
+
}
|
1581
|
+
|
1582
|
+
void WaveshareEPaper2P9InV2R2::deep_sleep() {
|
1583
|
+
this->command(0x10);
|
1584
|
+
this->data(0x01);
|
1585
|
+
}
|
1586
|
+
|
1587
|
+
int WaveshareEPaper2P9InV2R2::get_width_internal() { return 128; }
|
1588
|
+
int WaveshareEPaper2P9InV2R2::get_height_internal() { return 296; }
|
1589
|
+
int WaveshareEPaper2P9InV2R2::get_width_controller() { return this->get_width_internal(); }
|
1590
|
+
void WaveshareEPaper2P9InV2R2::set_full_update_every(uint32_t full_update_every) {
|
1591
|
+
this->full_update_every_ = full_update_every;
|
1592
|
+
}
|
1593
|
+
|
1594
|
+
// ========================================================
|
1595
|
+
// Good Display 2.9in black/white/grey
|
1596
|
+
// Datasheet:
|
1597
|
+
// - https://v4.cecdn.yun300.cn/100001_1909185148/SSD1680.pdf
|
1598
|
+
// - https://github.com/adafruit/Adafruit_EPD/blob/master/src/panels/ThinkInk_290_Grayscale4_T5.h
|
1599
|
+
// ========================================================
|
1600
|
+
|
1601
|
+
void GDEW029T5::initialize() {
|
1602
|
+
// from https://www.waveshare.com/w/upload/b/bb/2.9inch-e-paper-b-specification.pdf, page 37
|
1603
|
+
// EPD hardware init start
|
1604
|
+
this->reset_();
|
1605
|
+
|
1606
|
+
// COMMAND POWER SETTINGS
|
1607
|
+
this->command(0x00);
|
1608
|
+
this->data(0x03);
|
1609
|
+
this->data(0x00);
|
1610
|
+
this->data(0x2b);
|
1611
|
+
this->data(0x2b);
|
1612
|
+
this->data(0x03); /* for b/w */
|
1613
|
+
|
1614
|
+
// COMMAND BOOSTER SOFT START
|
1615
|
+
this->command(0x06);
|
1616
|
+
this->data(0x17);
|
1617
|
+
this->data(0x17);
|
1618
|
+
this->data(0x17);
|
1619
|
+
|
1620
|
+
// COMMAND POWER ON
|
1621
|
+
this->command(0x04);
|
1622
|
+
this->wait_until_idle_();
|
1623
|
+
|
1624
|
+
// Not sure what this does but it's in the Adafruit EPD library
|
1625
|
+
this->command(0xFF);
|
1626
|
+
this->wait_until_idle_();
|
1627
|
+
|
1628
|
+
// COMMAND PANEL SETTING
|
1629
|
+
this->command(0x00);
|
1630
|
+
// 128x296 resolution: 10
|
1631
|
+
// LUT from OTP: 0
|
1632
|
+
// B/W mode (doesn't work): 1
|
1633
|
+
// scan-up: 1
|
1634
|
+
// shift-right: 1
|
1635
|
+
// booster ON: 1
|
1636
|
+
// no soft reset: 1
|
1637
|
+
this->data(0b10011111);
|
1638
|
+
|
1639
|
+
// COMMAND RESOLUTION SETTING
|
1640
|
+
// set to 128x296 by COMMAND PANEL SETTING
|
1641
|
+
|
1642
|
+
// COMMAND VCOM AND DATA INTERVAL SETTING
|
1643
|
+
// use defaults for white border and ESPHome image polarity
|
1644
|
+
|
1645
|
+
// EPD hardware init end
|
1646
|
+
}
|
1647
|
+
void HOT GDEW029T5::display() {
|
1648
|
+
// COMMAND DATA START TRANSMISSION 2 (B/W only)
|
1649
|
+
this->command(0x13);
|
1650
|
+
delay(2);
|
1651
|
+
this->start_data_();
|
1652
|
+
for (size_t i = 0; i < this->get_buffer_length_(); i++) {
|
1653
|
+
this->write_byte(this->buffer_[i]);
|
1654
|
+
}
|
1655
|
+
this->end_data_();
|
1656
|
+
delay(2);
|
1657
|
+
|
1658
|
+
// COMMAND DISPLAY REFRESH
|
1659
|
+
this->command(0x12);
|
1660
|
+
delay(2);
|
1661
|
+
this->wait_until_idle_();
|
1662
|
+
|
1663
|
+
// COMMAND POWER OFF
|
1664
|
+
// NOTE: power off < deep sleep
|
1665
|
+
this->command(0x02);
|
1666
|
+
}
|
1667
|
+
int GDEW029T5::get_width_internal() { return 128; }
|
1668
|
+
int GDEW029T5::get_height_internal() { return 296; }
|
1669
|
+
void GDEW029T5::dump_config() {
|
1670
|
+
LOG_DISPLAY("", "Waveshare E-Paper (Good Display)", this);
|
1671
|
+
ESP_LOGCONFIG(TAG, " Model: 2.9in Greyscale GDEW029T5");
|
1672
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
1673
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
1674
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
1675
|
+
LOG_UPDATE_INTERVAL(this);
|
1676
|
+
}
|
1677
|
+
|
1678
|
+
// ========================================================
|
1679
|
+
// Good Display 1.54in black/white/grey GDEW0154M09
|
1680
|
+
// As used in M5Stack Core Ink
|
1681
|
+
// Datasheet:
|
1682
|
+
// - https://v4.cecdn.yun300.cn/100001_1909185148/GDEW0154M09-200709.pdf
|
1683
|
+
// - https://github.com/m5stack/M5Core-Ink
|
1684
|
+
// Reference code from GoodDisplay:
|
1685
|
+
// - https://github.com/GoodDisplay/E-paper-Display-Library-of-GoodDisplay/
|
1686
|
+
// -> /Monochrome_E-paper-Display/1.54inch_JD79653_GDEW0154M09_200x200/ESP32-Arduino%20IDE/GDEW0154M09_Arduino.ino
|
1687
|
+
// M5Stack Core Ink spec:
|
1688
|
+
// - https://docs.m5stack.com/en/core/coreink
|
1689
|
+
// ========================================================
|
1690
|
+
|
1691
|
+
void GDEW0154M09::initialize() {
|
1692
|
+
this->init_internal_();
|
1693
|
+
ExternalRAMAllocator<uint8_t> allocator(ExternalRAMAllocator<uint8_t>::ALLOW_FAILURE);
|
1694
|
+
this->lastbuff_ = allocator.allocate(this->get_buffer_length_());
|
1695
|
+
if (this->lastbuff_ != nullptr) {
|
1696
|
+
memset(this->lastbuff_, 0xff, sizeof(uint8_t) * this->get_buffer_length_());
|
1697
|
+
}
|
1698
|
+
this->clear_();
|
1699
|
+
}
|
1700
|
+
|
1701
|
+
void GDEW0154M09::reset_() {
|
1702
|
+
// RST is inverse from other einks in this project
|
1703
|
+
if (this->reset_pin_ != nullptr) {
|
1704
|
+
this->reset_pin_->digital_write(false);
|
1705
|
+
delay(10);
|
1706
|
+
this->reset_pin_->digital_write(true);
|
1707
|
+
delay(10);
|
1708
|
+
}
|
1709
|
+
}
|
1710
|
+
|
1711
|
+
void GDEW0154M09::init_internal_() {
|
1712
|
+
this->reset_();
|
1713
|
+
|
1714
|
+
// clang-format off
|
1715
|
+
// 200x200 resolution: 11
|
1716
|
+
// LUT from OTP: 0
|
1717
|
+
// B/W mode (doesn't work): 1
|
1718
|
+
// scan-up: 1
|
1719
|
+
// shift-right: 1
|
1720
|
+
// booster ON: 1
|
1721
|
+
// no soft reset: 1
|
1722
|
+
const uint8_t panel_setting_1 = 0b11011111;
|
1723
|
+
|
1724
|
+
// VCOM status off 0
|
1725
|
+
// Temp sensing default 1
|
1726
|
+
// VGL Power Off Floating 1
|
1727
|
+
// NORG expect refresh 1
|
1728
|
+
// VCOM Off on displ off 0
|
1729
|
+
const uint8_t panel_setting_2 = 0b01110;
|
1730
|
+
|
1731
|
+
const uint8_t wf_t0154_cz_b3_list[] = {
|
1732
|
+
11, // 11 commands in list
|
1733
|
+
CMD_PSR_PANEL_SETTING, 2, panel_setting_1, panel_setting_2,
|
1734
|
+
CMD_UNDOCUMENTED_0x4D, 1, 0x55,
|
1735
|
+
CMD_UNDOCUMENTED_0xAA, 1, 0x0f,
|
1736
|
+
CMD_UNDOCUMENTED_0xE9, 1, 0x02,
|
1737
|
+
CMD_UNDOCUMENTED_0xB6, 1, 0x11,
|
1738
|
+
CMD_UNDOCUMENTED_0xF3, 1, 0x0a,
|
1739
|
+
CMD_TRES_RESOLUTION_SETTING, 3, 0xc8, 0x00, 0xc8,
|
1740
|
+
CMD_TCON_TCONSETTING, 1, 0x00,
|
1741
|
+
CMD_CDI_VCOM_DATA_INTERVAL, 1, 0xd7,
|
1742
|
+
CMD_PWS_POWER_SAVING, 1, 0x00,
|
1743
|
+
CMD_PON_POWER_ON, 0
|
1744
|
+
};
|
1745
|
+
// clang-format on
|
1746
|
+
|
1747
|
+
this->write_init_list_(wf_t0154_cz_b3_list);
|
1748
|
+
delay(100); // NOLINT
|
1749
|
+
this->wait_until_idle_();
|
1750
|
+
}
|
1751
|
+
|
1752
|
+
void GDEW0154M09::write_init_list_(const uint8_t *list) {
|
1753
|
+
uint8_t list_limit = list[0];
|
1754
|
+
uint8_t *start_ptr = ((uint8_t *) list + 1);
|
1755
|
+
for (uint8_t i = 0; i < list_limit; i++) {
|
1756
|
+
this->command(*(start_ptr + 0));
|
1757
|
+
for (uint8_t dnum = 0; dnum < *(start_ptr + 1); dnum++) {
|
1758
|
+
this->data(*(start_ptr + 2 + dnum));
|
1759
|
+
}
|
1760
|
+
start_ptr += (*(start_ptr + 1) + 2);
|
1761
|
+
}
|
1762
|
+
}
|
1763
|
+
|
1764
|
+
void GDEW0154M09::clear_() {
|
1765
|
+
uint32_t pixsize = this->get_buffer_length_();
|
1766
|
+
for (uint8_t j = 0; j < 2; j++) {
|
1767
|
+
this->command(CMD_DTM1_DATA_START_TRANS);
|
1768
|
+
for (int count = 0; count < pixsize; count++) {
|
1769
|
+
this->data(0x00);
|
1770
|
+
}
|
1771
|
+
this->command(CMD_DTM2_DATA_START_TRANS2);
|
1772
|
+
for (int count = 0; count < pixsize; count++) {
|
1773
|
+
this->data(0xff);
|
1774
|
+
}
|
1775
|
+
this->command(CMD_DISPLAY_REFRESH);
|
1776
|
+
delay(10);
|
1777
|
+
this->wait_until_idle_();
|
1778
|
+
}
|
1779
|
+
}
|
1780
|
+
|
1781
|
+
void HOT GDEW0154M09::display() {
|
1782
|
+
this->init_internal_();
|
1783
|
+
// "Mode 0 display" for now
|
1784
|
+
this->command(CMD_DTM1_DATA_START_TRANS);
|
1785
|
+
for (int i = 0; i < this->get_buffer_length_(); i++) {
|
1786
|
+
this->data(0xff);
|
1787
|
+
}
|
1788
|
+
this->command(CMD_DTM2_DATA_START_TRANS2); // write 'new' data to SRAM
|
1789
|
+
for (int i = 0; i < this->get_buffer_length_(); i++) {
|
1790
|
+
this->data(this->buffer_[i]);
|
1791
|
+
}
|
1792
|
+
this->command(CMD_DISPLAY_REFRESH);
|
1793
|
+
delay(10);
|
1794
|
+
this->wait_until_idle_();
|
1795
|
+
this->deep_sleep();
|
1796
|
+
}
|
1797
|
+
|
1798
|
+
void GDEW0154M09::deep_sleep() {
|
1799
|
+
// COMMAND DEEP SLEEP
|
1800
|
+
this->command(CMD_POF_POWER_OFF);
|
1801
|
+
this->wait_until_idle_();
|
1802
|
+
delay(1000); // NOLINT
|
1803
|
+
this->command(CMD_DSLP_DEEP_SLEEP);
|
1804
|
+
this->data(DATA_DSLP_DEEP_SLEEP);
|
1805
|
+
}
|
1806
|
+
|
1807
|
+
int GDEW0154M09::get_width_internal() { return 200; }
|
1808
|
+
int GDEW0154M09::get_height_internal() { return 200; }
|
1809
|
+
void GDEW0154M09::dump_config() {
|
1810
|
+
LOG_DISPLAY("", "M5Stack CoreInk E-Paper (Good Display)", this);
|
1811
|
+
ESP_LOGCONFIG(TAG, " Model: 1.54in Greyscale GDEW0154M09");
|
1812
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
1813
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
1814
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
1815
|
+
LOG_UPDATE_INTERVAL(this);
|
1816
|
+
}
|
1817
|
+
|
1818
|
+
static const uint8_t LUT_VCOM_DC_4_2[] = {
|
1819
|
+
0x00, 0x17, 0x00, 0x00, 0x00, 0x02, 0x00, 0x17, 0x17, 0x00, 0x00, 0x02, 0x00, 0x0A, 0x01,
|
1820
|
+
0x00, 0x00, 0x01, 0x00, 0x0E, 0x0E, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
1821
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
1822
|
+
};
|
1823
|
+
static const uint8_t LUT_WHITE_TO_WHITE_4_2[] = {
|
1824
|
+
0x40, 0x17, 0x00, 0x00, 0x00, 0x02, 0x90, 0x17, 0x17, 0x00, 0x00, 0x02, 0x40, 0x0A,
|
1825
|
+
0x01, 0x00, 0x00, 0x01, 0xA0, 0x0E, 0x0E, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
|
1826
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
1827
|
+
};
|
1828
|
+
static const uint8_t LUT_BLACK_TO_WHITE_4_2[] = {
|
1829
|
+
0x40, 0x17, 0x00, 0x00, 0x00, 0x02, 0x90, 0x17, 0x17, 0x00, 0x00, 0x02, 0x40, 0x0A,
|
1830
|
+
0x01, 0x00, 0x00, 0x01, 0xA0, 0x0E, 0x0E, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
|
1831
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
1832
|
+
};
|
1833
|
+
|
1834
|
+
static const uint8_t LUT_BLACK_TO_BLACK_4_2[] = {
|
1835
|
+
0x80, 0x17, 0x00, 0x00, 0x00, 0x02, 0x90, 0x17, 0x17, 0x00, 0x00, 0x02, 0x80, 0x0A,
|
1836
|
+
0x01, 0x00, 0x00, 0x01, 0x50, 0x0E, 0x0E, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
|
1837
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
1838
|
+
};
|
1839
|
+
|
1840
|
+
static const uint8_t LUT_WHITE_TO_BLACK_4_2[] = {
|
1841
|
+
0x80, 0x17, 0x00, 0x00, 0x00, 0x02, 0x90, 0x17, 0x17, 0x00, 0x00, 0x02, 0x80, 0x0A,
|
1842
|
+
0x01, 0x00, 0x00, 0x01, 0x50, 0x0E, 0x0E, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
|
1843
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
1844
|
+
};
|
1845
|
+
|
1846
|
+
void WaveshareEPaper4P2In::initialize() {
|
1847
|
+
// https://www.waveshare.com/w/upload/7/7f/4.2inch-e-paper-b-specification.pdf - page 8
|
1848
|
+
|
1849
|
+
// COMMAND POWER SETTING
|
1850
|
+
this->command(0x01);
|
1851
|
+
this->data(0x03); // VDS_EN, VDG_EN
|
1852
|
+
this->data(0x00); // VCOM_HV, VGHL_LV[1], VGHL_LV[0]
|
1853
|
+
this->data(0x2B); // VDH
|
1854
|
+
this->data(0x2B); // VDL
|
1855
|
+
this->data(0xFF); // VDHR
|
1856
|
+
|
1857
|
+
// COMMAND BOOSTER SOFT START
|
1858
|
+
this->command(0x06);
|
1859
|
+
this->data(0x17); // PHA
|
1860
|
+
this->data(0x17); // PHB
|
1861
|
+
this->data(0x17); // PHC
|
1862
|
+
|
1863
|
+
// COMMAND POWER ON
|
1864
|
+
this->command(0x04);
|
1865
|
+
this->wait_until_idle_();
|
1866
|
+
delay(10);
|
1867
|
+
// COMMAND PANEL SETTING
|
1868
|
+
this->command(0x00);
|
1869
|
+
this->data(0xBF); // KW-BF KWR-AF BWROTP 0f
|
1870
|
+
this->data(0x0B);
|
1871
|
+
// COMMAND PLL CONTROL
|
1872
|
+
this->command(0x30);
|
1873
|
+
this->data(0x3C); // 3A 100HZ 29 150Hz 39 200HZ 31 171HZ
|
1874
|
+
|
1875
|
+
delay(2);
|
1876
|
+
// COMMAND LUT FOR VCOM
|
1877
|
+
this->command(0x20);
|
1878
|
+
for (uint8_t i : LUT_VCOM_DC_4_2)
|
1879
|
+
this->data(i);
|
1880
|
+
// COMMAND LUT WHITE TO WHITE
|
1881
|
+
this->command(0x21);
|
1882
|
+
for (uint8_t i : LUT_WHITE_TO_WHITE_4_2)
|
1883
|
+
this->data(i);
|
1884
|
+
// COMMAND LUT BLACK TO WHITE
|
1885
|
+
this->command(0x22);
|
1886
|
+
for (uint8_t i : LUT_BLACK_TO_WHITE_4_2)
|
1887
|
+
this->data(i);
|
1888
|
+
// COMMAND LUT WHITE TO BLACK
|
1889
|
+
this->command(0x23);
|
1890
|
+
for (uint8_t i : LUT_WHITE_TO_BLACK_4_2)
|
1891
|
+
this->data(i);
|
1892
|
+
// COMMAND LUT BLACK TO BLACK
|
1893
|
+
this->command(0x24);
|
1894
|
+
for (uint8_t i : LUT_BLACK_TO_BLACK_4_2)
|
1895
|
+
this->data(i);
|
1896
|
+
}
|
1897
|
+
void HOT WaveshareEPaper4P2In::display() {
|
1898
|
+
// COMMAND RESOLUTION SETTING
|
1899
|
+
this->command(0x61);
|
1900
|
+
this->data(0x01);
|
1901
|
+
this->data(0x90);
|
1902
|
+
this->data(0x01);
|
1903
|
+
this->data(0x2C);
|
1904
|
+
|
1905
|
+
// COMMAND VCM DC SETTING REGISTER
|
1906
|
+
this->command(0x82);
|
1907
|
+
this->data(0x12);
|
1908
|
+
|
1909
|
+
// COMMAND VCOM AND DATA INTERVAL SETTING
|
1910
|
+
this->command(0x50);
|
1911
|
+
this->data(0x97);
|
1912
|
+
|
1913
|
+
// COMMAND DATA START TRANSMISSION 1
|
1914
|
+
this->command(0x10);
|
1915
|
+
delay(2);
|
1916
|
+
this->start_data_();
|
1917
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
1918
|
+
this->end_data_();
|
1919
|
+
delay(2);
|
1920
|
+
// COMMAND DATA START TRANSMISSION 2
|
1921
|
+
this->command(0x13);
|
1922
|
+
delay(2);
|
1923
|
+
this->start_data_();
|
1924
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
1925
|
+
this->end_data_();
|
1926
|
+
// COMMAND DISPLAY REFRESH
|
1927
|
+
this->command(0x12);
|
1928
|
+
}
|
1929
|
+
int WaveshareEPaper4P2In::get_width_internal() { return 400; }
|
1930
|
+
int WaveshareEPaper4P2In::get_height_internal() { return 300; }
|
1931
|
+
void WaveshareEPaper4P2In::dump_config() {
|
1932
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
1933
|
+
ESP_LOGCONFIG(TAG, " Model: 4.2in");
|
1934
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
1935
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
1936
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
1937
|
+
LOG_UPDATE_INTERVAL(this);
|
1938
|
+
}
|
1939
|
+
|
1940
|
+
// ========================================================
|
1941
|
+
// 4.20in Type B (LUT from OTP)
|
1942
|
+
// Datasheet:
|
1943
|
+
// - https://www.waveshare.com/w/upload/2/20/4.2inch-e-paper-module-user-manual-en.pdf
|
1944
|
+
// - https://github.com/waveshare/e-Paper/blob/master/RaspberryPi_JetsonNano/c/lib/e-Paper/EPD_4in2b_V2.c
|
1945
|
+
// ========================================================
|
1946
|
+
void WaveshareEPaper4P2InBV2::initialize() {
|
1947
|
+
// these exact timings are required for a proper reset/init
|
1948
|
+
this->reset_pin_->digital_write(false);
|
1949
|
+
delay(2);
|
1950
|
+
this->reset_pin_->digital_write(true);
|
1951
|
+
delay(200); // NOLINT
|
1952
|
+
|
1953
|
+
// COMMAND POWER ON
|
1954
|
+
this->command(0x04);
|
1955
|
+
this->wait_until_idle_();
|
1956
|
+
|
1957
|
+
// COMMAND PANEL SETTING
|
1958
|
+
this->command(0x00);
|
1959
|
+
this->data(0x0f); // LUT from OTP
|
1960
|
+
}
|
1961
|
+
|
1962
|
+
void HOT WaveshareEPaper4P2InBV2::display() {
|
1963
|
+
// COMMAND DATA START TRANSMISSION 1 (B/W data)
|
1964
|
+
this->command(0x10);
|
1965
|
+
this->start_data_();
|
1966
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
1967
|
+
this->end_data_();
|
1968
|
+
|
1969
|
+
// COMMAND DATA START TRANSMISSION 2 (RED data)
|
1970
|
+
this->command(0x13);
|
1971
|
+
this->start_data_();
|
1972
|
+
for (size_t i = 0; i < this->get_buffer_length_(); i++)
|
1973
|
+
this->write_byte(0xFF);
|
1974
|
+
this->end_data_();
|
1975
|
+
delay(2);
|
1976
|
+
|
1977
|
+
// COMMAND DISPLAY REFRESH
|
1978
|
+
this->command(0x12);
|
1979
|
+
this->wait_until_idle_();
|
1980
|
+
|
1981
|
+
// COMMAND POWER OFF
|
1982
|
+
// NOTE: power off < deep sleep
|
1983
|
+
this->command(0x02);
|
1984
|
+
}
|
1985
|
+
int WaveshareEPaper4P2InBV2::get_width_internal() { return 400; }
|
1986
|
+
int WaveshareEPaper4P2InBV2::get_height_internal() { return 300; }
|
1987
|
+
void WaveshareEPaper4P2InBV2::dump_config() {
|
1988
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
1989
|
+
ESP_LOGCONFIG(TAG, " Model: 4.2in (B V2)");
|
1990
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
1991
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
1992
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
1993
|
+
LOG_UPDATE_INTERVAL(this);
|
1994
|
+
}
|
1995
|
+
|
1996
|
+
void WaveshareEPaper5P8In::initialize() {
|
1997
|
+
// COMMAND POWER SETTING
|
1998
|
+
this->command(0x01);
|
1999
|
+
this->data(0x37);
|
2000
|
+
this->data(0x00);
|
2001
|
+
|
2002
|
+
// COMMAND PANEL SETTING
|
2003
|
+
this->command(0x00);
|
2004
|
+
this->data(0xCF);
|
2005
|
+
this->data(0x0B);
|
2006
|
+
|
2007
|
+
// COMMAND BOOSTER SOFT START
|
2008
|
+
this->command(0x06);
|
2009
|
+
this->data(0xC7);
|
2010
|
+
this->data(0xCC);
|
2011
|
+
this->data(0x28);
|
2012
|
+
|
2013
|
+
// COMMAND POWER ON
|
2014
|
+
this->command(0x04);
|
2015
|
+
this->wait_until_idle_();
|
2016
|
+
delay(10);
|
2017
|
+
|
2018
|
+
// COMMAND PLL CONTROL
|
2019
|
+
this->command(0x30);
|
2020
|
+
this->data(0x3C);
|
2021
|
+
|
2022
|
+
// COMMAND TEMPERATURE SENSOR CALIBRATION
|
2023
|
+
this->command(0x41);
|
2024
|
+
this->data(0x00);
|
2025
|
+
|
2026
|
+
// COMMAND VCOM AND DATA INTERVAL SETTING
|
2027
|
+
this->command(0x50);
|
2028
|
+
this->data(0x77);
|
2029
|
+
|
2030
|
+
// COMMAND TCON SETTING
|
2031
|
+
this->command(0x60);
|
2032
|
+
this->data(0x22);
|
2033
|
+
|
2034
|
+
// COMMAND RESOLUTION SETTING
|
2035
|
+
this->command(0x61);
|
2036
|
+
this->data(0x02);
|
2037
|
+
this->data(0x58);
|
2038
|
+
this->data(0x01);
|
2039
|
+
this->data(0xC0);
|
2040
|
+
|
2041
|
+
// COMMAND VCM DC SETTING REGISTER
|
2042
|
+
this->command(0x82);
|
2043
|
+
this->data(0x1E);
|
2044
|
+
|
2045
|
+
this->command(0xE5);
|
2046
|
+
this->data(0x03);
|
2047
|
+
}
|
2048
|
+
void HOT WaveshareEPaper5P8In::display() {
|
2049
|
+
// COMMAND DATA START TRANSMISSION 1
|
2050
|
+
this->command(0x10);
|
2051
|
+
|
2052
|
+
this->start_data_();
|
2053
|
+
for (size_t i = 0; i < this->get_buffer_length_(); i++) {
|
2054
|
+
uint8_t temp1 = this->buffer_[i];
|
2055
|
+
for (uint8_t j = 0; j < 8; j++) {
|
2056
|
+
uint8_t temp2;
|
2057
|
+
if (temp1 & 0x80) {
|
2058
|
+
temp2 = 0x03;
|
2059
|
+
} else {
|
2060
|
+
temp2 = 0x00;
|
2061
|
+
}
|
2062
|
+
|
2063
|
+
temp2 <<= 4;
|
2064
|
+
temp1 <<= 1;
|
2065
|
+
j++;
|
2066
|
+
if (temp1 & 0x80) {
|
2067
|
+
temp2 |= 0x03;
|
2068
|
+
} else {
|
2069
|
+
temp2 |= 0x00;
|
2070
|
+
}
|
2071
|
+
temp1 <<= 1;
|
2072
|
+
this->write_byte(temp2);
|
2073
|
+
}
|
2074
|
+
|
2075
|
+
App.feed_wdt();
|
2076
|
+
}
|
2077
|
+
this->end_data_();
|
2078
|
+
|
2079
|
+
// COMMAND DISPLAY REFRESH
|
2080
|
+
this->command(0x12);
|
2081
|
+
}
|
2082
|
+
int WaveshareEPaper5P8In::get_width_internal() { return 600; }
|
2083
|
+
int WaveshareEPaper5P8In::get_height_internal() { return 448; }
|
2084
|
+
void WaveshareEPaper5P8In::dump_config() {
|
2085
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
2086
|
+
ESP_LOGCONFIG(TAG, " Model: 5.83in");
|
2087
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
2088
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
2089
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
2090
|
+
LOG_UPDATE_INTERVAL(this);
|
2091
|
+
}
|
2092
|
+
|
2093
|
+
// ========================================================
|
2094
|
+
// 5.83in V2
|
2095
|
+
// Datasheet/Specification/Reference:
|
2096
|
+
// - https://www.waveshare.com/w/upload/3/37/5.83inch_e-Paper_V2_Specification.pdf
|
2097
|
+
// - https://github.com/waveshare/e-Paper/blob/master/Arduino/epd5in83_V2/epd5in83_V2.cpp
|
2098
|
+
// ========================================================
|
2099
|
+
void WaveshareEPaper5P8InV2::initialize() {
|
2100
|
+
// COMMAND POWER SETTING
|
2101
|
+
this->command(0x01);
|
2102
|
+
this->data(0x07);
|
2103
|
+
this->data(0x07);
|
2104
|
+
this->data(0x3f);
|
2105
|
+
this->data(0x3f);
|
2106
|
+
|
2107
|
+
// COMMAND POWER ON
|
2108
|
+
this->command(0x04);
|
2109
|
+
delay(10);
|
2110
|
+
this->wait_until_idle_();
|
2111
|
+
|
2112
|
+
// PANNEL SETTING
|
2113
|
+
this->command(0x00);
|
2114
|
+
this->data(0x1F);
|
2115
|
+
|
2116
|
+
// COMMAND RESOLUTION SETTING
|
2117
|
+
this->command(0x61);
|
2118
|
+
this->data(0x02);
|
2119
|
+
this->data(0x88);
|
2120
|
+
this->data(0x01);
|
2121
|
+
this->data(0xE0);
|
2122
|
+
|
2123
|
+
this->command(0x15);
|
2124
|
+
this->data(0x00);
|
2125
|
+
|
2126
|
+
// COMMAND TCON SETTING
|
2127
|
+
this->command(0x60);
|
2128
|
+
this->data(0x22);
|
2129
|
+
|
2130
|
+
// Do we need this?
|
2131
|
+
// COMMAND PLL CONTROL
|
2132
|
+
this->command(0x30);
|
2133
|
+
this->data(0x3C); // 3A 100HZ 29 150Hz 39 200HZ 31 171HZ
|
2134
|
+
}
|
2135
|
+
void HOT WaveshareEPaper5P8InV2::display() {
|
2136
|
+
// Reuse the code from WaveshareEPaper4P2In::display()
|
2137
|
+
// COMMAND VCM DC SETTING REGISTER
|
2138
|
+
this->command(0x82);
|
2139
|
+
this->data(0x12);
|
2140
|
+
|
2141
|
+
// COMMAND VCOM AND DATA INTERVAL SETTING
|
2142
|
+
this->command(0x50);
|
2143
|
+
this->data(0x97);
|
2144
|
+
|
2145
|
+
// COMMAND DATA START TRANSMISSION 1
|
2146
|
+
this->command(0x10);
|
2147
|
+
delay(2);
|
2148
|
+
this->start_data_();
|
2149
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
2150
|
+
this->end_data_();
|
2151
|
+
delay(2);
|
2152
|
+
|
2153
|
+
// COMMAND DATA START TRANSMISSION 2
|
2154
|
+
this->command(0x13);
|
2155
|
+
delay(2);
|
2156
|
+
this->start_data_();
|
2157
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
2158
|
+
this->end_data_();
|
2159
|
+
|
2160
|
+
// COMMAND DISPLAY REFRESH
|
2161
|
+
this->command(0x12);
|
2162
|
+
}
|
2163
|
+
int WaveshareEPaper5P8InV2::get_width_internal() { return 648; }
|
2164
|
+
int WaveshareEPaper5P8InV2::get_height_internal() { return 480; }
|
2165
|
+
void WaveshareEPaper5P8InV2::dump_config() {
|
2166
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
2167
|
+
ESP_LOGCONFIG(TAG, " Model: 5.83inv2");
|
2168
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
2169
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
2170
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
2171
|
+
LOG_UPDATE_INTERVAL(this);
|
2172
|
+
}
|
2173
|
+
|
2174
|
+
void WaveshareEPaper7P5InBV2::initialize() {
|
2175
|
+
// COMMAND POWER SETTING
|
2176
|
+
this->command(0x01);
|
2177
|
+
this->data(0x07);
|
2178
|
+
this->data(0x07); // VGH=20V,VGL=-20V
|
2179
|
+
this->data(0x3f); // VDH=15V
|
2180
|
+
this->data(0x3f); // VDL=-15V
|
2181
|
+
// COMMAND POWER ON
|
2182
|
+
this->command(0x04);
|
2183
|
+
delay(100); // NOLINT
|
2184
|
+
this->wait_until_idle_();
|
2185
|
+
// COMMAND PANEL SETTING
|
2186
|
+
this->command(0x00);
|
2187
|
+
this->data(0x0F); // KW3f, KWR-2F, BWROTP 0f, BWOTP 1f
|
2188
|
+
this->command(0x61); // tres
|
2189
|
+
this->data(0x03); // 800px
|
2190
|
+
this->data(0x20);
|
2191
|
+
this->data(0x01); // 400px
|
2192
|
+
this->data(0xE0);
|
2193
|
+
this->command(0x15);
|
2194
|
+
this->data(0x00);
|
2195
|
+
// COMMAND VCOM AND DATA INTERVAL SETTING
|
2196
|
+
this->command(0x50);
|
2197
|
+
this->data(0x11);
|
2198
|
+
this->data(0x07);
|
2199
|
+
// COMMAND TCON SETTING
|
2200
|
+
this->command(0x60);
|
2201
|
+
this->data(0x22);
|
2202
|
+
|
2203
|
+
this->command(0x82);
|
2204
|
+
this->data(0x08);
|
2205
|
+
this->command(0x30);
|
2206
|
+
this->data(0x06);
|
2207
|
+
|
2208
|
+
// COMMAND RESOLUTION SETTING
|
2209
|
+
this->command(0x65);
|
2210
|
+
this->data(0x00);
|
2211
|
+
this->data(0x00); // 800*480
|
2212
|
+
this->data(0x00);
|
2213
|
+
this->data(0x00);
|
2214
|
+
}
|
2215
|
+
void HOT WaveshareEPaper7P5InBV2::display() {
|
2216
|
+
// COMMAND DATA START TRANSMISSION 1 (B/W data)
|
2217
|
+
this->command(0x10);
|
2218
|
+
delay(2);
|
2219
|
+
this->start_data_();
|
2220
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
2221
|
+
this->end_data_();
|
2222
|
+
delay(2);
|
2223
|
+
|
2224
|
+
// COMMAND DATA START TRANSMISSION 2 (RED data)
|
2225
|
+
this->command(0x13);
|
2226
|
+
delay(2);
|
2227
|
+
this->start_data_();
|
2228
|
+
for (size_t i = 0; i < this->get_buffer_length_(); i++)
|
2229
|
+
this->write_byte(0x00);
|
2230
|
+
this->end_data_();
|
2231
|
+
delay(2);
|
2232
|
+
|
2233
|
+
// COMMAND DISPLAY REFRESH
|
2234
|
+
this->command(0x12);
|
2235
|
+
delay(100); // NOLINT
|
2236
|
+
this->wait_until_idle_();
|
2237
|
+
this->deep_sleep();
|
2238
|
+
}
|
2239
|
+
int WaveshareEPaper7P5InBV2::get_width_internal() { return 800; }
|
2240
|
+
int WaveshareEPaper7P5InBV2::get_height_internal() { return 480; }
|
2241
|
+
void WaveshareEPaper7P5InBV2::dump_config() {
|
2242
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
2243
|
+
ESP_LOGCONFIG(TAG, " Model: 7.5in-bv2");
|
2244
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
2245
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
2246
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
2247
|
+
LOG_UPDATE_INTERVAL(this);
|
2248
|
+
}
|
2249
|
+
|
2250
|
+
void WaveshareEPaper7P5InBV3::initialize() { this->init_display_(); }
|
2251
|
+
bool WaveshareEPaper7P5InBV3::wait_until_idle_() {
|
2252
|
+
if (this->busy_pin_ == nullptr) {
|
2253
|
+
return true;
|
2254
|
+
}
|
2255
|
+
|
2256
|
+
const uint32_t start = millis();
|
2257
|
+
while (this->busy_pin_->digital_read()) {
|
2258
|
+
this->command(0x71);
|
2259
|
+
if (millis() - start > this->idle_timeout_()) {
|
2260
|
+
ESP_LOGI(TAG, "Timeout while displaying image!");
|
2261
|
+
return false;
|
2262
|
+
}
|
2263
|
+
App.feed_wdt();
|
2264
|
+
delay(10);
|
2265
|
+
}
|
2266
|
+
delay(200); // NOLINT
|
2267
|
+
return true;
|
2268
|
+
};
|
2269
|
+
void WaveshareEPaper7P5InBV3::init_display_() {
|
2270
|
+
this->reset_();
|
2271
|
+
|
2272
|
+
// COMMAND POWER SETTING
|
2273
|
+
this->command(0x01);
|
2274
|
+
|
2275
|
+
// 1-0=11: internal power
|
2276
|
+
this->data(0x07);
|
2277
|
+
this->data(0x17); // VGH&VGL
|
2278
|
+
this->data(0x3F); // VSH
|
2279
|
+
this->data(0x26); // VSL
|
2280
|
+
this->data(0x11); // VSHR
|
2281
|
+
|
2282
|
+
// VCOM DC Setting
|
2283
|
+
this->command(0x82);
|
2284
|
+
this->data(0x24); // VCOM
|
2285
|
+
|
2286
|
+
// Booster Setting
|
2287
|
+
this->command(0x06);
|
2288
|
+
this->data(0x27);
|
2289
|
+
this->data(0x27);
|
2290
|
+
this->data(0x2F);
|
2291
|
+
this->data(0x17);
|
2292
|
+
|
2293
|
+
// POWER ON
|
2294
|
+
this->command(0x04);
|
2295
|
+
|
2296
|
+
delay(100); // NOLINT
|
2297
|
+
this->wait_until_idle_();
|
2298
|
+
// COMMAND PANEL SETTING
|
2299
|
+
this->command(0x00);
|
2300
|
+
this->data(0x3F); // KW-3f KWR-2F BWROTP 0f BWOTP 1f
|
2301
|
+
|
2302
|
+
// COMMAND RESOLUTION SETTING
|
2303
|
+
this->command(0x61);
|
2304
|
+
this->data(0x03); // source 800
|
2305
|
+
this->data(0x20);
|
2306
|
+
this->data(0x01); // gate 480
|
2307
|
+
this->data(0xE0);
|
2308
|
+
// COMMAND ...?
|
2309
|
+
this->command(0x15);
|
2310
|
+
this->data(0x00);
|
2311
|
+
// COMMAND VCOM AND DATA INTERVAL SETTING
|
2312
|
+
this->command(0x50);
|
2313
|
+
this->data(0x10);
|
2314
|
+
this->data(0x00);
|
2315
|
+
// COMMAND TCON SETTING
|
2316
|
+
this->command(0x60);
|
2317
|
+
this->data(0x22);
|
2318
|
+
// Resolution setting
|
2319
|
+
this->command(0x65);
|
2320
|
+
this->data(0x00);
|
2321
|
+
this->data(0x00); // 800*480
|
2322
|
+
this->data(0x00);
|
2323
|
+
this->data(0x00);
|
2324
|
+
|
2325
|
+
uint8_t lut_vcom_7_i_n5_v2[] = {
|
2326
|
+
0x0, 0xF, 0xF, 0x0, 0x0, 0x1, 0x0, 0xF, 0x1, 0xF, 0x1, 0x2, 0x0, 0xF, 0xF, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0,
|
2327
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
2328
|
+
};
|
2329
|
+
|
2330
|
+
uint8_t lut_ww_7_i_n5_v2[] = {
|
2331
|
+
0x10, 0xF, 0xF, 0x0, 0x0, 0x1, 0x84, 0xF, 0x1, 0xF, 0x1, 0x2, 0x20, 0xF, 0xF, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0,
|
2332
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
2333
|
+
};
|
2334
|
+
|
2335
|
+
uint8_t lut_bw_7_i_n5_v2[] = {
|
2336
|
+
0x10, 0xF, 0xF, 0x0, 0x0, 0x1, 0x84, 0xF, 0x1, 0xF, 0x1, 0x2, 0x20, 0xF, 0xF, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0,
|
2337
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
2338
|
+
};
|
2339
|
+
|
2340
|
+
uint8_t lut_wb_7_i_n5_v2[] = {
|
2341
|
+
0x80, 0xF, 0xF, 0x0, 0x0, 0x3, 0x84, 0xF, 0x1, 0xF, 0x1, 0x4, 0x40, 0xF, 0xF, 0x0, 0x0, 0x3, 0x0, 0x0, 0x0,
|
2342
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
2343
|
+
};
|
2344
|
+
|
2345
|
+
uint8_t lut_bb_7_i_n5_v2[] = {
|
2346
|
+
0x80, 0xF, 0xF, 0x0, 0x0, 0x1, 0x84, 0xF, 0x1, 0xF, 0x1, 0x2, 0x40, 0xF, 0xF, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0,
|
2347
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
2348
|
+
};
|
2349
|
+
|
2350
|
+
uint8_t count;
|
2351
|
+
this->command(0x20); // VCOM
|
2352
|
+
for (count = 0; count < 42; count++)
|
2353
|
+
this->data(lut_vcom_7_i_n5_v2[count]);
|
2354
|
+
|
2355
|
+
this->command(0x21); // LUTBW
|
2356
|
+
for (count = 0; count < 42; count++)
|
2357
|
+
this->data(lut_ww_7_i_n5_v2[count]);
|
2358
|
+
|
2359
|
+
this->command(0x22); // LUTBW
|
2360
|
+
for (count = 0; count < 42; count++)
|
2361
|
+
this->data(lut_bw_7_i_n5_v2[count]);
|
2362
|
+
|
2363
|
+
this->command(0x23); // LUTWB
|
2364
|
+
for (count = 0; count < 42; count++)
|
2365
|
+
this->data(lut_wb_7_i_n5_v2[count]);
|
2366
|
+
|
2367
|
+
this->command(0x24); // LUTBB
|
2368
|
+
for (count = 0; count < 42; count++)
|
2369
|
+
this->data(lut_bb_7_i_n5_v2[count]);
|
2370
|
+
};
|
2371
|
+
void HOT WaveshareEPaper7P5InBV3::display() {
|
2372
|
+
this->init_display_();
|
2373
|
+
uint32_t buf_len = this->get_buffer_length_();
|
2374
|
+
|
2375
|
+
this->command(0x10);
|
2376
|
+
for (uint32_t i = 0; i < buf_len; i++) {
|
2377
|
+
this->data(0xFF);
|
2378
|
+
}
|
2379
|
+
|
2380
|
+
this->command(0x13); // Start Transmission
|
2381
|
+
delay(2);
|
2382
|
+
for (uint32_t i = 0; i < buf_len; i++) {
|
2383
|
+
this->data(~this->buffer_[i]);
|
2384
|
+
}
|
2385
|
+
|
2386
|
+
this->command(0x12); // Display Refresh
|
2387
|
+
delay(100); // NOLINT
|
2388
|
+
this->wait_until_idle_();
|
2389
|
+
this->deep_sleep();
|
2390
|
+
}
|
2391
|
+
int WaveshareEPaper7P5InBV3::get_width_internal() { return 800; }
|
2392
|
+
int WaveshareEPaper7P5InBV3::get_height_internal() { return 480; }
|
2393
|
+
void WaveshareEPaper7P5InBV3::dump_config() {
|
2394
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
2395
|
+
ESP_LOGCONFIG(TAG, " Model: 7.5in-bv3");
|
2396
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
2397
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
2398
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
2399
|
+
LOG_UPDATE_INTERVAL(this);
|
2400
|
+
}
|
2401
|
+
|
2402
|
+
void WaveshareEPaper7P5InBV3BWR::initialize() { this->init_display_(); }
|
2403
|
+
bool WaveshareEPaper7P5InBV3BWR::wait_until_idle_() {
|
2404
|
+
if (this->busy_pin_ == nullptr) {
|
2405
|
+
return true;
|
2406
|
+
}
|
2407
|
+
|
2408
|
+
const uint32_t start = millis();
|
2409
|
+
while (this->busy_pin_->digital_read()) {
|
2410
|
+
this->command(0x71);
|
2411
|
+
if (millis() - start > this->idle_timeout_()) {
|
2412
|
+
ESP_LOGI(TAG, "Timeout while displaying image!");
|
2413
|
+
return false;
|
2414
|
+
}
|
2415
|
+
App.feed_wdt();
|
2416
|
+
delay(10);
|
2417
|
+
}
|
2418
|
+
delay(200); // NOLINT
|
2419
|
+
return true;
|
2420
|
+
};
|
2421
|
+
void WaveshareEPaper7P5InBV3BWR::init_display_() {
|
2422
|
+
this->reset_();
|
2423
|
+
|
2424
|
+
// COMMAND POWER SETTING
|
2425
|
+
this->command(0x01);
|
2426
|
+
|
2427
|
+
// 1-0=11: internal power
|
2428
|
+
this->data(0x07);
|
2429
|
+
this->data(0x17); // VGH&VGL
|
2430
|
+
this->data(0x3F); // VSH
|
2431
|
+
this->data(0x26); // VSL
|
2432
|
+
this->data(0x11); // VSHR
|
2433
|
+
|
2434
|
+
// VCOM DC Setting
|
2435
|
+
this->command(0x82);
|
2436
|
+
this->data(0x24); // VCOM
|
2437
|
+
|
2438
|
+
// Booster Setting
|
2439
|
+
this->command(0x06);
|
2440
|
+
this->data(0x27);
|
2441
|
+
this->data(0x27);
|
2442
|
+
this->data(0x2F);
|
2443
|
+
this->data(0x17);
|
2444
|
+
|
2445
|
+
// POWER ON
|
2446
|
+
this->command(0x04);
|
2447
|
+
|
2448
|
+
delay(100); // NOLINT
|
2449
|
+
this->wait_until_idle_();
|
2450
|
+
// COMMAND PANEL SETTING
|
2451
|
+
this->command(0x00);
|
2452
|
+
this->data(0x0F); // KW-3f KWR-2F BWROTP 0f BWOTP 1f
|
2453
|
+
|
2454
|
+
// COMMAND RESOLUTION SETTING
|
2455
|
+
this->command(0x61);
|
2456
|
+
this->data(0x03); // source 800
|
2457
|
+
this->data(0x20);
|
2458
|
+
this->data(0x01); // gate 480
|
2459
|
+
this->data(0xE0);
|
2460
|
+
// COMMAND ...?
|
2461
|
+
this->command(0x15);
|
2462
|
+
this->data(0x00);
|
2463
|
+
// COMMAND VCOM AND DATA INTERVAL SETTING
|
2464
|
+
this->command(0x50);
|
2465
|
+
this->data(0x20);
|
2466
|
+
this->data(0x00);
|
2467
|
+
// COMMAND TCON SETTING
|
2468
|
+
this->command(0x60);
|
2469
|
+
this->data(0x22);
|
2470
|
+
// Resolution setting
|
2471
|
+
this->command(0x65);
|
2472
|
+
this->data(0x00);
|
2473
|
+
this->data(0x00); // 800*480
|
2474
|
+
this->data(0x00);
|
2475
|
+
this->data(0x00);
|
2476
|
+
};
|
2477
|
+
void HOT WaveshareEPaper7P5InBV3BWR::display() {
|
2478
|
+
this->init_display_();
|
2479
|
+
const uint32_t buf_len = this->get_buffer_length_() / 2u;
|
2480
|
+
|
2481
|
+
this->command(0x10); // Send BW data Transmission
|
2482
|
+
delay(2);
|
2483
|
+
for (uint32_t i = 0; i < buf_len; i++) {
|
2484
|
+
this->data(this->buffer_[i]);
|
2485
|
+
}
|
2486
|
+
|
2487
|
+
this->command(0x13); // Send red data Transmission
|
2488
|
+
delay(2);
|
2489
|
+
for (uint32_t i = 0; i < buf_len; i++) {
|
2490
|
+
this->data(this->buffer_[i + buf_len]);
|
2491
|
+
}
|
2492
|
+
|
2493
|
+
this->command(0x12); // Display Refresh
|
2494
|
+
delay(100); // NOLINT
|
2495
|
+
this->wait_until_idle_();
|
2496
|
+
this->deep_sleep();
|
2497
|
+
}
|
2498
|
+
int WaveshareEPaper7P5InBV3BWR::get_width_internal() { return 800; }
|
2499
|
+
int WaveshareEPaper7P5InBV3BWR::get_height_internal() { return 480; }
|
2500
|
+
void WaveshareEPaper7P5InBV3BWR::dump_config() {
|
2501
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
2502
|
+
ESP_LOGCONFIG(TAG, " Model: 7.5in-bv3 BWR-Mode");
|
2503
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
2504
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
2505
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
2506
|
+
LOG_UPDATE_INTERVAL(this);
|
2507
|
+
}
|
2508
|
+
|
2509
|
+
void WaveshareEPaper7P5In::initialize() {
|
2510
|
+
// COMMAND POWER SETTING
|
2511
|
+
this->command(0x01);
|
2512
|
+
this->data(0x37);
|
2513
|
+
this->data(0x00);
|
2514
|
+
// COMMAND PANEL SETTING
|
2515
|
+
this->command(0x00);
|
2516
|
+
this->data(0xCF);
|
2517
|
+
this->data(0x0B);
|
2518
|
+
// COMMAND BOOSTER SOFT START
|
2519
|
+
this->command(0x06);
|
2520
|
+
this->data(0xC7);
|
2521
|
+
this->data(0xCC);
|
2522
|
+
this->data(0x28);
|
2523
|
+
// COMMAND POWER ON
|
2524
|
+
this->command(0x04);
|
2525
|
+
this->wait_until_idle_();
|
2526
|
+
delay(10);
|
2527
|
+
// COMMAND PLL CONTROL
|
2528
|
+
this->command(0x30);
|
2529
|
+
this->data(0x3C);
|
2530
|
+
// COMMAND TEMPERATURE SENSOR CALIBRATION
|
2531
|
+
this->command(0x41);
|
2532
|
+
this->data(0x00);
|
2533
|
+
// COMMAND VCOM AND DATA INTERVAL SETTING
|
2534
|
+
this->command(0x50);
|
2535
|
+
this->data(0x77);
|
2536
|
+
// COMMAND TCON SETTING
|
2537
|
+
this->command(0x60);
|
2538
|
+
this->data(0x22);
|
2539
|
+
// COMMAND RESOLUTION SETTING
|
2540
|
+
this->command(0x61);
|
2541
|
+
this->data(0x02);
|
2542
|
+
this->data(0x80);
|
2543
|
+
this->data(0x01);
|
2544
|
+
this->data(0x80);
|
2545
|
+
// COMMAND VCM DC SETTING REGISTER
|
2546
|
+
this->command(0x82);
|
2547
|
+
this->data(0x1E);
|
2548
|
+
this->command(0xE5);
|
2549
|
+
this->data(0x03);
|
2550
|
+
}
|
2551
|
+
void HOT WaveshareEPaper7P5In::display() {
|
2552
|
+
// COMMAND DATA START TRANSMISSION 1
|
2553
|
+
this->command(0x10);
|
2554
|
+
this->start_data_();
|
2555
|
+
for (size_t i = 0; i < this->get_buffer_length_(); i++) {
|
2556
|
+
uint8_t temp1 = this->buffer_[i];
|
2557
|
+
for (uint8_t j = 0; j < 8; j++) {
|
2558
|
+
uint8_t temp2;
|
2559
|
+
if (temp1 & 0x80) {
|
2560
|
+
temp2 = 0x03;
|
2561
|
+
} else {
|
2562
|
+
temp2 = 0x00;
|
2563
|
+
}
|
2564
|
+
temp2 <<= 4;
|
2565
|
+
temp1 <<= 1;
|
2566
|
+
j++;
|
2567
|
+
if (temp1 & 0x80) {
|
2568
|
+
temp2 |= 0x03;
|
2569
|
+
} else {
|
2570
|
+
temp2 |= 0x00;
|
2571
|
+
}
|
2572
|
+
temp1 <<= 1;
|
2573
|
+
this->write_byte(temp2);
|
2574
|
+
}
|
2575
|
+
App.feed_wdt();
|
2576
|
+
}
|
2577
|
+
this->end_data_();
|
2578
|
+
// COMMAND DISPLAY REFRESH
|
2579
|
+
this->command(0x12);
|
2580
|
+
}
|
2581
|
+
int WaveshareEPaper7P5In::get_width_internal() { return 640; }
|
2582
|
+
int WaveshareEPaper7P5In::get_height_internal() { return 384; }
|
2583
|
+
void WaveshareEPaper7P5In::dump_config() {
|
2584
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
2585
|
+
ESP_LOGCONFIG(TAG, " Model: 7.5in");
|
2586
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
2587
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
2588
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
2589
|
+
LOG_UPDATE_INTERVAL(this);
|
2590
|
+
}
|
2591
|
+
bool WaveshareEPaper7P5InV2::wait_until_idle_() {
|
2592
|
+
if (this->busy_pin_ == nullptr) {
|
2593
|
+
return true;
|
2594
|
+
}
|
2595
|
+
|
2596
|
+
const uint32_t start = millis();
|
2597
|
+
while (this->busy_pin_->digital_read()) {
|
2598
|
+
this->command(0x71);
|
2599
|
+
if (millis() - start > this->idle_timeout_()) {
|
2600
|
+
ESP_LOGE(TAG, "Timeout while displaying image!");
|
2601
|
+
return false;
|
2602
|
+
}
|
2603
|
+
App.feed_wdt();
|
2604
|
+
delay(10);
|
2605
|
+
}
|
2606
|
+
return true;
|
2607
|
+
}
|
2608
|
+
void WaveshareEPaper7P5InV2::initialize() {
|
2609
|
+
// COMMAND POWER SETTING
|
2610
|
+
this->command(0x01);
|
2611
|
+
this->data(0x07);
|
2612
|
+
this->data(0x07);
|
2613
|
+
this->data(0x3f);
|
2614
|
+
this->data(0x3f);
|
2615
|
+
|
2616
|
+
// We don't want the display to be powered at this point
|
2617
|
+
|
2618
|
+
delay(100); // NOLINT
|
2619
|
+
this->wait_until_idle_();
|
2620
|
+
|
2621
|
+
// COMMAND VCOM AND DATA INTERVAL SETTING
|
2622
|
+
this->command(0x50);
|
2623
|
+
this->data(0x10);
|
2624
|
+
this->data(0x07);
|
2625
|
+
|
2626
|
+
// COMMAND TCON SETTING
|
2627
|
+
this->command(0x60);
|
2628
|
+
this->data(0x22);
|
2629
|
+
|
2630
|
+
// COMMAND PANEL SETTING
|
2631
|
+
this->command(0x00);
|
2632
|
+
this->data(0x1F);
|
2633
|
+
|
2634
|
+
// COMMAND RESOLUTION SETTING
|
2635
|
+
this->command(0x61);
|
2636
|
+
this->data(0x03);
|
2637
|
+
this->data(0x20);
|
2638
|
+
this->data(0x01);
|
2639
|
+
this->data(0xE0);
|
2640
|
+
|
2641
|
+
// COMMAND DUAL SPI MM_EN, DUSPI_EN
|
2642
|
+
this->command(0x15);
|
2643
|
+
this->data(0x00);
|
2644
|
+
|
2645
|
+
// COMMAND POWER DRIVER HAT DOWN
|
2646
|
+
// This command will turn off booster, controller, source driver, gate driver, VCOM, and
|
2647
|
+
// temperature sensor, but register data will be kept until VDD turned OFF or Deep Sleep Mode.
|
2648
|
+
// Source/Gate/Border/VCOM will be released to floating.
|
2649
|
+
this->command(0x02);
|
2650
|
+
}
|
2651
|
+
void HOT WaveshareEPaper7P5InV2::display() {
|
2652
|
+
uint32_t buf_len = this->get_buffer_length_();
|
2653
|
+
|
2654
|
+
// COMMAND POWER ON
|
2655
|
+
ESP_LOGI(TAG, "Power on the display and hat");
|
2656
|
+
|
2657
|
+
// This command will turn on booster, controller, regulators, and temperature sensor will be
|
2658
|
+
// activated for one-time sensing before enabling booster. When all voltages are ready, the
|
2659
|
+
// BUSY_N signal will return to high.
|
2660
|
+
this->command(0x04);
|
2661
|
+
delay(200); // NOLINT
|
2662
|
+
this->wait_until_idle_();
|
2663
|
+
|
2664
|
+
// COMMAND DATA START TRANSMISSION NEW DATA
|
2665
|
+
this->command(0x13);
|
2666
|
+
delay(2);
|
2667
|
+
for (uint32_t i = 0; i < buf_len; i++) {
|
2668
|
+
this->data(~(this->buffer_[i]));
|
2669
|
+
}
|
2670
|
+
|
2671
|
+
delay(100); // NOLINT
|
2672
|
+
this->wait_until_idle_();
|
2673
|
+
|
2674
|
+
// COMMAND DISPLAY REFRESH
|
2675
|
+
this->command(0x12);
|
2676
|
+
delay(100); // NOLINT
|
2677
|
+
this->wait_until_idle_();
|
2678
|
+
|
2679
|
+
ESP_LOGV(TAG, "Before command(0x02) (>> power off)");
|
2680
|
+
this->command(0x02);
|
2681
|
+
this->wait_until_idle_();
|
2682
|
+
ESP_LOGV(TAG, "After command(0x02) (>> power off)");
|
2683
|
+
}
|
2684
|
+
|
2685
|
+
int WaveshareEPaper7P5InV2::get_width_internal() { return 800; }
|
2686
|
+
int WaveshareEPaper7P5InV2::get_height_internal() { return 480; }
|
2687
|
+
uint32_t WaveshareEPaper7P5InV2::idle_timeout_() { return 10000; }
|
2688
|
+
void WaveshareEPaper7P5InV2::dump_config() {
|
2689
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
2690
|
+
ESP_LOGCONFIG(TAG, " Model: 7.5inV2rev2");
|
2691
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
2692
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
2693
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
2694
|
+
LOG_UPDATE_INTERVAL(this);
|
2695
|
+
}
|
2696
|
+
|
2697
|
+
/* 7.50inV2alt */
|
2698
|
+
bool WaveshareEPaper7P5InV2alt::wait_until_idle_() {
|
2699
|
+
if (this->busy_pin_ == nullptr) {
|
2700
|
+
return true;
|
2701
|
+
}
|
2702
|
+
|
2703
|
+
const uint32_t start = millis();
|
2704
|
+
while (this->busy_pin_->digital_read()) {
|
2705
|
+
this->command(0x71);
|
2706
|
+
if (millis() - start > this->idle_timeout_()) {
|
2707
|
+
ESP_LOGI(TAG, "Timeout while displaying image!");
|
2708
|
+
return false;
|
2709
|
+
}
|
2710
|
+
delay(10);
|
2711
|
+
}
|
2712
|
+
return true;
|
2713
|
+
}
|
2714
|
+
|
2715
|
+
void WaveshareEPaper7P5InV2alt::initialize() {
|
2716
|
+
this->reset_();
|
2717
|
+
|
2718
|
+
// COMMAND POWER SETTING
|
2719
|
+
this->command(0x01);
|
2720
|
+
|
2721
|
+
// 1-0=11: internal power
|
2722
|
+
this->data(0x07);
|
2723
|
+
this->data(0x17); // VGH&VGL
|
2724
|
+
this->data(0x3F); // VSH
|
2725
|
+
this->data(0x26); // VSL
|
2726
|
+
this->data(0x11); // VSHR
|
2727
|
+
|
2728
|
+
// VCOM DC Setting
|
2729
|
+
this->command(0x82);
|
2730
|
+
this->data(0x24); // VCOM
|
2731
|
+
|
2732
|
+
// Booster Setting
|
2733
|
+
this->command(0x06);
|
2734
|
+
this->data(0x27);
|
2735
|
+
this->data(0x27);
|
2736
|
+
this->data(0x2F);
|
2737
|
+
this->data(0x17);
|
2738
|
+
|
2739
|
+
// POWER ON
|
2740
|
+
this->command(0x04);
|
2741
|
+
|
2742
|
+
delay(100); // NOLINT
|
2743
|
+
this->wait_until_idle_();
|
2744
|
+
// COMMAND PANEL SETTING
|
2745
|
+
this->command(0x00);
|
2746
|
+
this->data(0x3F); // KW-3f KWR-2F BWROTP 0f BWOTP 1f
|
2747
|
+
|
2748
|
+
// COMMAND RESOLUTION SETTING
|
2749
|
+
this->command(0x61);
|
2750
|
+
this->data(0x03); // source 800
|
2751
|
+
this->data(0x20);
|
2752
|
+
this->data(0x01); // gate 480
|
2753
|
+
this->data(0xE0);
|
2754
|
+
// COMMAND ...?
|
2755
|
+
this->command(0x15);
|
2756
|
+
this->data(0x00);
|
2757
|
+
// COMMAND VCOM AND DATA INTERVAL SETTING
|
2758
|
+
this->command(0x50);
|
2759
|
+
this->data(0x10);
|
2760
|
+
this->data(0x00);
|
2761
|
+
// COMMAND TCON SETTING
|
2762
|
+
this->command(0x60);
|
2763
|
+
this->data(0x22);
|
2764
|
+
// Resolution setting
|
2765
|
+
this->command(0x65);
|
2766
|
+
this->data(0x00);
|
2767
|
+
this->data(0x00); // 800*480
|
2768
|
+
this->data(0x00);
|
2769
|
+
this->data(0x00);
|
2770
|
+
|
2771
|
+
this->wait_until_idle_();
|
2772
|
+
|
2773
|
+
uint8_t lut_vcom_7_i_n5_v2[] = {
|
2774
|
+
0x0, 0xF, 0xF, 0x0, 0x0, 0x1, 0x0, 0xF, 0x1, 0xF, 0x1, 0x2, 0x0, 0xF, 0xF, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0,
|
2775
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
2776
|
+
};
|
2777
|
+
|
2778
|
+
uint8_t lut_ww_7_i_n5_v2[] = {
|
2779
|
+
0x10, 0xF, 0xF, 0x0, 0x0, 0x1, 0x84, 0xF, 0x1, 0xF, 0x1, 0x2, 0x20, 0xF, 0xF, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0,
|
2780
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
2781
|
+
};
|
2782
|
+
|
2783
|
+
uint8_t lut_bw_7_i_n5_v2[] = {
|
2784
|
+
0x10, 0xF, 0xF, 0x0, 0x0, 0x1, 0x84, 0xF, 0x1, 0xF, 0x1, 0x2, 0x20, 0xF, 0xF, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0,
|
2785
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
2786
|
+
};
|
2787
|
+
|
2788
|
+
uint8_t lut_wb_7_i_n5_v2[] = {
|
2789
|
+
0x80, 0xF, 0xF, 0x0, 0x0, 0x3, 0x84, 0xF, 0x1, 0xF, 0x1, 0x4, 0x40, 0xF, 0xF, 0x0, 0x0, 0x3, 0x0, 0x0, 0x0,
|
2790
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
2791
|
+
};
|
2792
|
+
|
2793
|
+
uint8_t lut_bb_7_i_n5_v2[] = {
|
2794
|
+
0x80, 0xF, 0xF, 0x0, 0x0, 0x1, 0x84, 0xF, 0x1, 0xF, 0x1, 0x2, 0x40, 0xF, 0xF, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0,
|
2795
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
2796
|
+
};
|
2797
|
+
|
2798
|
+
uint8_t count;
|
2799
|
+
this->command(0x20); // VCOM
|
2800
|
+
for (count = 0; count < 42; count++)
|
2801
|
+
this->data(lut_vcom_7_i_n5_v2[count]);
|
2802
|
+
|
2803
|
+
this->command(0x21); // LUTBW
|
2804
|
+
for (count = 0; count < 42; count++)
|
2805
|
+
this->data(lut_ww_7_i_n5_v2[count]);
|
2806
|
+
|
2807
|
+
this->command(0x22); // LUTBW
|
2808
|
+
for (count = 0; count < 42; count++)
|
2809
|
+
this->data(lut_bw_7_i_n5_v2[count]);
|
2810
|
+
|
2811
|
+
this->command(0x23); // LUTWB
|
2812
|
+
for (count = 0; count < 42; count++)
|
2813
|
+
this->data(lut_wb_7_i_n5_v2[count]);
|
2814
|
+
|
2815
|
+
this->command(0x24); // LUTBB
|
2816
|
+
for (count = 0; count < 42; count++)
|
2817
|
+
this->data(lut_bb_7_i_n5_v2[count]);
|
2818
|
+
}
|
2819
|
+
|
2820
|
+
void WaveshareEPaper7P5InV2alt::dump_config() {
|
2821
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
2822
|
+
ESP_LOGCONFIG(TAG, " Model: 7.5inV2");
|
2823
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
2824
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
2825
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
2826
|
+
LOG_UPDATE_INTERVAL(this);
|
2827
|
+
}
|
2828
|
+
|
2829
|
+
/* 7.50in-bc */
|
2830
|
+
void WaveshareEPaper7P5InBC::initialize() {
|
2831
|
+
/* The command sequence is similar to the 7P5In display but differs in subtle ways
|
2832
|
+
to allow for faster updates. */
|
2833
|
+
// COMMAND POWER SETTING
|
2834
|
+
this->command(0x01);
|
2835
|
+
this->data(0x37);
|
2836
|
+
this->data(0x00);
|
2837
|
+
|
2838
|
+
// COMMAND PANEL SETTING
|
2839
|
+
this->command(0x00);
|
2840
|
+
this->data(0xCF);
|
2841
|
+
this->data(0x08);
|
2842
|
+
|
2843
|
+
// COMMAND PLL CONTROL
|
2844
|
+
this->command(0x30);
|
2845
|
+
this->data(0x3A);
|
2846
|
+
|
2847
|
+
// COMMAND VCM_DC_SETTING: all temperature range
|
2848
|
+
this->command(0x82);
|
2849
|
+
this->data(0x28);
|
2850
|
+
|
2851
|
+
// COMMAND BOOSTER SOFT START
|
2852
|
+
this->command(0x06);
|
2853
|
+
this->data(0xC7);
|
2854
|
+
this->data(0xCC);
|
2855
|
+
this->data(0x15);
|
2856
|
+
|
2857
|
+
// COMMAND VCOM AND DATA INTERVAL SETTING
|
2858
|
+
this->command(0x50);
|
2859
|
+
this->data(0x77);
|
2860
|
+
|
2861
|
+
// COMMAND TCON SETTING
|
2862
|
+
this->command(0x60);
|
2863
|
+
this->data(0x22);
|
2864
|
+
|
2865
|
+
// COMMAND FLASH CONTROL
|
2866
|
+
this->command(0x65);
|
2867
|
+
this->data(0x00);
|
2868
|
+
|
2869
|
+
// COMMAND RESOLUTION SETTING
|
2870
|
+
this->command(0x61);
|
2871
|
+
this->data(0x02); // 640 >> 8
|
2872
|
+
this->data(0x80);
|
2873
|
+
this->data(0x01); // 384 >> 8
|
2874
|
+
this->data(0x80);
|
2875
|
+
|
2876
|
+
// COMMAND FLASH MODE
|
2877
|
+
this->command(0xE5);
|
2878
|
+
this->data(0x03);
|
2879
|
+
}
|
2880
|
+
|
2881
|
+
void HOT WaveshareEPaper7P5InBC::display() {
|
2882
|
+
// COMMAND DATA START TRANSMISSION 1
|
2883
|
+
this->command(0x10);
|
2884
|
+
this->start_data_();
|
2885
|
+
|
2886
|
+
for (size_t i = 0; i < this->get_buffer_length_(); i++) {
|
2887
|
+
// A line of eight source pixels (each a bit in this byte)
|
2888
|
+
uint8_t eight_pixels = this->buffer_[i];
|
2889
|
+
|
2890
|
+
for (uint8_t j = 0; j < 8; j += 2) {
|
2891
|
+
/* For bichromatic displays, each byte represents two pixels. Each nibble encodes a pixel: 0=white, 3=black,
|
2892
|
+
4=color. Therefore, e.g. 0x44 = two adjacent color pixels, 0x33 is two adjacent black pixels, etc. If you want
|
2893
|
+
to draw using the color pixels, change '0x30' with '0x40' and '0x03' with '0x04' below. */
|
2894
|
+
uint8_t left_nibble = (eight_pixels & 0x80) ? 0x30 : 0x00;
|
2895
|
+
eight_pixels <<= 1;
|
2896
|
+
uint8_t right_nibble = (eight_pixels & 0x80) ? 0x03 : 0x00;
|
2897
|
+
eight_pixels <<= 1;
|
2898
|
+
this->write_byte(left_nibble | right_nibble);
|
2899
|
+
}
|
2900
|
+
App.feed_wdt();
|
2901
|
+
}
|
2902
|
+
this->end_data_();
|
2903
|
+
|
2904
|
+
// Unlike the 7P5In display, we send the "power on" command here rather than during initialization
|
2905
|
+
// COMMAND POWER ON
|
2906
|
+
this->command(0x04);
|
2907
|
+
|
2908
|
+
// COMMAND DISPLAY REFRESH
|
2909
|
+
this->command(0x12);
|
2910
|
+
}
|
2911
|
+
|
2912
|
+
int WaveshareEPaper7P5InBC::get_width_internal() { return 640; }
|
2913
|
+
|
2914
|
+
int WaveshareEPaper7P5InBC::get_height_internal() { return 384; }
|
2915
|
+
|
2916
|
+
void WaveshareEPaper7P5InBC::dump_config() {
|
2917
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
2918
|
+
ESP_LOGCONFIG(TAG, " Model: 7.5in-bc");
|
2919
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
2920
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
2921
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
2922
|
+
LOG_UPDATE_INTERVAL(this);
|
2923
|
+
}
|
2924
|
+
|
2925
|
+
void WaveshareEPaper7P5InHDB::initialize() {
|
2926
|
+
this->command(0x12); // SWRESET
|
2927
|
+
|
2928
|
+
this->wait_until_idle_(); // waiting for the electronic paper IC to release the idle signal
|
2929
|
+
|
2930
|
+
this->command(0x46); // Auto Write RAM
|
2931
|
+
this->data(0xF7);
|
2932
|
+
|
2933
|
+
this->wait_until_idle_(); // waiting for the electronic paper IC to release the idle signal
|
2934
|
+
|
2935
|
+
this->command(0x47); // Auto Write RAM
|
2936
|
+
this->data(0xF7);
|
2937
|
+
|
2938
|
+
this->wait_until_idle_(); // waiting for the electronic paper IC to release the idle signal
|
2939
|
+
|
2940
|
+
this->command(0x0C); // Soft start setting
|
2941
|
+
this->data(0xAE);
|
2942
|
+
this->data(0xC7);
|
2943
|
+
this->data(0xC3);
|
2944
|
+
this->data(0xC0);
|
2945
|
+
this->data(0x40);
|
2946
|
+
|
2947
|
+
this->command(0x01); // Set MUX as 527
|
2948
|
+
this->data(0xAF);
|
2949
|
+
this->data(0x02);
|
2950
|
+
this->data(0x01);
|
2951
|
+
|
2952
|
+
this->command(0x11); // Data entry mode
|
2953
|
+
this->data(0x01);
|
2954
|
+
|
2955
|
+
this->command(0x44);
|
2956
|
+
this->data(0x00); // RAM x address start at 0
|
2957
|
+
this->data(0x00);
|
2958
|
+
this->data(0x6F); // RAM x address end at 36Fh -> 879
|
2959
|
+
this->data(0x03);
|
2960
|
+
|
2961
|
+
this->command(0x45);
|
2962
|
+
this->data(0xAF); // RAM y address start at 20Fh;
|
2963
|
+
this->data(0x02);
|
2964
|
+
this->data(0x00); // RAM y address end at 00h;
|
2965
|
+
this->data(0x00);
|
2966
|
+
|
2967
|
+
this->command(0x3C); // VBD
|
2968
|
+
this->data(0x01); // LUT1, for white
|
2969
|
+
|
2970
|
+
this->command(0x18);
|
2971
|
+
this->data(0X80);
|
2972
|
+
|
2973
|
+
this->command(0x22);
|
2974
|
+
this->data(0XB1); // Load Temperature and waveform setting.
|
2975
|
+
|
2976
|
+
this->command(0x20);
|
2977
|
+
|
2978
|
+
this->wait_until_idle_(); // waiting for the electronic paper IC to release the idle signal
|
2979
|
+
|
2980
|
+
this->command(0x4E);
|
2981
|
+
this->data(0x00);
|
2982
|
+
this->data(0x00);
|
2983
|
+
|
2984
|
+
this->command(0x4F);
|
2985
|
+
this->data(0xAF);
|
2986
|
+
this->data(0x02);
|
2987
|
+
}
|
2988
|
+
|
2989
|
+
void HOT WaveshareEPaper7P5InHDB::display() {
|
2990
|
+
this->command(0x4F);
|
2991
|
+
this->data(0xAf);
|
2992
|
+
this->data(0x02);
|
2993
|
+
|
2994
|
+
// BLACK
|
2995
|
+
this->command(0x24);
|
2996
|
+
this->start_data_();
|
2997
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
2998
|
+
this->end_data_();
|
2999
|
+
|
3000
|
+
// RED
|
3001
|
+
this->command(0x26);
|
3002
|
+
this->start_data_();
|
3003
|
+
for (size_t i = 0; i < this->get_buffer_length_(); i++)
|
3004
|
+
this->write_byte(0x00);
|
3005
|
+
this->end_data_();
|
3006
|
+
|
3007
|
+
this->command(0x22);
|
3008
|
+
this->data(0xC7);
|
3009
|
+
this->command(0x20);
|
3010
|
+
delay(100); // NOLINT
|
3011
|
+
}
|
3012
|
+
|
3013
|
+
int WaveshareEPaper7P5InHDB::get_width_internal() { return 880; }
|
3014
|
+
|
3015
|
+
int WaveshareEPaper7P5InHDB::get_height_internal() { return 528; }
|
3016
|
+
|
3017
|
+
void WaveshareEPaper7P5InHDB::dump_config() {
|
3018
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
3019
|
+
ESP_LOGCONFIG(TAG, " Model: 7.5in-HD-b");
|
3020
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
3021
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
3022
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
3023
|
+
LOG_UPDATE_INTERVAL(this);
|
3024
|
+
}
|
3025
|
+
|
3026
|
+
static const uint8_t LUT_SIZE_TTGO_DKE_PART = 153;
|
3027
|
+
|
3028
|
+
static const uint8_t PART_UPDATE_LUT_TTGO_DKE[LUT_SIZE_TTGO_DKE_PART] = {
|
3029
|
+
0x0, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
3030
|
+
0x0, 0x0, 0x0, 0x0, 0x40, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80, 0x0, 0x0,
|
3031
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
3032
|
+
0xF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
3033
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
3034
|
+
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
3035
|
+
0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
3036
|
+
0x0, 0x0, 0x0, 0x0, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x0, 0x0, 0x0,
|
3037
|
+
// 0x22, 0x17, 0x41, 0x0, 0x32, 0x32
|
3038
|
+
};
|
3039
|
+
|
3040
|
+
void WaveshareEPaper2P13InDKE::initialize() {}
|
3041
|
+
void HOT WaveshareEPaper2P13InDKE::display() {
|
3042
|
+
bool partial = this->at_update_ != 0;
|
3043
|
+
this->at_update_ = (this->at_update_ + 1) % this->full_update_every_;
|
3044
|
+
|
3045
|
+
if (partial) {
|
3046
|
+
ESP_LOGI(TAG, "Performing partial e-paper update.");
|
3047
|
+
} else {
|
3048
|
+
ESP_LOGI(TAG, "Performing full e-paper update.");
|
3049
|
+
}
|
3050
|
+
|
3051
|
+
// start and set up data format
|
3052
|
+
this->command(0x12);
|
3053
|
+
this->wait_until_idle_();
|
3054
|
+
|
3055
|
+
this->command(0x11);
|
3056
|
+
this->data(0x03);
|
3057
|
+
this->command(0x44);
|
3058
|
+
this->data(1);
|
3059
|
+
this->data(this->get_width_internal() / 8);
|
3060
|
+
this->command(0x45);
|
3061
|
+
this->data(0);
|
3062
|
+
this->data(0);
|
3063
|
+
this->data(this->get_height_internal());
|
3064
|
+
this->data(0);
|
3065
|
+
this->command(0x4e);
|
3066
|
+
this->data(1);
|
3067
|
+
this->command(0x4f);
|
3068
|
+
this->data(0);
|
3069
|
+
this->data(0);
|
3070
|
+
|
3071
|
+
if (!partial) {
|
3072
|
+
// send data
|
3073
|
+
this->command(0x24);
|
3074
|
+
this->start_data_();
|
3075
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
3076
|
+
this->end_data_();
|
3077
|
+
|
3078
|
+
// commit
|
3079
|
+
this->command(0x20);
|
3080
|
+
this->wait_until_idle_();
|
3081
|
+
} else {
|
3082
|
+
// set up partial update
|
3083
|
+
this->command(0x32);
|
3084
|
+
this->start_data_();
|
3085
|
+
this->write_array(PART_UPDATE_LUT_TTGO_DKE, sizeof(PART_UPDATE_LUT_TTGO_DKE));
|
3086
|
+
this->end_data_();
|
3087
|
+
this->command(0x3F);
|
3088
|
+
this->data(0x22);
|
3089
|
+
|
3090
|
+
this->command(0x03);
|
3091
|
+
this->data(0x17);
|
3092
|
+
this->command(0x04);
|
3093
|
+
this->data(0x41);
|
3094
|
+
this->data(0x00);
|
3095
|
+
this->data(0x32);
|
3096
|
+
this->command(0x2C);
|
3097
|
+
this->data(0x32);
|
3098
|
+
|
3099
|
+
this->command(0x37);
|
3100
|
+
this->data(0x00);
|
3101
|
+
this->data(0x00);
|
3102
|
+
this->data(0x00);
|
3103
|
+
this->data(0x00);
|
3104
|
+
this->data(0x00);
|
3105
|
+
this->data(0x40);
|
3106
|
+
this->data(0x00);
|
3107
|
+
this->data(0x00);
|
3108
|
+
this->data(0x00);
|
3109
|
+
this->data(0x00);
|
3110
|
+
|
3111
|
+
this->command(0x3C);
|
3112
|
+
this->data(0x80);
|
3113
|
+
this->command(0x22);
|
3114
|
+
this->data(0xC0);
|
3115
|
+
this->command(0x20);
|
3116
|
+
this->wait_until_idle_();
|
3117
|
+
|
3118
|
+
// send data
|
3119
|
+
this->command(0x24);
|
3120
|
+
this->start_data_();
|
3121
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
3122
|
+
this->end_data_();
|
3123
|
+
|
3124
|
+
// commit as partial
|
3125
|
+
this->command(0x22);
|
3126
|
+
this->data(0xCF);
|
3127
|
+
this->command(0x20);
|
3128
|
+
this->wait_until_idle_();
|
3129
|
+
|
3130
|
+
// data must be sent again on partial update
|
3131
|
+
this->command(0x24);
|
3132
|
+
this->start_data_();
|
3133
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
3134
|
+
this->end_data_();
|
3135
|
+
}
|
3136
|
+
|
3137
|
+
ESP_LOGI(TAG, "Completed e-paper update.");
|
3138
|
+
}
|
3139
|
+
|
3140
|
+
int WaveshareEPaper2P13InDKE::get_width_internal() { return 128; }
|
3141
|
+
int WaveshareEPaper2P13InDKE::get_height_internal() { return 250; }
|
3142
|
+
uint32_t WaveshareEPaper2P13InDKE::idle_timeout_() { return 5000; }
|
3143
|
+
void WaveshareEPaper2P13InDKE::dump_config() {
|
3144
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
3145
|
+
ESP_LOGCONFIG(TAG, " Model: 2.13inDKE");
|
3146
|
+
LOG_PIN(" CS Pin: ", this->cs_);
|
3147
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
3148
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
3149
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
3150
|
+
LOG_UPDATE_INTERVAL(this);
|
3151
|
+
}
|
3152
|
+
|
3153
|
+
void WaveshareEPaper2P13InDKE::set_full_update_every(uint32_t full_update_every) {
|
3154
|
+
this->full_update_every_ = full_update_every;
|
3155
|
+
}
|
3156
|
+
|
3157
|
+
// ========================================================
|
3158
|
+
// 13.3in (K version)
|
3159
|
+
// Datasheet/Specification/Reference:
|
3160
|
+
// - https://files.waveshare.com/wiki/13.3inch-e-Paper-HAT-(K)/13.3-inch-e-Paper-(K)-user-manual.pdf
|
3161
|
+
// - https://github.com/waveshareteam/e-Paper/tree/master/Arduino/epd13in3k
|
3162
|
+
// ========================================================
|
3163
|
+
|
3164
|
+
// using default wait_until_idle_() function
|
3165
|
+
void WaveshareEPaper13P3InK::initialize() {
|
3166
|
+
this->wait_until_idle_();
|
3167
|
+
this->command(0x12); // SWRESET
|
3168
|
+
this->wait_until_idle_();
|
3169
|
+
|
3170
|
+
this->command(0x0c); // set soft start
|
3171
|
+
this->data(0xae);
|
3172
|
+
this->data(0xc7);
|
3173
|
+
this->data(0xc3);
|
3174
|
+
this->data(0xc0);
|
3175
|
+
this->data(0x80);
|
3176
|
+
|
3177
|
+
this->command(0x01); // driver output control
|
3178
|
+
this->data((get_height_internal() - 1) % 256); // Y
|
3179
|
+
this->data((get_height_internal() - 1) / 256); // Y
|
3180
|
+
this->data(0x00);
|
3181
|
+
|
3182
|
+
this->command(0x11); // data entry mode
|
3183
|
+
this->data(0x03);
|
3184
|
+
|
3185
|
+
// SET WINDOWS
|
3186
|
+
// XRAM_START_AND_END_POSITION
|
3187
|
+
this->command(0x44);
|
3188
|
+
this->data(0 & 0xFF);
|
3189
|
+
this->data((0 >> 8) & 0x03);
|
3190
|
+
this->data((get_width_internal() - 1) & 0xFF);
|
3191
|
+
this->data(((get_width_internal() - 1) >> 8) & 0x03);
|
3192
|
+
// YRAM_START_AND_END_POSITION
|
3193
|
+
this->command(0x45);
|
3194
|
+
this->data(0 & 0xFF);
|
3195
|
+
this->data((0 >> 8) & 0x03);
|
3196
|
+
this->data((get_height_internal() - 1) & 0xFF);
|
3197
|
+
this->data(((get_height_internal() - 1) >> 8) & 0x03);
|
3198
|
+
|
3199
|
+
this->command(0x3C); // Border setting
|
3200
|
+
this->data(0x01);
|
3201
|
+
|
3202
|
+
this->command(0x18); // use the internal temperature sensor
|
3203
|
+
this->data(0x80);
|
3204
|
+
|
3205
|
+
// SET CURSOR
|
3206
|
+
// XRAM_ADDRESS
|
3207
|
+
this->command(0x4E);
|
3208
|
+
this->data(0 & 0xFF);
|
3209
|
+
this->data((0 >> 8) & 0x03);
|
3210
|
+
// YRAM_ADDRESS
|
3211
|
+
this->command(0x4F);
|
3212
|
+
this->data(0 & 0xFF);
|
3213
|
+
this->data((0 >> 8) & 0x03);
|
3214
|
+
}
|
3215
|
+
void HOT WaveshareEPaper13P3InK::display() {
|
3216
|
+
// do single full update
|
3217
|
+
this->command(0x24);
|
3218
|
+
this->start_data_();
|
3219
|
+
this->write_array(this->buffer_, this->get_buffer_length_());
|
3220
|
+
this->end_data_();
|
3221
|
+
|
3222
|
+
// COMMAND DISPLAY REFRESH
|
3223
|
+
this->command(0x22);
|
3224
|
+
this->data(0xF7);
|
3225
|
+
this->command(0x20);
|
3226
|
+
}
|
3227
|
+
|
3228
|
+
int WaveshareEPaper13P3InK::get_width_internal() { return 960; }
|
3229
|
+
int WaveshareEPaper13P3InK::get_height_internal() { return 680; }
|
3230
|
+
uint32_t WaveshareEPaper13P3InK::idle_timeout_() { return 10000; }
|
3231
|
+
void WaveshareEPaper13P3InK::dump_config() {
|
3232
|
+
LOG_DISPLAY("", "Waveshare E-Paper", this);
|
3233
|
+
ESP_LOGCONFIG(TAG, " Model: 13.3inK");
|
3234
|
+
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
3235
|
+
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
3236
|
+
LOG_PIN(" Busy Pin: ", this->busy_pin_);
|
3237
|
+
LOG_UPDATE_INTERVAL(this);
|
3238
|
+
}
|
3239
|
+
|
3240
|
+
} // namespace waveshare_epaper
|
3241
|
+
} // namespace esphome
|