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 OB1203_example_driver
Diff: main.cpp
- Revision:
- 21:97a0d4167902
- Parent:
- 20:fcf071379cba
- Child:
- 22:e23b60520b6a
--- a/main.cpp	Thu Oct 18 18:27:33 2018 +0000
+++ b/main.cpp	Mon Nov 05 16:51:29 2018 +0000
@@ -23,7 +23,7 @@
 
 OB1203 ob1203(&i2c); //instantiate the OB1203 object from its class and pass i2c object
 Serial pc(USBTX, USBRX,256000); //create a serial port for printing data to a pc
-//Serial pc(USBTX, USBRX,38400); //create a serial port for printing data to a pc
+//Serial pc(USBTX, USBRX,115200); //create a serial port for printing data to a pc
 Timer t; //use a microsecond timer for time stamping data
 
 
@@ -37,7 +37,7 @@
 bool redAGC = 1;
 bool irAGC = 1;
 bool trim_oscillator = 0;
-bool printCurrent = 0;
+bool printCurrent = 1;
 //****************************
 
 //internal settings
@@ -339,6 +339,7 @@
                             {
                             //PRINT AVG DATA
                                 pc.printf("%d,%d,%d\r\n",t.read_us(),IRavg/running_avg,Ravg/running_avg);
+                                //pc.printf("%d,%d\r\n",IRavg/running_avg,Ravg/running_avg);
 //                            pc.printf("%d,%d\r\n",IRavg/running_avg-IRbaseline/running_baseline, Ravg/running_avg-Rbaseline/running_baseline);
 //                            pc.printf("%d,%d,%d,%d\r\n",Ravg/running_avg,Rbaseline/running_baseline,Rbaseline_prev,Ravg/running_avg-Rbaseline/running_baseline);
                             }