Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino source code for KC868-ASR]-03 DS18B20
#1
Code:
#include <DS18B20.h>

DS18B20 ds1(32);  //channel-1-DS18b20
DS18B20 ds2(33);  //channel-2-DS18b20


void setup() {
  Serial.begin(115200);
}

void loop() {

Serial.printf("T1:%.2f || T2:%.2f \n",ds1.getTempC(),ds2.getTempC());
delay(1000);
}


Attached Files
.zip   KC868-ASR_DS18B20.zip (Size: 105.14 KB / Downloads: 132)
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)