-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Unfortunately software PWM not working on Cubieboard2 :(
I use this code:
import wiringpi2
OUTPUT = 1
PIN_TO_PWM = 64
wiringpi2.wiringPiSetupPhys()
wiringpi2.pinMode(PIN_TO_PWM,OUTPUT)
wiringpi2.softPwmCreate(PIN_TO_PWM,0,100)
for time in range(0,10):
for brightness in range(0,100):
wiringpi2.softPwmWrite(PIN_TO_PWM,brightness)
wiringpi2.delay(10)
for brightness in reversed(range(0,100)):
wiringpi2.softPwmWrite(PIN_TO_PWM,brightness)
wiringpi2.delay(10)
Nothing to work.
P.S. Simple turn ON/OFF the LED (on this PIN) work without problem.
Please help solve this problem.
Thank you.
Metadata
Metadata
Assignees
Labels
No labels