Hmm, why can't you simply setup the PWM as a backlight and then use the kernel driver for changing brightness (My expectation is you don't do that that frequent)?This is just a test code:No errors, but there is no change in duty cycle. It stays at 100 all the time.Code:
from rpi_hardware_pwm import HardwarePWMimport timepwm = HardwarePWM(pwm_channel=0, hz=60, chip=2)pwm.start(100) # full duty cycletime.sleep(1)pwm.change_duty_cycle(50)time.sleep(1)pwm.change_duty_cycle(100)pwm.stop()
It controls screen brightness and there is no change in that.
Statistics: Posted by aBUGSworstnightmare — Mon Mar 04, 2024 1:28 pm