4180 lab 1
Dependencies: mbed MCP23S17 PinDetect USBDevice
part8.h
- Committer:
- emilywilson
- Date:
- 2020-01-22
- Revision:
- 12:cc5bda248946
- Parent:
- 7:b7720a8623b5
File content as of revision 12:cc5bda248946:
#include "mbed.h"
PwmOut myled(LED1);
AnalogIn mypotentiometer(p20);
int run_part8()
{
while(1) {
myled = mypotentiometer;
wait(0.01);
}
}