st7789-python icon indicating copy to clipboard operation
st7789-python copied to clipboard

using ST7789 library for Mini Display Hat... How do I control the onboard LED?

Open Nwhitten opened this issue 4 years ago • 2 comments

Hi

when using the ST7789 library (not the displayhatmini library) is there a way to control the onboard LED??

thanks

Neil

Nwhitten avatar Nov 14 '21 03:11 Nwhitten

Yes probably, by replicating the code included in display hat mini library!

Sebwap avatar Nov 14 '21 07:11 Sebwap

You do not need the library. Just control the ACT LED on pin 47.

See for example lines in https://github.com/Wikinaut/pinetradio/blob/main/pinetradio.py (look for ACT, which stands for activity LED.).

PI system use of the ACT-LED must be disabled. You can use this service https://github.com/Wikinaut/pinetradio/blob/main/disable-led.service and run sudo systemctl enable disable-led once.

Wikinaut avatar May 01 '23 10:05 Wikinaut