diff --git a/README.md b/README.md index 6a69265..1b519bf 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,15 @@ This piece of garbage receives commands via mqtt and emits NEC decoded commands - Wemos D1 Mini - IR Receiver Diode TSOP38238 - Some IR Diode + - BC337 Transistor ## Used Software Heavily based on https://github.com/markszabo/IRremoteESP8266 +## Sketch + +Notice, that there are different pin layouts for the TSOP\* Diodes + +![Sketch](sketch.png) + diff --git a/mqtt_ir.ino b/mqtt_ir.ino index 07ddb0a..af29f91 100644 --- a/mqtt_ir.ino +++ b/mqtt_ir.ino @@ -63,7 +63,7 @@ int saveCommand(char * command, uint8_t length, uint32_t code){ } int saveStore(){ - EEPROM.begin(512); + EEPROM.begin(512); // 4096 Possible EEPROM.put( 0, store ); // address of begin of eeprom "0" delay(200); 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){ char * a = buf; for (;a-buf < length;a++){ diff --git a/sketch.fzz b/sketch.fzz new file mode 100644 index 0000000..6fb34ba Binary files /dev/null and b/sketch.fzz differ diff --git a/sketch.png b/sketch.png new file mode 100644 index 0000000..7684158 Binary files /dev/null and b/sketch.png differ