Skip to content

Instantly share code, notes, and snippets.

View jrobinson-uk's full-sized avatar

James Robinson jrobinson-uk

View GitHub Profile
@jrobinson-uk
jrobinson-uk / gist:2284505d71755acf3339
Last active August 29, 2015 14:02
Feedback comment
### Successes :star2:
-
-
### Targets :bulb:
-
-
@jrobinson-uk
jrobinson-uk / gist:697b0509c4f29d04aeba
Last active August 29, 2015 14:02
summerHW exam feedback
Q1 - correct **( mark)**
Q2 - correct **( mark)**
Q3 - correct **( mark)**
Q4a - correct **( mark)**
Q4b - correct **( mark)**
Q5a - correct **( mark)**
import RPi.GPIO as GPIO, time as t
GPIO.setmode(GPIO.BOARD)
#sets up pins as outputs
GPIO.setup(21,GPIO.OUT)
GPIO.setup(23,GPIO.OUT)
GPIO.setup(24,GPIO.OUT)
GPIO.setup(26,GPIO.OUT)
fwd_l = GPIO.PWM(21, 50)
import picamera,RPi.GPIO as GPIO,time
button = 14
balloon = 2
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(button, GPIO.IN, GPIO.PUD_UP)
GPIO.setup(balloon, GPIO.OUT)
a b b d e
f g
payload=BETTDEMO
disable_monitor=N
frequency=434.250
baud=300
camera=Y
low_width=320
low_height=240
high=2000
high_width=640
high_height=480
payload=BETTDEMO
disable_monitor=N
frequency=434.250
baud=300
camera=Y
low_width=320
low_height=240
high=2000
high_width=640
high_height=480
RPi Hardware : BCM2708
RPi Revision : 0015
RPi Model A+ or B+
PITS+ Board
RTTY Payload ID = 'BETTDEMO'
Radio baud rate = 300
GPS Logging enabled
Telemetry Logging enabled
Camera (CSI - raspistill) Enabled
#!/bin/sh
echo "Raspi-Config steps"
sudo raspi-config nonint do_camera 0
sudo raspi-config nonint do_i2c 0
sudo raspi-config nonint do_vnc 0
echo "Updating...."
sleep 2
sudo apt-get update
def run(self):
while True:
# Do something
thread = threading.Thread(target=run, args=())
thread.daemon = True # Daemonize thread
thread.start() # Start the execution