ECE 4180 Lab 1 Part 8

Dependencies:   PinDetect mbed

Committer:
abraha2d
Date:
Tue Oct 09 00:35:07 2018 +0000
Revision:
0:e0a1ed5a2c2e
Save point

Who changed what in which revision?

UserRevisionLine numberNew 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 }