Hi does anyone know where I can download and how to install control for GPIO on the weeze scratch?
Its so much fun to use scratch but its kinda limited to visual efect only, Id like to use it for comunication with the outside world.
Hi does anyone know where I can download and how to install control for GPIO on the weeze scratch?
Its so much fun to use scratch but its kinda limited to visual efect only, Id like to use it for comunication with the outside world.
but it doesn't install when I try to run sudo /boot/install_scratch_gpio2.sh
What's the error message you're getting?
Did you download install_scratch_gpio2.sh into /boot or /home/pi?
It is working now...! I had to run it from the /home/pi
THANKS!
Guys... Please, what am I doing wrong? It indicates an indentation error - line 7
import time
import RPi.GPIO as GPIO
GPIO.cleanup()
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7,GPIO.OUT)
while True:
GPIO.output(7,GPIO.HIGH)
time.sleep(1)
GPIO.output(7,GPIO.LOW)
time.sleep(1)
You need to indent the line(s) following a "while" loop to show
which lines are part of the loop. So instead of:
while True:
GPIO.output(7,GPIO.HIGH)
time.sleep(1)
GPIO.output(7,GPIO.LOW)
time.sleep(1)
you probably want:
while True:
GPIO.output(7,GPIO.HIGH)
time.sleep(1)
GPIO.output(7,GPIO.LOW)
time.sleep(1)
Thank you!