mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-10-05 20:47:50 -04:00
.
This commit is contained in:
parent
b9f7086212
commit
6153ff788d
@ -29,4 +29,5 @@ const char* WIFI_PASSWORD = "208208208";
|
||||
#define ADC1 (1)
|
||||
|
||||
int light_sensor_reading = 0;
|
||||
float lighting_percentage = 0.00;
|
||||
|
||||
|
@ -34,6 +34,7 @@ void TaskStatusLEDCode (void* parameters) {
|
||||
void TaskSensorValuesCode (void* parameters) {
|
||||
|
||||
for (;;) {
|
||||
lighting_percentage = map(analogRead(ADC1), 0.0f, 4095.0f, 0, 100);
|
||||
Serial.println("BME-280 Sensors Readings ...");
|
||||
Serial.print("Temperature:\t\t");
|
||||
Serial.print(bme.readTemperature());
|
||||
|
Loading…
Reference in New Issue
Block a user