Emily Wilson / Mbed 2 deprecated ECE4180Lab1

Dependencies:   mbed MCP23S17 PinDetect USBDevice

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers part8.h Source File

part8.h

00001 #include "mbed.h"
00002 PwmOut myled(LED1);
00003 AnalogIn mypotentiometer(p20);
00004 
00005 int run_part8()
00006 {
00007     while(1) {
00008         myled = mypotentiometer;
00009         wait(0.01);
00010     }
00011 }