Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Nucleo-Analog_read by
Diff: main.cpp
- Revision:
- 3:a87ea8280bcf
- Parent:
- 2:eb5ee8191175
- Child:
- 4:da95e07f350a
--- a/main.cpp Sat Mar 21 14:32:22 2015 +0000 +++ b/main.cpp Sun Mar 22 12:37:02 2015 +0000 @@ -1,8 +1,8 @@ /********************************************************************************** * @file main.cpp -* @author Name -* @version V0.1 -* @date 09-March-2015 +* @author Petr Dousa +* @version V1.00 +* @date 22-March-2015 * @brief Read analog value and write it to serial. * It could be set some settings through serial. * Serial speed is set to 115200. @@ -33,6 +33,8 @@ #define voltage 3300 //voltage in mV, which is used in Nucleo kits #define mv(x) ((x*voltage)/0xFFFF) // raw value to value in mili volts +/* Function prototypes -----------------------------------------------------------*/ + /* Variables ---------------------------------------------------------------------*/ int voltages =0; //voltage to compare and start print bool start = true; // if true it print value to serial
