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

DS18B20 ds1(33); 
DS18B20 ds2(14); 
void setup() {
  Serial.begin(115200);
}
void loop() {

      Serial.print("Temperature1 is ");
      Serial.print(ds1.getTempC());
      Serial.println(" C");
      delay(500);
      Serial.print("Temperature2 is ");
      Serial.print(ds2.getTempC());
      Serial.println(" C");
      delay(500);
}


Attached Files
.zip   KC868-A2.zip (Size: 3.15 KB / Downloads: 146)
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)