From d9bf2331085c6b3d1287c4b09e298e11117070f5 Mon Sep 17 00:00:00 2001 From: martin-ger Date: Mon, 19 Feb 2018 20:35:32 +0100 Subject: [PATCH] Update script.no_serial --- scripts/script.no_serial | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/script.no_serial b/scripts/script.no_serial index b01e4f5..e18516e 100644 --- a/scripts/script.no_serial +++ b/scripts/script.no_serial @@ -1,11 +1,17 @@ +% This is a sample script that disables the UART and uses GPIO 1 and GPIO 3 +% as normal digital I/O pins (useful e.g. on a ESP01) + % Config params, overwrite any previous settings from the commandline +% disable all output on the UART config system_output 0 +% Now the initialization, this is done once after booting on init do gpio_pinmode 1 input pullup gpio_pinmode 3 input pullup +% Now the events, checked whenever something happens on gpio_interrupt 1 pullup do println "Interrupt GPIO 1: " | $this_gpio