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")