/
LED blinking at boot up
LED blinking at boot up
python script pi@raspberrypi:~ $ more /home/pi/Desktop/LED_blinking.py #!/usr/bin/python import RPi.GPIO as GPIO from time import sleep led = [4,17,22,10,9,11]; GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) for l in led: GPIO.setup(l,GPIO.OUT) GPIO.output(l,GPIO.LOW) while True: for l in led: GPIO.output(l,GPIO.HIGH) sleep(0.1) GPIO.output(l,GPIO.LOW) | rc.local pi@raspberrypi:~ $ more /etc/rc.local #!/bin/sh -e . . . echo "starting LED blinking" /home/pi/Desktop/LED_blinking.py & . . . exit 0 |
---|
, multiple selections available,
Related content
BERRYCLIP ADD-ON BOARDS
BERRYCLIP ADD-ON BOARDS
More like this
CPU 100%
CPU 100%
More like this
WebHook from HealthBot to NorthStar on JCL
WebHook from HealthBot to NorthStar on JCL
More like this
motd or Message Of The Day and issue
motd or Message Of The Day and issue
More like this
Scratch GPIO
Scratch GPIO
More like this
Restful API server with flask and python
Restful API server with flask and python
More like this