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