-
Notifications
You must be signed in to change notification settings - Fork 165
sysfs-gpio: expose pins found in /sys/class/pwm and reconcile with gpio #358
Comments
Can you expand on what you mean exactly? |
It looks like hardware PWM support isn't provided via sysfs: https://github.com/google/periph/blob/master/host/sysfs/gpio.go#L307 |
Do you ask about using |
Hi @maruel, yep, isn't /sys/xxx sysfs or am I confused there? |
What kind of board are you looking for to leverage native PWM on? |
Hi @maruel, in this csae an Omega2+ board. I apologize if the support is already present, I combed the codebase, searched etc but I'm still a bit new to sysfs with PWM. I wouldn't want to waste anyones time. |
I see http://blog.oddbit.com/2017/09/26/some-notes-on-pwm-on-the-raspberry-pi/ I hadn't realize that newer kernels exposed it. That looks totally doable. |
Independent of Omega or RPi, this is doable, just need someone to add the enumeration and reconciliation with the GPIO pin numbers. |
@maruel yep, I was thinking it would be relatively transparent with respect to the hardware itself. I'm not at the point with periph that I could help contributing anything here yet. |
Ported to periph/host#40. |
I may intend to submit a pull request to add this support but I'm currently using gobot for pwm support.
The text was updated successfully, but these errors were encountered: