Thanks so much. I had the transmitter and receiver the wrong way around.
Using your code I've now got a switch turning on and off! :) Now I just need to figure out why only "channel 1" switches work and not 4.
Am I correct in thinking all I need to change is the CODE variable?
For channel 4 I get this output: 0b1110010111111111000011100 So I replace the current string in code with that but it still turns on channel 1.
Thanks again for your help.
@yayAdrian started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks so much.
I had the transmitter and receiver the wrong way around.
Using your code I've now got a switch turning on and off! :)
Now I just need to figure out why only "channel 1" switches work and not 4.
Am I correct in thinking all I need to change is the CODE variable?
For channel 4 I get this output: 0b1110010111111111000011100
So I replace the current string in code with that but it still turns on channel 1.
Thanks again for your help.