Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'TH02' was not declared in this scope #8

Closed
little-dave95 opened this issue Jan 6, 2022 · 3 comments
Closed

'TH02' was not declared in this scope #8

little-dave95 opened this issue Jan 6, 2022 · 3 comments
Assignees
Labels
Grove_Temper_Humidity Label for Grove_Temper_Humidity UAY Unassigned yet

Comments

@little-dave95
Copy link

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);

}

@imamnurby
Copy link

imamnurby commented Feb 17, 2022

I think you can add TH02_dev TH02; before void setup()

*edit due to grammar

@lakshanthad
Copy link

I think you can add TH02_dev TH02; before void setup()

*edit due to grammar

Did this solution work for you @little-dave95? I am going to close this issue if that is okay.

@MatthewJeffson MatthewJeffson added UAY Unassigned yet Grove_Temper_Humidity Label for Grove_Temper_Humidity labels Oct 9, 2024
@Lesords Lesords self-assigned this Oct 14, 2024
@Lesords
Copy link

Lesords commented Oct 16, 2024

Hello,

I'm going to close this issue, feel free to re-open it if you have any other questions.

@Lesords Lesords closed this as completed Oct 16, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Issues and PR Assemble Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Grove_Temper_Humidity Label for Grove_Temper_Humidity UAY Unassigned yet
Projects
Status: Done
Development

No branches or pull requests

5 participants