Skip to content

Commit

Permalink
eternal voltage reference
Browse files Browse the repository at this point in the history
  • Loading branch information
oploc committed Nov 24, 2023
1 parent 005a1fa commit 0d9005f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fw/LABDOS/LABDOS.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#define MINOR 3 // Features
#include "githash.h"

//#define CALIBRATION

#define XSTR(s) STR(s)
#define STR(s) #s

Expand Down Expand Up @@ -127,7 +129,7 @@ boolean SDinserted = true;
// 14 | A14 | A9 | 1x
// 15 | A15 | A9 | 1x
#define PIN 0
uint8_t analog_reference = INTERNAL2V56; // DEFAULT, INTERNAL, INTERNAL1V1, INTERNAL2V56, or EXTERNAL
uint8_t analog_reference = EXTERNAL; // DEFAULT, INTERNAL, INTERNAL1V1, INTERNAL2V56, or EXTERNAL


uint8_t bcdToDec(uint8_t b)
Expand Down Expand Up @@ -484,7 +486,13 @@ void loop()

for(int n=base_offset-1; n<(base_offset-1+RANGE); n++)
{
#ifdef CALIBRATION
dataString += "\t,";
dataString += String(n);
dataString += "\t*";
#else
dataString += ",";
#endif
dataString += String(histogram[n]);
}

Expand Down

0 comments on commit 0d9005f

Please sign in to comment.