m5stack / M5StickC-Plus

M5StickCPlus Arduino Library
MIT License
359 stars 90 forks source link

Cannot use M5.Lcd.setBrightness() #12

Closed RuofengX closed 3 years ago

RuofengX commented 3 years ago

Cannot use M5.Lcd.setBrightness(), vscode return undefined reference to `M5Display::setBrightness(unsigned char)' error.

sburlot commented 3 years ago

Don't know why, but the code for setBrightness in M5Display.c is in a "#if 0", so setBrightness isnt defined.

Use M5.Axp.ScreenBreath()

RuofengX commented 3 years ago

M5.Axp.ScreenBreath() works, thx!