TINF_MyPwm
main.cpp@0:728d17af5d23, 2018-06-22 (annotated)
- Committer:
- martwerl
- Date:
- Fri Jun 22 11:04:29 2018 +0000
- Revision:
- 0:728d17af5d23
TINF_MyPwm
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
martwerl | 0:728d17af5d23 | 1 | #include "mbed.h" |
martwerl | 0:728d17af5d23 | 2 | #include "MyPwm.h" |
martwerl | 0:728d17af5d23 | 3 | |
martwerl | 0:728d17af5d23 | 4 | MyPwm Pwm(LED1); |
martwerl | 0:728d17af5d23 | 5 | int main() |
martwerl | 0:728d17af5d23 | 6 | { |
martwerl | 0:728d17af5d23 | 7 | while (1) |
martwerl | 0:728d17af5d23 | 8 | { |
martwerl | 0:728d17af5d23 | 9 | Pwm.dimUp(); |
martwerl | 0:728d17af5d23 | 10 | Pwm.dimDown(); |
martwerl | 0:728d17af5d23 | 11 | break; |
martwerl | 0:728d17af5d23 | 12 | } |
martwerl | 0:728d17af5d23 | 13 | } |