This commit is contained in:
Schnitzel 2018-07-23 18:49:02 +02:00
commit 4cb8ed5f56
4 changed files with 8 additions and 3 deletions

View file

@ -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)

View file

@ -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++){

BIN
sketch.fzz Normal file

Binary file not shown.

BIN
sketch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB