m5stack / M5StickC-Plus

M5StickCPlus Arduino Library
MIT License
359 stars 90 forks source link

M5Display::setBrightness will it be implemented ? #37

Closed multiscan closed 2 years ago

multiscan commented 2 years ago

Hello, in M5Display.cpp I see that various functions including M5Display::setBrightness and M5Display::sleep are not implemented (wrapped in an "#if 0" cpp directive). Is there any hope for those to be implemented ? Thank you very much!

giovanni

felmue commented 2 years ago

Hello @multiscan

M5Display::sleep I don't know, but instead of M5Display::setBrightness you can use AXP192::ScreenBreath.

Thanks Felix

Tinyu-Zhao commented 2 years ago

The correct way to setBrightness is to use the ScreenBreath in AXP192, I will comment out this line in the Display that causes misunderstanding

multiscan commented 2 years ago

Great. That works. Thank you very much!