* disable real text
* shorter calibration cycle (10ms) * higher baudrate (115k2)
This commit is contained in:
@ -9,9 +9,12 @@
|
||||
#include "Resources.h"
|
||||
|
||||
|
||||
// #define USE_REAL_TEXTS 1
|
||||
|
||||
//String TEXT;
|
||||
|
||||
#ifndef USE_REAL_TEXTS
|
||||
String TEXT;
|
||||
#else
|
||||
const String TEXT_RESOURCES[] = {
|
||||
"Text1",
|
||||
"PeriodMeasure (ms): ",
|
||||
@ -86,12 +89,15 @@ const String TEXT_RESOURCES[] = {
|
||||
"r=",
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
const String& getResource(uint8_t key) {
|
||||
//TEXT = String("T") + key + String(": ");
|
||||
//return TEXT;
|
||||
#ifndef USE_REAL_TEXTS
|
||||
TEXT = String(" T") + key + String(": ");
|
||||
return TEXT;
|
||||
#else
|
||||
return TEXT_RESOURCES[key];
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ void setup() {
|
||||
|
||||
// delay(5000);
|
||||
|
||||
Serial.begin(9600);
|
||||
Serial.begin(115200);
|
||||
|
||||
Config::initialize();
|
||||
|
||||
|
@ -22,7 +22,7 @@ const float PT1000_R0 = 1000.0;
|
||||
const float PT1000_Coeff = 3.85e-3;
|
||||
const unsigned long CONV_TIMEOUT = 0xfffff;
|
||||
const unsigned long NUM_OF_CALIBRATION_CYCLES = 250;
|
||||
const unsigned long CALIBRATION_CYCLE_TIME = 100; // ms
|
||||
const unsigned long CALIBRATION_CYCLE_TIME = 10; // ms
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user