ADC values read in two formats are printed on PC terminal.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
titanium
Date:
Mon Jul 30 07:01:15 2018 +0000
Parent:
0:0d95cd35c02a
Commit message:
A heading comment is added.

Changed in this revision

simple_AD_serial.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/simple_AD_serial.cpp	Thu May 10 02:25:35 2018 +0000
+++ b/simple_AD_serial.cpp	Mon Jul 30 07:01:15 2018 +0000
@@ -1,3 +1,6 @@
+/* simple_AD_serial reads analog voltage on pin-20
+/* and sends to PC in two formats, 16bit int and 32bit float */
+
 #include "mbed.h"
 Serial pc(USBTX, USBRX);
 AnalogIn adin(p20);