ADC values read in two formats are printed on PC terminal.
Dependencies: mbed
Revision 1:9178a2aee69f, committed 2018-07-30
- 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);