Gonzalo Paniagua Javier f0c48216fd Fixes compilation in with esphome > 2022.2.6.
esphome versions after 2022.2.6 fail to compile axp192 with the
following error:

  File "/home/test/esphome/custom_components/axp192/sensor.py", line 16, in <module>
    sensor.sensor_schema(UNIT_PERCENT, ICON_BATTERY, 1).extend({
  TypeError: sensor_schema() takes from 0 to 1 positional arguments but 3 were given
2022-03-29 10:29:34 -04:00
2020-02-23 12:25:47 +01:00
2020-02-13 11:38:06 +01:00

Additional components to use esphome with a M5StickC.
Mostly a work in progress.
Copy the components to a custom_components directory next to your .yaml configuration file.

  • axp192 : power management - configuration hard coded for the M5StickC - should be made more generic. Must be present to initialize the screen power.
    Can be also used to read some of the power info - most sensors aren't published yet.
    Mostly the AXP192 from M5Stack sample code adapted for esphome.
  • st7735 : TFT screen - configuration hard coded for the M5StickC - should be made more generic.
    Adapted from https://github.com/musk95/esphome-1/tree/dev/esphome/components/st7789v + M5StickC sample code for the init
Description
No description provided
Readme 271 KiB
Languages
C++ 91.2%
Python 8.8%