Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

How to turn off backlight using adafruit_clue library
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

How to turn off backlight using adafruit_clue library

by mikec58 on Tue Jul 21, 2020 5:40 pm

I am using the adafruit_clue library and would like to turn off the backlight while things are idle. Is there any way to do this?

mikec58
 
Posts: 5
Joined: Wed Nov 05, 2014 8:52 pm

Re: How to turn off backlight using adafruit_clue library

by adafruit_support_carter on Tue Jul 21, 2020 6:03 pm

Yep, basically just set brightness to 0. But you'll want to check the auto_brightness setting also. Details about those parameters here:
https://circuitpython.readthedocs.io/en ... io.Display

Here's an example:
Code: Select all | TOGGLE FULL SIZE
Adafruit CircuitPython 5.3.0 on 2020-04-29; Adafruit CLUE nRF52840 Express with nRF52840
>>> from adafruit_clue import clue
>>> clue.display.auto_brightness
True
>>> clue.display.auto_brightness = False
>>> clue.display.brightness = 0
>>>

adafruit_support_carter
 
Posts: 16268
Joined: Tue Nov 29, 2016 2:45 pm

Re: How to turn off backlight using adafruit_clue library

by Mare1z on Sat Jul 25, 2020 5:08 am

I'm inexperienced with all the kinds of LCD backdrop illuminations to decide on the correct way, the Pi form of this library really allows you to determine if the backdrop illumination rationale is altered or not.

Mare1z
 
Posts: 1
Joined: Sat Jul 25, 2020 5:03 am

Please be positive and constructive with your questions and comments.