![]() |
thinkingSkins - Moss fasace
Version 1.0
|
#include "defines.h"#include "TM_motorDriver.h"#include <Adafruit_Sensor.h>#include <Adafruit_TSL2561_U.h>#include <Wire.h>#include <Adafruit_NeoPixel.h>#include <pgmspace.h>#include "WS2812_Definitions.h"Functions | |
| void | setup () |
| void | loop () |
| void | triggerDustEvent () |
| void | triggerLightEvent () |
| void | triggerTemperatureEvent () |
| void | triggerHumidityEvent_A () |
| void | triggerHumidityEvent_B () |
| void | setupSensors () |
| void | loopDustSensor () |
| void | loopLightSensor () |
| void | loopTemperatureSensor () |
| void | loopHumiditySensor () |
| int | readDustSensor () |
| boolean | testDustSensor () |
| boolean | testLightSensor () |
| boolean | testTemperatureSensor () |
| boolean | testHumiditySensor_A () |
| boolean | testHumiditySensor_B () |
| void | wait (int duration) |
Variables | |
| unsigned long | dustSensorTimer = 0 |
| unsigned long | lightSensorTimer = 0 |
| unsigned long | temperatureSensorTimer = 0 |
| unsigned long | humiditySensorTimer = 0 |
| unsigned long | time = 0 |
| int | particles = 0 |
| int | lux = 0 |
| int | temperature = 0 |
| int | humidity_A = 0 |
| int | humidity_B = 0 |
| boolean | dustSensoredPrev = false |
| boolean | lightSensoredPrev = false |
| boolean | temperatureSensoredPrev = false |
| boolean | humiditySensoredPrev_A = false |
| boolean | humiditySensoredPrev_B = false |
| Adafruit_NeoPixel | colorLed = Adafruit_NeoPixel(1, LED_PIN, NEO_GRB + NEO_KHZ800) |
| Adafruit_TSL2561_Unified | lightSensor = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 11235) |
| sensors_event_t | lightEvent |
| TM_motorDriver | motors = TM_motorDriver() |
| void loop | ( | ) |
| void loopDustSensor | ( | ) |
| void loopHumiditySensor | ( | ) |
| void loopLightSensor | ( | ) |
| void loopTemperatureSensor | ( | ) |
| int readDustSensor | ( | ) |
| void setup | ( | ) |
| void setupSensors | ( | ) |
| boolean testDustSensor | ( | ) |
| boolean testHumiditySensor_A | ( | ) |
| boolean testHumiditySensor_B | ( | ) |
| boolean testLightSensor | ( | ) |
| boolean testTemperatureSensor | ( | ) |
| void triggerDustEvent | ( | ) |
| void triggerHumidityEvent_A | ( | ) |
| void triggerHumidityEvent_B | ( | ) |
| void triggerLightEvent | ( | ) |
| void triggerTemperatureEvent | ( | ) |
| void wait | ( | int | duration | ) |
| Adafruit_NeoPixel colorLed = Adafruit_NeoPixel(1, LED_PIN, NEO_GRB + NEO_KHZ800) |
| boolean dustSensoredPrev = false |
| unsigned long dustSensorTimer = 0 |
| int humidity_A = 0 |
| int humidity_B = 0 |
| boolean humiditySensoredPrev_A = false |
| boolean humiditySensoredPrev_B = false |
| unsigned long humiditySensorTimer = 0 |
| sensors_event_t lightEvent |
| Adafruit_TSL2561_Unified lightSensor = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 11235) |
| boolean lightSensoredPrev = false |
| unsigned long lightSensorTimer = 0 |
| int lux = 0 |
| TM_motorDriver motors = TM_motorDriver() |
| int particles = 0 |
| int temperature = 0 |
| boolean temperatureSensoredPrev = false |
| unsigned long temperatureSensorTimer = 0 |
| unsigned long time = 0 |