aboutsummaryrefslogtreecommitdiff
path: root/code/002-button.js
blob: 7fff3729fa4701a3419feb143b572020e8aa6fae (plain)
1
2
3
4
5
6
7
var on = false;
var change = function() {
  on = !on;
  LED1.write(on);
  };

setWatch(change, BTN1, {repeat:true, edge:"rising"});