I write from memory - a possible error in the syntax:
//wiegand.c
/*JSON{
"type" : "staticmethod",
"class" : "wiegand",
"name" : "ReadD0",
"generate" : "jswrap_ReadD0"
} */
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.
I write from memory - a possible error in the syntax:
//wiegand.c
/*JSON{
"type" : "staticmethod",
"class" : "wiegand",
"name" : "ReadD0",
"generate" : "jswrap_ReadD0"
} */
void jswrap_ReadD0{
/ /do
}
setWatch(function(e) { wiegand.ReadD0; }, E2, { repeat:true, edge:'falling', irq : true});
setWatch(wiegand.ReadD0, E2, { repeat:true, edge:'falling', irq : true});
Espruino write:".. not native function .."
please tell me the reason?