Skip to content

Commit

Permalink
Modified to start script at boot
Browse files Browse the repository at this point in the history
  • Loading branch information
worlds6440 committed Aug 2, 2016
1 parent 9b6f545 commit 8f406eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# NOTE: after setting up a new pi, i found the follow webpage is more useful
https://pythonhosted.org/triangula/sixaxis.html
http://www.raspberrypi-spy.co.uk/2015/10/how-to-autorun-a-python-script-on-boot-using-systemd/

# Configuration:
# sudo apt-get -y install bluez bluez-hcidump libbluetooth-dev libusb-dev joystick checkinstall
Expand Down
1 change: 1 addition & 0 deletions rc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def run(self):
# paired and active The bind_defaults argument specifies that we
# should bind actions to the SELECT and START buttons to
# centre the controller and reset the calibration respectively.
self.sounds.Play("start.wav")
while not self.killed:
try:
with SixAxisResource(bind_defaults=True) as joystick:
Expand Down
3 changes: 3 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
cd /home/pi/Projects/bighak
/usr/bin/python /home/pi/Projects/bighak/rc.py

0 comments on commit 8f406eb

Please sign in to comment.