Kevin Abraham
/
4180Lab1-8
ECE 4180 Lab 1 Part 8
main.cpp@0:e0a1ed5a2c2e, 2018-10-09 (annotated)
- Committer:
- abraha2d
- Date:
- Tue Oct 09 00:35:07 2018 +0000
- Revision:
- 0:e0a1ed5a2c2e
Save point
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
abraha2d | 0:e0a1ed5a2c2e | 1 | #include "mbed.h" |
abraha2d | 0:e0a1ed5a2c2e | 2 | |
abraha2d | 0:e0a1ed5a2c2e | 3 | PwmOut myled(LED1); |
abraha2d | 0:e0a1ed5a2c2e | 4 | AnalogIn pot(p20); |
abraha2d | 0:e0a1ed5a2c2e | 5 | |
abraha2d | 0:e0a1ed5a2c2e | 6 | int main() |
abraha2d | 0:e0a1ed5a2c2e | 7 | { |
abraha2d | 0:e0a1ed5a2c2e | 8 | while(1) { |
abraha2d | 0:e0a1ed5a2c2e | 9 | myled = pot; |
abraha2d | 0:e0a1ed5a2c2e | 10 | } |
abraha2d | 0:e0a1ed5a2c2e | 11 | } |