airy10 / esphome-m5stickC

esphome components for the M5StickC
81 stars 75 forks source link

Changes to support ESPHome 1.15 #10

Closed geiseri closed 3 years ago

geiseri commented 3 years ago

Hiya, So it looks like there were some breaking changes upstream for the display. One was from PR https://github.com/esphome/esphome/pull/988 which "changed SPI_DEVICE_SCHEMA to a function, like i2c". The second is with draw_absolute_pixel_internal. It seems that the PR https://github.com/esphome/esphome/pull/1100 changed the internal color format from RGB565 to RGB888. I updated that method, but that broke the ST77XX_* color defines. I kinda hacked around it to preserve behavior, but I am wondering if it makes sense, since they were only included because mere mortals cannot do RGB565 conversions in their heads ;)

Let me know if you need any changes on this. I am loving my M5Stick-C!!

airy10 commented 3 years ago

Thanks for the changes. I'll have a look

ameyanaik11 commented 3 years ago

Just confirming, these changes worked perfectly on my end. :)

djgragra commented 3 years ago

Hi, I'm trying to add support for the st7735 display But I'm getting the following error: platfor not found: 'display.st7735'

What is the correct configuration? I added the two directories axp192 and st7735 in esphome / custom_component, I also restarted Home Assistant but still get the error. Can you tell me how to do it? Thanks. Schermata 2021-01-16 alle 18 18 07