4180 lab 1
Dependencies: mbed MCP23S17 PinDetect USBDevice
part8.h@12:cc5bda248946, 2020-01-22 (annotated)
- Committer:
- emilywilson
- Date:
- Wed Jan 22 13:08:48 2020 +0000
- Revision:
- 12:cc5bda248946
- Parent:
- 7:b7720a8623b5
mouse extra credit and power management extra credit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilywilson | 7:b7720a8623b5 | 1 | #include "mbed.h" |
emilywilson | 7:b7720a8623b5 | 2 | PwmOut myled(LED1); |
emilywilson | 7:b7720a8623b5 | 3 | AnalogIn mypotentiometer(p20); |
emilywilson | 7:b7720a8623b5 | 4 | |
emilywilson | 7:b7720a8623b5 | 5 | int run_part8() |
emilywilson | 7:b7720a8623b5 | 6 | { |
emilywilson | 7:b7720a8623b5 | 7 | while(1) { |
emilywilson | 7:b7720a8623b5 | 8 | myled = mypotentiometer; |
emilywilson | 7:b7720a8623b5 | 9 | wait(0.01); |
emilywilson | 7:b7720a8623b5 | 10 | } |
emilywilson | 7:b7720a8623b5 | 11 | } |