Merge commit '85e5642b2ab537ae9e1c0bccac8add975b8a9ed1' into mntm-dev

This commit is contained in:
Willy-JL
2024-10-31 17:41:31 +00:00
64 changed files with 3152 additions and 539 deletions

View File

@@ -19,7 +19,7 @@ eventLoop.subscribe(eventLoop.timer("periodic", 1000), function (_, _item, led,
// read potentiometer when button is pressed
print("Press the button (PC1)");
eventLoop.subscribe(button.interrupt(), function (_, _item, pot) {
print("PC0 is at", pot.read_analog(), "mV");
print("PC0 is at", pot.readAnalog(), "mV");
}, pot);
// the program will just exit unless this is here