Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWM on RPi B+ not working #34

Closed
akofoed opened this issue Jul 11, 2015 · 2 comments
Closed

PWM on RPi B+ not working #34

akofoed opened this issue Jul 11, 2015 · 2 comments

Comments

@akofoed
Copy link

akofoed commented Jul 11, 2015

Thanks for the cool EMBD framework. It's really great.

I see in the docs for the PI B+ that the GPIO18 should work as PWM pin. However it's not supported in the host (host/rpi/rpi.go).

I get this if I try:

Error in NewPWMPin (18)!
panic: gpio: pwm not supported on this host

Code:

    pinNo := 18
    pwm, err := embd.NewPWMPin(pinNo)
    if err != nil {
        fmt.Println("Error in NewPWMPin (18)!")
        panic(err)
    }
    defer pwm.Close()
    // 500 Hz == 2.000.000 ns
    pwm.SetDuty(2000000)
@akofoed akofoed closed this as completed Aug 4, 2016
@scruplelesswizard
Copy link

@akofoed did you resolve this, or are the doc's incorrect on supporting PWM for the Pi?

@akofoed
Copy link
Author

akofoed commented Nov 22, 2016

Hi chaosaffe
No, I wrote it in C, so problem solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants