Dependencies:   mbed

Committer:
bjs9
Date:
Wed Jan 31 00:53:33 2018 +0000
Revision:
1:ee5499cdec7f
Parent:
0:0cae351975b3
Child:
2:8ec5d78d7ad9
edits to Lab1_part8;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bjs9 0:0cae351975b3 1 #include "mbed.h"
bjs9 0:0cae351975b3 2
bjs9 0:0cae351975b3 3 PwmOut myled(LED1);
bjs9 0:0cae351975b3 4 AnalogIn mypotentiometer(p20);
bjs9 0:0cae351975b3 5 int main()
bjs9 0:0cae351975b3 6 {
bjs9 0:0cae351975b3 7 while(1) {
bjs9 0:0cae351975b3 8 myled = mypotentiometer;
bjs9 0:0cae351975b3 9 wait(0.01);
bjs9 0:0cae351975b3 10 }
bjs9 0:0cae351975b3 11 }