MultiTech / Mbed 2 deprecated mDot_AnalogIn_Example

Dependencies:   mbed

Fork of Dragonfly_AnalogIn_Example by MultiTech

Files at this revision

API Documentation at this revision

Comitter:
mfiore
Date:
Fri Oct 02 16:46:53 2015 +0000
Parent:
0:436a6a6b80a1
Commit message:
update for mDot

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Oct 02 13:35:19 2015 +0000
+++ b/main.cpp	Fri Oct 02 16:46:53 2015 +0000
@@ -1,19 +1,19 @@
-/** Dragonfly AnalogIn Example Program
+/** mDot AnalogIn Example Program
  *
  * This program demonstrates how to read an anglog pin using the
- * MultiTech Dragonfly and MultiTech UDK2 hardware. The only
+ * MultiTech mDot and MultiTech UDK2 hardware. The only
  * additional hardware required is an analog voltage source like
  * a potentiometer.
  *
  *
- * This program reads the analog input connected to pin A0 and
- * prints the result.
+ * This program reads the analog input connected to pin PB_1 (UDK2
+ * pin A0) and prints the result.
  */
  
 #include "mbed.h"
  
 int main() {
-    AnalogIn in(A0);
+    AnalogIn in(PB_1);
     
     while (true) {
         printf("analog value: 0x%04X\r\n", in.read_u16());