pwm - API to use PWM gpio through /sys
Derived from https://github.com/EnotionZ/GpiO
Standard setup
var pwm = ; // Calling export with a chip number and a pin number will export that// header and return a pwm header instancevar pwm5 = pwm;
API Methods
// Enable pinpwm5;
// Set pin periodpwm5;
// Set pin duty cyclepwm5;
// Resetpwm5;
// unexport program when donepwm5;