From 2dea0b13e9977521d2a163dcd2a34cdff0119889 Mon Sep 17 00:00:00 2001 From: Kinder College Teilnehmer Date: Fri, 6 Jan 2023 18:47:59 +0100 Subject: [PATCH] update --- robot-start.sh | 4 ++++ robot-update.sh | 4 ++++ testled.py | 6 +++--- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100755 robot-start.sh create mode 100755 robot-update.sh diff --git a/robot-start.sh b/robot-start.sh new file mode 100755 index 0000000..8dd087d --- /dev/null +++ b/robot-start.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +echo starte robot +cd ~/robotik-WS-2022 +sudo ./testled.py diff --git a/robot-update.sh b/robot-update.sh new file mode 100755 index 0000000..201c1b5 --- /dev/null +++ b/robot-update.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +echo aktualisiere robot +cd ~/robotik-WS-2022 +git pull diff --git a/testled.py b/testled.py index fab92f9..aea585b 100755 --- a/testled.py +++ b/testled.py @@ -7,9 +7,9 @@ phy_led = [8, 10, 12, 16, 18, 22, 24, 26, 32, 36, 38, 40, print 'Pi Board Information' print '---------------------' -for key,val in GPIO.RPI_INFO.items(): - print '%s => %s'%(key,val) -response = raw_input('\nIs this board info correct (y/n) ? ').upper() +#for key,val in GPIO.RPI_INFO.items(): +# print '%s => %s'%(key,val) +#response = raw_input('\nIs this board info correct (y/n) ? ').upper() GPIO.setmode(GPIO.BOARD)