Demo for the MAX11301WING

Dependencies:   MAX113XX_Pixi max32630fthr

Fork of MAX11301_Demo by Corey Harris

Files at this revision

API Documentation at this revision

Comitter:
coreyharris
Date:
Tue Aug 22 14:10:58 2017 +0000
Parent:
3:b3fbff9ab12e
Child:
5:2edbaf7fcf7b
Commit message:
Updated serial print statement to reflect new potentiometer setup

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Aug 21 14:18:36 2017 +0000
+++ b/main.cpp	Tue Aug 22 14:10:58 2017 +0000
@@ -24,7 +24,7 @@
         
         pixi->singleEndedADCRead(MAX113XX_Pixi::PORT9, adcData);    // Read value from PORT9
         adcVoltage = -5 + 2.442e-3  * adcData;                      // Convert ADC val to a voltage
-        pc.printf("ADC Voltage is %1.3f V, Count is 0x%x \r\n", adcVoltage, idx);
+        pc.printf("ADC Read is : %i,\tVoltage is %1.3f V \r\n", adcData, adcVoltage);
         wait(0.05);   
     }
 }