TINF_MyPwm

Dependents:   TINF_MyPwm

Committer:
martwerl
Date:
Fri Jun 22 11:04:29 2018 +0000
Revision:
0:728d17af5d23
TINF_MyPwm

Who changed what in which revision?

UserRevisionLine numberNew contents of line
martwerl 0:728d17af5d23 1 #include "mbed.h"
martwerl 0:728d17af5d23 2 #ifndef MYPWM_H
martwerl 0:728d17af5d23 3 #define MYPWM_H
martwerl 0:728d17af5d23 4
martwerl 0:728d17af5d23 5 class MyPwm
martwerl 0:728d17af5d23 6 {
martwerl 0:728d17af5d23 7 private:
martwerl 0:728d17af5d23 8 PwmOut _pin;
martwerl 0:728d17af5d23 9
martwerl 0:728d17af5d23 10 public:
martwerl 0:728d17af5d23 11 MyPwm(PinName pin) : _pin(pin)
martwerl 0:728d17af5d23 12 {
martwerl 0:728d17af5d23 13 _pin = 0;
martwerl 0:728d17af5d23 14 }
martwerl 0:728d17af5d23 15 void dimUp(void);
martwerl 0:728d17af5d23 16 void dimDown(void);
martwerl 0:728d17af5d23 17 void printStatus(void);
martwerl 0:728d17af5d23 18 };
martwerl 0:728d17af5d23 19
martwerl 0:728d17af5d23 20 #endif