Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Marrona11 committed May 12, 2023
1 parent 1fa961b commit f7d7ddf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions TotallySafe/Tools/LED.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/python

# this should be called with two parameters.
# 1) the name of the led (RED or GREEN).
# 2) the mode (OFF, SLOW, FAST, ON)

import rpyc
import sys

led=sys.argv[1]
mode=sys.argv[2]
c = rpyc.connect("localhost", 18861) # The local port for IPC with the bunny-launcher
c.root.blink(led, mode)

0 comments on commit f7d7ddf

Please sign in to comment.