Hyperpixel4 backlight flickering
Posted: Tue Jul 21, 2020 3:51 pm
I am trying to control the backlight on a hyperpixel4 display.
I found code using pigpio which seems to work fine for a while but then after I return the lcd to full brightness it flickers badly.
The code I use...(based on what I found on the internet)
I then alternate between values of 0 and 255 for self.bright to switch the backlight off or on as required.
The best I can mange is using self.gpio.set_PWM_frequency(19,601), where 601 is approx 10x the display freq reported of 60.06Hz.
Anyone else got it working ?
I found code using pigpio which seems to work fine for a while but then after I return the lcd to full brightness it flickers badly.
The code I use...(based on what I found on the internet)
Code: Select all
os.system("sudo pigpiod")
import pigpio
self.gpio = pigpio.pi()
self.gpio.set_PWM_frequency(19,100)
self.gpio.set_PWM_dutycycle(19,self.bright)Code: Select all
self.gpio.set_PWM_dutycycle(19,self.bright)Anyone else got it working ?