airy10 / esphome-m5stickC

esphome components for the M5StickC
81 stars 75 forks source link

display stays black #7

Closed wjcarpenter closed 4 years ago

wjcarpenter commented 4 years ago

I tried using exactly the sample YAML file, verbatim except for:

So far, I can get nothing to appear on the screen. I even simplified the display lambda down to just a constant string, but still nothing. Logging and blinky lights show that button presses are working as expected. I am using the latest esphome (1.14.5).

Is it possible that something has changed in esphome in the last couple of months to throw a wrench into this? My m5stick-c is recently purchased. Could there be a hardware change that causes the problem? (The demo program that came on the m5stick-c worked fine until I flashed over it.)

I'm just starting to troubleshoot this, so I'm wondering if someone has hit this already and knows the simple answer.

wjcarpenter commented 4 years ago

Do I need to be using the dev or beta branch of esphome, or is the released version OK?

wjcarpenter commented 4 years ago

NVM.

It was the removing of the axp192 references that seems to have been behind the screen not waking up properly. The reason I removed that (and, in fact, all of the sensor: block) was because esphome was complaining about a YAML problem that I couldn't isolate except by doing that.

Today, I started over with a fresh git clone of the repo, using an exact copy of the sample YAML. After I changed the three lines to use a font I already had locally, it worked without further problems. I'll probably never figure out what I did subtly wrong the first time around.

Sorry for any inconvenience if anyone was thinking about what the problem might have been!