Skip to content

Commit

Permalink
updated examples for [arduino] and [esp8266]
Browse files Browse the repository at this point in the history
  • Loading branch information
hasenradball committed Apr 26, 2024
1 parent 4a40ca5 commit 7de5f29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void setup() {
auto status = am2302.read();
Serial.print("\n\nstatus of sensor read(): ");
Serial.println(status);
Serial.println(AM2302::AM2302_Sensor::get_sensorState(status));
Serial.print("Temperature: ");
Serial.println(am2302.get_Temperature());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void loop() {

Serial.print("\tSensor Status : ");
for (size_t i = 0; i < SIZE; ++i) {
Serial.print(sensor_arr[i].get_sensorState(sensor_arr[i].read()));
Serial.print(AM2302::AM2302_Sensor::get_sensorState(sensor_arr[i].read()));
Serial.print("\t");
}
Serial.print("\n\tTemperature : ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void loop() {

Serial.print("\tSensor Status : ");
for (size_t i = 0; i < sensor_arr.size(); ++i) {
Serial.print(sensor_arr[i].get_sensorState(sensor_arr[i].read()));
Serial.print(AM2302::AM2302_Sensor::get_sensorState(sensor_arr[i].read()));
Serial.print("\t");
}
Serial.print("\n\tTemperature : ");
Expand Down

0 comments on commit 7de5f29

Please sign in to comment.