Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino source code for KC868-AIO]-01 DS18B20
#1
[Arduino source code for KC868-AIO]-01 DS18B20

Code:
#include <DS18B20.h>

DS18B20 ds1(14); 
DS18B20 ds2(5); 
void setup() {
  Serial.begin(115200);
}
void loop() {
Serial.printf("T1:%.2fC||T2:%.2fC\n",ds1.getTempC(),ds2.getTempC());
      delay(500);
}


Attached Files
.zip   KC868-AIO_DS18B20.zip (Size: 514 bytes / Downloads: 272)
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)