Read an analog value using ADC

Dependencies:   mbed

Revision:
1:c501cf08e477
Parent:
0:34080419f5c6
Child:
2:fc1b61adfc11
--- a/main.cpp	Mon Sep 08 11:09:19 2014 +0000
+++ b/main.cpp	Sat Sep 27 13:05:13 2014 +0000
@@ -1,6 +1,12 @@
+/**************************************************************************/
+/*                                                                        */
+/*                                                                        */
+/* Note: The STM32F401 has default 3.3V I/O pins (3.3V == 4096)           */    
+/**************************************************************************/
+
 #include "mbed.h"
 
-AnalogIn analog_sensor(A0);
+AnalogIn analog_sensor(A0);                       // Create the analog pin object
 
 int main()
 {