Do you have a link to the transmitter you're using?
If the protocol is different then the receiver code may not be able to get any useful information for you... I don't suppose you have any kind of oscilloscope/logic analyser? You can output the raw data from the receiver, but chances are there will be so much noise that it'll be very hard to pick out the actual signal...
So if you try this code:
function sigOff(e) {
console.log(e.time-e.lastTime);
}
setWatch(sigOff,A0,{repeat:true,edge:"falling"});
It'll output the width of all the pulses received.
You'll probably get lots of lines of random numbers output (all the time), which at least shows the receiver is working.
When you hold down a button on the transmitter you may start to notice that the numbers all start to be mostly the same (maybe falling into 2 distinct ranges) - and that might help to give some idea of how to decode the data that is received...
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.
Do you have a link to the transmitter you're using?
If the protocol is different then the receiver code may not be able to get any useful information for you... I don't suppose you have any kind of oscilloscope/logic analyser? You can output the raw data from the receiver, but chances are there will be so much noise that it'll be very hard to pick out the actual signal...
So if you try this code:
It'll output the width of all the pulses received.
You'll probably get lots of lines of random numbers output (all the time), which at least shows the receiver is working.
When you hold down a button on the transmitter you may start to notice that the numbers all start to be mostly the same (maybe falling into 2 distinct ranges) - and that might help to give some idea of how to decode the data that is received...
Hope that helps!