forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Milestone
Description
CircuitPython version
Adafruit CircuitPython 7.2.0-alpha.1-224-gac7a80753 on 2022-01-26; Adafruit Feather ESP32-S2 TFT with ESP32S2Code/REPL
>>> import board
>>> import pwmio
>>>
>>> pwmio.PWMOut(board.TFT_BACKLIGHT, frequency=5000, duty_cycle=0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: TFT_BACKLIGHT in useBehavior
Similar to #5903. I'd expect that independent control of the backlight pin should be possible in user code.
Description
Workaround:
import board
board.DISPLAY.brightness = 0Additional information
I had an older version of CircuitPython on this board earlier, and was able to control the backlight with pwmio. However, the setting was sticky across reloads, which wasn't intuitive.