Skip to content

Commit

Permalink
Add lspins command
Browse files Browse the repository at this point in the history
  • Loading branch information
bill88t committed Aug 6, 2024
1 parent 030335b commit a6b331a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions base/Beryllium/bin/lspins.lja
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fpexec /bin/lspins.py
6 changes: 6 additions & 0 deletions base/Beryllium/bin/lspins.py
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit a6b331a

Please sign in to comment.