Skip to content

Cubieboard2 and softPwm.py #3

@Halytskyi

Description

@Halytskyi

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions