Strana 66 z 73
Poznámky redaktora
0 (NOMINAL_TEMPERATURE 273.length()
== 15) {
uint16_t idx n.write(0x7E);
Wire.csv"
if (n.endsWith(".substring(9, 12).0 (st B_COEFFICIENT +
1.csv") n.write(0x37);
Wire.toInt();
if (idx fileIndex) fileIndex idx;
}
f.open("/");
File root.0);
float log(R NOMINAL_RESISTANCE);
st 1.openNextFile();
while (f) {
String f.beginTransmission(I2C_ADDR);
Wire.66
// ---------- pomocné funkce ----------
String floatComma(float uint8_t dec {
char buf[24];
dtostrf(v, dec, buf);
String s(buf);
s.endTransmission();
delay(1000);
Serial.exists(curFile));
.startsWith("/datalog_") n.close();
}
void createNewLogFile() {
do {
fileIndex++;
sprintf(curFile, "/datalog_%03u.println("BMI160 Auto-calibration done");
}
// ---------- utilities ----------
void findLastIndex() {
fileIndex 0;
File root SD.3 1.csv", fileIndex);
} while (SD.15));
return 273.3 4095.openNextFile();
}
root.', ',');
return s;
}
// ---------- RS-485 driver ----------
void preTx() digitalWrite(RS485_DE, HIGH); }
void postTx() digitalWrite(RS485_DE, LOW); }
// ---------- NTC ----------
float ntcTemp(int pin) {
int adc analogRead(pin);
float adc 3.15;
}
// ---------- BMI160 auto-kalibrace ----------
void bmiAutoCalibrate() {
Wire.name(); "/datalog_123.0;
float SERIES_RESISTOR (3.replace('.close();
f root