Maria Monem
/
ME21001_Lab04_Exercise_03
Ex 3
main.cpp
- Committer:
- mazmonem
- Date:
- 2017-10-05
- Revision:
- 0:2e3f58a3a6ac
- Child:
- 1:0dafa64a6494
File content as of revision 0:2e3f58a3a6ac:
#include "mbed.h" DigitalIn potentiometer(p17); // digital input variable declaration DigitalOut led(LED1);// digital output variable declaration int main() { while(1) { if (potentiometer.read()) { led = 1; } else { led = 0; } } }