You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
228 B
Plaintext

open Arduinolib
node button (bpin, ledpin : int) returns ()
var value : int;
i : int;
let
i = 0 fby (i+1);
value = dread(bpin);
() = dwrite((ledpin, value));
tel
node main() returns ()
let
() = button(8, 13);
tel