M5Dial backlight control / dimming?
-
Are there any functions (and/or code examples) available in the Arduino libraries to dim or turn on/off the backlight on the M5Dial?
I've tried M5.Lcd.setBrightness and M5Dial.Lcd.setBrightness... both compile, but don't seem to do anything.
Thanks!
-
-
Hey thanks!
So... funny story... I tried the sketch you linked and it worked fine. Then I tried calling the M5Dial.Display.setBrightness function in my sketch, and it did nothing regardless of what number I passed to it.
Long story short, I'm using Bodmer's TFT_eSPI library in my sketch and I had TFT_BL defined in the user config file. It seems that defining that makes the TFT_eSPI library take over the backlight control pin and stops the setBrightness function from working. Commenting out the setting of TFT_BL in that config file made the function work.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login