pub

Dependencies:   CANnucleo mbed-dev

Fork of CANnucleo_Hello by Zoltan Hudak

Revision:
27:f71400b1fa56
Parent:
26:1d0488a03905
Child:
28:50dcf8aea3ee
--- a/main.cpp	Wed Mar 08 19:19:22 2017 +0000
+++ b/main.cpp	Wed Mar 08 19:26:27 2017 +0000
@@ -119,7 +119,7 @@
             counter++;                          // increment counter
             txMsg.clear();                      // clear Tx message storage
             txMsg.id = TX_ID;                   // set ID
-            voltage = (analogIn * 5)/4096.0f;   // small floating voltage at analog input
+            voltage = (analogIn * 3.3f)/4096.0f;// small floating voltage at analog input
             txMsg << counter << voltage;        // append data (total data length must be <= 8 bytes!)
             led = OFF;                          // turn LED off
             if(can->write(txMsg)) {             // transmit message