From a6b331a54aef09cc361a86cc43605d31cdbb496f Mon Sep 17 00:00:00 2001 From: Bill Sideris Date: Tue, 6 Aug 2024 21:46:06 +0300 Subject: [PATCH] Add lspins command --- base/Beryllium/bin/lspins.lja | 1 + base/Beryllium/bin/lspins.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 base/Beryllium/bin/lspins.lja create mode 100644 base/Beryllium/bin/lspins.py diff --git a/base/Beryllium/bin/lspins.lja b/base/Beryllium/bin/lspins.lja new file mode 100644 index 00000000..7698619b --- /dev/null +++ b/base/Beryllium/bin/lspins.lja @@ -0,0 +1 @@ +fpexec /bin/lspins.py diff --git a/base/Beryllium/bin/lspins.py b/base/Beryllium/bin/lspins.py new file mode 100644 index 00000000..cb6bed60 --- /dev/null +++ b/base/Beryllium/bin/lspins.py @@ -0,0 +1,6 @@ +rename_process("lspins") +for pv[get_pid()]["i"] in range(len(be.devices["gpiochip"])): + vr("cpins", be.devices["gpiochip"][vr("i")].pins) + for pv[get_pid()]["j"] in vr("cpins"): + term.write(vr("j")) +be.api.setvar("return", "0")