Has anybody figured out how / if you can adjust the Tufty 2350 LCD Backlight?
The pins.csv file shows it as LCD_BACKLIGHT GPIO26
tufty2350/board/pins.csv at main · pimoroni/tufty2350
But that’s about all I can find? I didn’t see anything mentioned in the API’s.
Trying screen.backlight = 1.0
just gets me
AttributeError: 'image' object has no attribute 'backlight'
Which I believe is because screen is to do with picovector?
I would expect the LCD backlight to behave like the tufty backlights. I.e. you would PWM the GPIO26 directly.
There is functionality for that -
from badgeware import set_brightness
set_brightness(value)
I can’t remember what range of values that takes and I’m not in a position to check right now, but that should do ya. Should work on Tufty for the screen backlight and Blinky for the overall LED brightness.
1 Like
Thankyou. =)
Looks like it’s 0 to 1.
0.5 got me what looks like half brightness.
I “should” be able to copy over my auto backlight code from my Tufty 2040. Likely some edits needed but I’m feeling confident I can now get it done. Good timing too, I just got the battery indicator widget working on my Tufty 2350 weather info code.