6 #include <fastgpioomega.h>
7 #include <fastgpioomega2.h>
11 #define DEFAULT_FREQ 200
12 #define DEFAULT_DUTY_CYCLE 50
15 class FastPwm : public Module {
18 FastPwm(int freq, int duty, unsigned int cycles);
23 void Pwm (int pinNum);
24 void Pwm (int pinNum, int freq, int duty, unsigned int cycles);
29 void _SetupPeriods (int frequency, int duty, unsigned int cycles);
30 void _Sleep (double length);
32 void _Pwm (int pinNum);
35 // The way it was before
38 //Create a pointer to the base class
39 //Instantiate it in the constructor
50 unsigned int myCycles;
54 #endif // _FAST_PWM_H_