Øving_4_2

Dependencies:   mbed

Committer:
olemh88
Date:
Tue Sep 19 13:14:11 2017 +0000
Revision:
0:9b011f850451
?ving4_2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
olemh88 0:9b011f850451 1 #include "mbed.h"
olemh88 0:9b011f850451 2
olemh88 0:9b011f850451 3 PwmOut led(LED1);
olemh88 0:9b011f850451 4 AnalogIn pot(p20);
olemh88 0:9b011f850451 5 int main()
olemh88 0:9b011f850451 6 {
olemh88 0:9b011f850451 7 led.period(0.02);
olemh88 0:9b011f850451 8 while(1) {
olemh88 0:9b011f850451 9 led.write(pot);
olemh88 0:9b011f850451 10 wait (0.1);
olemh88 0:9b011f850451 11 }
olemh88 0:9b011f850451 12 }