rm-hull / luma.examples

Companion repo for running examples against the luma.oled, luma.lcd, luma.led_matrix and luma.emulator display drivers.
MIT License
370 stars 144 forks source link

ST7735 --backlight-active low all black #74

Closed sgjava closed 6 years ago

sgjava commented 6 years ago

Using --backlight-active low appears to turn off the display i.e. is all black. --backlight-active high is the same as not setting this value at all and you are able to see images fine. When the display is not being accessed by Luma or when powered up it's an all white background.

Also, I noticed that dim/bright portion of demo.py does nothing.

sgjava commented 6 years ago

OK, I added the following to my /etc/rc.local, so backlight is off after OS startup. Examples still leaves back light GPIO high on exit which causes the display to be all white. I used pin 33 on the ODROID C1 for back light.

import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(33, GPIO.OUT)
# Turn off ST7735 backlight
GPIO.output(33, 0)