An I/O controller for virtual pinball machines: accelerometer nudge sensing, analog plunger input, button input encoding, LedWiz compatible output controls, and more.
Dependencies: mbed FastIO FastPWM USBDevice
Fork of Pinscape_Controller by
NewPwm.cpp
00001 // New PWM Out implementation 00002 00003 #include "NewPwm.h" 00004 00005 // TPM Unit singletons. We have three singletons corresponding 00006 // to the three physical TPM units in the hardware. 00007 NewPwmUnit NewPwmUnit::unit[3]; 00008 00009 // System clock rate, in Hz 00010 uint32_t NewPwmUnit::sysClock; 00011 00012 // Default PWM period for new channels, in seconds 00013 float NewPwmUnit::defaultPeriod = 0.001f; 00014
Generated on Wed Jul 13 2022 03:30:11 by 1.7.2