The intermittent nature of the issue is making it rather hard to troubleshoot. Sometimes the failure occurs when setting duty in a start condition, and others when setting duty cycle in a stop condition. In my testing this occurs roughly within 1-50 start/stop cycles.
General cod description:
Code: Select all
pca.frequency = 60
pca.channels[0].duty_cycle = 0xFFFF
pca.channels[1].duty_cycle = 0x0000
time.sleep(5)
pca.frequency = 60
pca.channels[0].duty_cycle = 0x0000
pca.channels[1].duty_cycle = 0x0000
time.sleep(5)
Thanks