Closed hoddl closed 3 years ago
Create your own ir.json file and experiment.
Thank you for the answer. When the effect is diffrent than Solid, the IR do nothing, independet of ir.json. It is possible to create an ir.json for all key that work, but when the effect is change the IR do not work so it must be some thing in the IR do not receive some thing when the effect is change.
Interesting, my theory would be that if an effect is running, the loop is not called often enough and the IR signal is missed (though it should be interrupt based?). Just speculation though.
@hoddl how many LEDs are you running?
Im still testig so only 30 LEDs are runnig. Interrupt problem seems the right way but I have no Idea for a solution.
It does work on all my installs from ESP01, Wemos D1 Mini and ESP32. No issues there.
I think LED pin 5 might make the difference here. Pin 2 is really the recommended on ESP8266 for hardware driving, 5 uses software bitbang and is thus more (too?) taxing on the CPU.
@blazoncek I don't currently have an IR tester, can you quickly test whether setting LED output to 5 causes this issue?
Very unlikely today, but I have a few installs where IR works on GPIO 3 and GPIO12-14.
GPIO3 is also hardware, but if 12-14 work with digital LEDs (on ESP8266), no reason 5 shouldn't.
@hoddl build with debug flag enabled and attach USB cable and monitor serial output. When you press button on IR transmitter it should be displayed on serial output.
@Aircoookie thank you, I change the LED PIN to GPIO2 an now it seems to work.
Switching from GPIO4 to GPIO2 also worked for me, even with ESP's recommended 12K pullup on GPIO2. The refresh rate is an order of magnitude higher.
I have an IR 38key with ir.json implementation. Every key works fine while the effect is on "Solid". FP=0 or something else switch the effect to "Gradient" and the IR Remote dose not work. I wodere because FP means palette and not effect. Same when FX is used the effect changes and Remote do not work. On the WebUI switch to "Solid" and the IR work again. Some Keys are the same code as 24key RGB remote, so I tryed with the precompiled IR Remote Version and the same effect. Remote only works when Effect ist "Solid"
To Reproduce Factoryreset, LED Key =GPIO 5, IR = GPIO 4, ir.json upload from https://kno.wled.ge/interfaces/json-ir/38-key_ir.json
WLED version