I have error after press the button
pinMode(D35, 'input_pulldown'); setWatch(function(e) { console.log('bttn pressed'); }, D35, { repeat: true, edge: 'rising' });
with D34 also this same error, D15 work
This work fine, but I don want to use setInterval
setInterval(function() { console.log( digitalRead(D34)); }, 100);
Error Guru Meditation Error: Core 0 panic'ed (LoadStoreAlignment). Exception was unhandled. Core 0 register dump: PC : 0x40096a27 PS : 0x00060f30 A0 : 0x800967df A1 : 0x3ffdcf20 A2 : 0x4009b1ff A3 : 0x00000000 A4 : 0x00060423 A5 : 0x00000001 A6 : 0x0006bd0e A7 : 0x00000000 A8 : 0x00000000 A9 : 0x00000000 A10 : 0x00000000 A11 : 0x00000000 A12 : 0x00000024 A13 : 0x6bd00000 A14 : 0xf4240000 A15 : 0x00000008 SAR : 0x0000001c EXCCAUSE: 0x00000009 EXCVADDR: 0x4009b1ff LBEG : 0x4009b258 LEND : 0x4009b286 LCOUNT : 0xffffffff Backtrace: 0x40096a27:0x3ffdcf20
@user125091 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.
I have error after press the button
with D34 also this same error, D15 work
This work fine, but I don want to use setInterval
Error
Guru Meditation Error: Core 0 panic'ed (LoadStoreAlignment). Exception was unhandled.
Core 0 register dump:
PC : 0x40096a27 PS : 0x00060f30 A0 : 0x800967df A1 : 0x3ffdcf20
A2 : 0x4009b1ff A3 : 0x00000000 A4 : 0x00060423 A5 : 0x00000001
A6 : 0x0006bd0e A7 : 0x00000000 A8 : 0x00000000 A9 : 0x00000000
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x00000024 A13 : 0x6bd00000
A14 : 0xf4240000 A15 : 0x00000008 SAR : 0x0000001c EXCCAUSE: 0x00000009
EXCVADDR: 0x4009b1ff LBEG : 0x4009b258 LEND : 0x4009b286 LCOUNT : 0xffffffff
Backtrace: 0x40096a27:0x3ffdcf20