Merge branch 'master' of https://git.chaospott.de/aeris/mqtt-ir-bridge
This commit is contained in:
commit
4cb8ed5f56
|
@ -9,8 +9,15 @@ This piece of garbage receives commands via mqtt and emits NEC decoded commands
|
||||||
- Wemos D1 Mini
|
- Wemos D1 Mini
|
||||||
- IR Receiver Diode TSOP38238
|
- IR Receiver Diode TSOP38238
|
||||||
- Some IR Diode
|
- Some IR Diode
|
||||||
|
- BC337 Transistor
|
||||||
|
|
||||||
## Used Software
|
## Used Software
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
|
|
|
@ -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
BIN
sketch.fzz
Normal file
Binary file not shown.
BIN
sketch.png
Normal file
BIN
sketch.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
Loading…
Reference in a new issue