void loop(){
// Here we start to play
EXECUTEFAST() {
UPDATEFAST();
FAST_510ms()
{
// Retreive data from the MaCaco communication channel
Souliss_CommunicationData(memory_map, &data_changed);
// Compare the acquired input with the stored one, send the new value to the
// user interface if the difference is greater than the deadband
Souliss_Logic_T52(memory_map, TEMPERATURE, DEADBAND, &data_changed);
Souliss_Logic_T53(memory_map, HUMIDITY, DEADBAND, &data_changed);
}
// Here we handle here the communication with Android
FAST_GatewayComms();
// Execute the code every 2110ms
FAST_2110ms() {
// Input from anti-theft sensor
LowDigIn(2, Souliss_T4n_Alarm, ANTITHEFT);
// Execute the anti-theft logic
Logic_T41(ANTITHEFT);
// Build a watchdog chain to monitor the nodes
mInput(ANTITHEFT) = Watchdog(0xAB02, WATCHDOG, Souliss_T4n_Alarm);
}
}
EXECUTESLOW() {
UPDATESLOW();
SLOW_10s() {
// Read temperature value from DHT sensor and convert from single-precision to half-precision
float temperature = dht.readTemperature();
Souliss_ImportAnalog(memory_map, TEMPERATURE, &temperature);
//Serial.print ("Temp ");
//Serial.print (dht.readTemperature());
// Read humidity value from DHT sensor and convert from single-precision to half-precision
float humidity = dht.readHumidity();
Souliss_ImportAnalog(memory_map, HUMIDITY, &humidity);
//Serial.print (" & Hum ");
//Serial.println (dht.readHumidity());
digitalWrite(BLINK, HIGH);
delay(500);
digitalWrite(BLINK, LOW);
delay(500);
}
}
}
void loop(){
// Here we start to play
EXECUTEFAST() {
UPDATEFAST();
FAST_510ms()
{
// Retreive data from the MaCaco communication channel
Souliss_CommunicationData(memory_map, &data_changed);
// Compare the acquired input with the stored one, send the new value to the
// user interface if the difference is greater than the deadband
Souliss_Logic_T52(memory_map, TEMPERATURE, DEADBAND, &data_changed);
Souliss_Logic_T53(memory_map, HUMIDITY, DEADBAND, &data_changed);
}
// Here we handle here the communication with Android
FAST_GatewayComms();
// Execute the code every 2110ms
FAST_2110ms() {
// Input from anti-theft sensor
LowDigIn(2, Souliss_T4n_Alarm, ANTITHEFT);
// Execute the anti-theft logic
Logic_T41(ANTITHEFT);
// Build a watchdog chain to monitor the nodes
mInput(ANTITHEFT) = Watchdog(0xAB02, WATCHDOG, Souliss_T4n_Alarm);
}
}
EXECUTESLOW() {
UPDATESLOW();
SLOW_10s() {
// Read temperature value from DHT sensor and convert from single-precision to half-precision
float temperature = dht.readTemperature();
Souliss_ImportAnalog(memory_map, TEMPERATURE, &temperature);
//Serial.print ("Temp ");
//Serial.print (dht.readTemperature());
// Read humidity value from DHT sensor and convert from single-precision to half-precision
float humidity = dht.readHumidity();
Souliss_ImportAnalog(memory_map, HUMIDITY, &humidity);
//Serial.print (" & Hum ");
//Serial.println (dht.readHumidity());
}
}
digitalWrite(BLINK, HIGH);
delay(500);
digitalWrite(BLINK, LOW);
delay(500);
}
--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/032700cf-123c-49f4-a288-8557d51b08cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
FAST_50ms(){
if (WiFi.status() == WL_CONNECTED) {
digitalWrite(BLINK, !digitalRead(BLINK));
}
}
GPIO0 | PullUp | |
GPIO15 | PullDown |
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/0f6b8460-05f4-4514-a095-fb1482e23db9%40googlegroups.com.
Reset on my PCB is open too (not connected) and works well.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/698e0e9a-e0e6-433c-8386-a80c1a62db1d%40googlegroups.com.
I will post it tonight... After making a new board... I am etching a pcb right now.. Hehehe.... Making a simple esp12 board for dimmer 10 watt led white
--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/2e9fbdba-37da-4e49-b0f0-96ddcd088158%40googlegroups.com.
Domenico... Sorry for the late post of my sketch... I am going to test juan sketch first... Testing WiFi manager...
--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/CAKOCCC4ENVHcxdCULOYnv192_oeE8WXY%2BHBTOGH%2BWfGcCi3xyw%40mail.gmail.com.