Skip to content

Adafruit Feather ESP32-S2 TFT - TFT_BACKLIGHT in use #5941

@anecdata

Description

@anecdata

CircuitPython version

Adafruit CircuitPython 7.2.0-alpha.1-224-gac7a80753 on 2022-01-26; Adafruit Feather ESP32-S2 TFT with ESP32S2

Code/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 use

Behavior

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 = 0

Additional 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugespressifapplies to multiple Espressif chips

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions