2 temperature questions with DS18B20
question 1:
i need read 5 ds18b20 temperature sensors. example codes read temperature float, temperatures between 0 , 100 deg c. can read integer?
void loop() {
sensors.requesttemperatures();
int value;
value=sensors.gettempcbyindex(1);
question 2:
in above code, sensors.requesttemperatures() necessary? found example code didn't have it.
thank you.
i need read 5 ds18b20 temperature sensors. example codes read temperature float, temperatures between 0 , 100 deg c. can read integer?
void loop() {
sensors.requesttemperatures();
int value;
value=sensors.gettempcbyindex(1);
question 2:
in above code, sensors.requesttemperatures() necessary? found example code didn't have it.
thank you.
q1: do. happens?
q2: happens when try?
supplementary. have read documentation?
q2: happens when try?
supplementary. have read documentation?
Arduino Forum > Using Arduino > Programming Questions > 2 temperature questions with DS18B20
arduino
Comments
Post a Comment