![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Analog to digital conversion. Reads voltage and prints it in the terminal. Switches on/off the leads depending on the voltage threashold. Uses button for voltage callibration.
Fork of ADCandticker_sample by
Diff: main.cpp
- Revision:
- 1:126dd2f5fc2d
- Parent:
- 0:ad3cdc525b99
- Child:
- 2:26893e7c0068
--- a/main.cpp Tue Jan 31 23:02:02 2017 +0000 +++ b/main.cpp Wed Jan 24 21:55:43 2018 +0000 @@ -1,8 +1,9 @@ // LAB 3 SAMPLE PROGRAM 1 +// Revised for mbed 5 #include "mbed.h" -#include "rtos.h" + Ticker tick; // Ticker for reading analog AnalogIn ain(A0) ; // Analog input