@Gordon and @allObjects thanks for your assistance and advice. I tried the inline C (below) and had almost identical behavior. The 8uS pulse width just is not working. I'll take a look at the PPI function, but my guess is at this point it would be more reliable to go directly to nRF native coding.
var c = E.compiledC(`
// void press(bool)
// int get()
volatile int data;
void press(bool state){
data++;
}
int get() {
int r = data;
data = 0;
return r;
}
`);
setWatch(c.press, D16, {repeat: true, edge:'both', irq: true});
console.log("watch set");
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.
@Gordon and @allObjects thanks for your assistance and advice. I tried the inline C (below) and had almost identical behavior. The 8uS pulse width just is not working. I'll take a look at the PPI function, but my guess is at this point it would be more reliable to go directly to nRF native coding.