You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arduino: 1.8.19 (Mac OS X), Board: "Arduino Uno WiFi Rev2, ATMEGA328"
'TH02' was not declared in this scope....
I'm quite new to coding so I don't know what else you need....
here is the full sketch...
#include <TH02_dev.h>
#include "Arduino.h"
#include "Wire.h"
void setup()
{
Serial.begin(9600); // start serial for output
Serial.println("TH02_dev demo by seeed studio\n");
/* Power up,delay 150ms,until voltage is stable /
delay(150);
/ Reset HP20x_dev /
TH02.begin();
delay(100);
/ Determine TH02_dev is available or not */
Serial.println("TH02_dev is available.\n");
}
void loop() {
Hi,
I have an issue with this Sketch:
Arduino: 1.8.19 (Mac OS X), Board: "Arduino Uno WiFi Rev2, ATMEGA328"
'TH02' was not declared in this scope....
I'm quite new to coding so I don't know what else you need....
here is the full sketch...
#include <TH02_dev.h>
#include "Arduino.h"
#include "Wire.h"
void setup()
{
Serial.begin(9600); // start serial for output
Serial.println("TH02_dev demo by seeed studio\n");
/* Power up,delay 150ms,until voltage is stable /
delay(150);
/ Reset HP20x_dev /
TH02.begin();
delay(100);
/ Determine TH02_dev is available or not */
Serial.println("TH02_dev is available.\n");
}
void loop() {
float temper = TH02.ReadTemperature();
Serial.println("Temperature: ");
Serial.print(temper);
Serial.println("C\r\n");
float humidity = TH02.ReadHumidity();
Serial.println("Humidity: ");
Serial.print(humidity);
Serial.println("%\r\n");
delay(1000);
}
The text was updated successfully, but these errors were encountered: