Report Bugs Here

Moderator: Mmiscool

User avatar
By trackerj
#57292 This one is working:

Code: Select allcls
javascript beep.js
wprint |Press Button!|  'press GPIO0 push button to create event

interrupt d3, [change]
wait

[change]
if io(laststat,d3) = 1 then
   wprint |<img src="https://4.bp.blogspot.com/-6qeKodPf6V4/WBOViAzenyI/AAAAAAAABfQ/dN0Cm7TzS1A4fKIU6-2iPBZ9eNytvrlCwCLcB/s1600/red-dot2.png" onload="beep();">|
end if
wait



Will be great if MMISCOOL or any other that knows more about the inside of ESP Basic interpreter give some more hints about interrupts and javascript calls.