|
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
#include <stdio.h> |
|
|
#include <ctype.h> |
|
|
#include <ctype.h> |
|
|
|
|
|
|
|
|
/* Firmware v1.1 04.04.2019 |
|
|
|
|
|
* Christian Schuster |
|
|
|
|
|
* cchschuster@gmail.com |
|
|
|
|
|
|
|
|
/* Firmware v1.4 17.03.2021 |
|
|
|
|
|
* Igor Beloschapkin |
|
|
|
|
|
* beloschapkinig61248@th-nuernberg.de |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
#define SSID "featherNetwork" // network SSID |
|
|
#define SSID "featherNetwork" // network SSID |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
switch(signr) |
|
|
switch(signr) |
|
|
{ |
|
|
{ |
|
|
case '6': digitalWrite(PIN_TAC6, HIGH); break; |
|
|
|
|
|
case '5': digitalWrite(PIN_TAC5, HIGH); break; |
|
|
|
|
|
case '4': digitalWrite(PIN_TAC4, HIGH); break; |
|
|
|
|
|
case '3': digitalWrite(PIN_TAC3, HIGH); break; |
|
|
|
|
|
case '2': digitalWrite(PIN_TAC2, HIGH); break; |
|
|
|
|
|
case '1': digitalWrite(PIN_TAC1, HIGH); break; |
|
|
|
|
|
case '0': allLow(); break; |
|
|
|
|
|
|
|
|
case '6': |
|
|
|
|
|
digitalWrite(PIN_TAC6, HIGH); |
|
|
|
|
|
delay(200); |
|
|
|
|
|
digitalWrite(PIN_TAC6, LOW); |
|
|
|
|
|
break; |
|
|
|
|
|
case '5': |
|
|
|
|
|
digitalWrite(PIN_TAC5, HIGH); |
|
|
|
|
|
delay(200); |
|
|
|
|
|
digitalWrite(PIN_TAC5, LOW); |
|
|
|
|
|
break; |
|
|
|
|
|
case '4': |
|
|
|
|
|
digitalWrite(PIN_TAC4, HIGH); |
|
|
|
|
|
delay(200); |
|
|
|
|
|
digitalWrite(PIN_TAC4, LOW); |
|
|
|
|
|
break; |
|
|
|
|
|
case '3': |
|
|
|
|
|
digitalWrite(PIN_TAC3, HIGH); |
|
|
|
|
|
delay(200); |
|
|
|
|
|
digitalWrite(PIN_TAC3, LOW); |
|
|
|
|
|
break; |
|
|
|
|
|
case '2': |
|
|
|
|
|
digitalWrite(PIN_TAC2, HIGH); |
|
|
|
|
|
delay(200); |
|
|
|
|
|
digitalWrite(PIN_TAC2, LOW); |
|
|
|
|
|
break; |
|
|
|
|
|
case '1': |
|
|
|
|
|
digitalWrite(PIN_TAC1, HIGH); |
|
|
|
|
|
delay(200); |
|
|
|
|
|
digitalWrite(PIN_TAC1, LOW); |
|
|
|
|
|
break; |
|
|
|
|
|
case '0': |
|
|
|
|
|
allLow(); |
|
|
|
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |