* disable real text

* shorter calibration cycle (10ms)
* higher baudrate (115k2)
This commit is contained in:
hg
2014-04-05 11:36:57 +02:00
parent 0f16b2c3a9
commit 45bdbe0a57
3 changed files with 12 additions and 6 deletions

View File

@ -9,9 +9,12 @@
#include "Resources.h" #include "Resources.h"
// #define USE_REAL_TEXTS 1
//String TEXT;
#ifndef USE_REAL_TEXTS
String TEXT;
#else
const String TEXT_RESOURCES[] = { const String TEXT_RESOURCES[] = {
"Text1", "Text1",
"PeriodMeasure (ms): ", "PeriodMeasure (ms): ",
@ -86,12 +89,15 @@ const String TEXT_RESOURCES[] = {
"r=", "r=",
}; };
#endif
const String& getResource(uint8_t key) { const String& getResource(uint8_t key) {
//TEXT = String("T") + key + String(": "); #ifndef USE_REAL_TEXTS
//return TEXT; TEXT = String(" T") + key + String(": ");
return TEXT;
#else
return TEXT_RESOURCES[key]; return TEXT_RESOURCES[key];
#endif
} }

View File

@ -22,7 +22,7 @@ void setup() {
// delay(5000); // delay(5000);
Serial.begin(9600); Serial.begin(115200);
Config::initialize(); Config::initialize();

View File

@ -22,7 +22,7 @@ const float PT1000_R0 = 1000.0;
const float PT1000_Coeff = 3.85e-3; const float PT1000_Coeff = 3.85e-3;
const unsigned long CONV_TIMEOUT = 0xfffff; const unsigned long CONV_TIMEOUT = 0xfffff;
const unsigned long NUM_OF_CALIBRATION_CYCLES = 250; const unsigned long NUM_OF_CALIBRATION_CYCLES = 250;
const unsigned long CALIBRATION_CYCLE_TIME = 100; // ms const unsigned long CALIBRATION_CYCLE_TIME = 10; // ms