With Sketch

This commit is contained in:
Aeris 2018-07-21 19:11:32 +02:00
parent 2f6c7888d5
commit 2a747d3a15
4 changed files with 7 additions and 3 deletions

View file

@ -14,3 +14,9 @@ This piece of garbage receives commands via mqtt and emits NEC decoded commands
Heavily based on https://github.com/markszabo/IRremoteESP8266 Heavily based on https://github.com/markszabo/IRremoteESP8266
## Sketch
Notice, that there are different pin layouts for the TSOP\* Diodes
![Sketch](sketch.png)

View file

@ -63,7 +63,7 @@ int saveCommand(char * command, uint8_t length, uint32_t code){
} }
int saveStore(){ int saveStore(){
EEPROM.begin(512); EEPROM.begin(512); // 4096 Possible
EEPROM.put( 0, store ); // address of begin of eeprom "0" EEPROM.put( 0, store ); // address of begin of eeprom "0"
delay(200); delay(200);
EEPROM.commit(); // Only needed for ESP8266 to get data written EEPROM.commit(); // Only needed for ESP8266 to get data written
@ -102,8 +102,6 @@ void setup_wifi() {
*/ */
} }
uint16_t input[100] = {0};
int check(char * buf, int length){ int check(char * buf, int length){
char * a = buf; char * a = buf;
for (;a-buf < length;a++){ for (;a-buf < length;a++){

BIN
sketch.fzz Normal file

Binary file not shown.

BIN
sketch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB