This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title T-Rex Hot Chocolate | |
author Ed & Tommy Dawson | |
homepage www.puzzlescript.net | |
======== | |
OBJECTS | |
======== | |
Background | |
White |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# /etc/init.d/BootPython | |
### BEGIN INIT INFO | |
# Provides: Runs a Python script on startup | |
# Required-Start: BootPython start | |
# Required-Stop: BootPython stop | |
# Default-Start: 2 3 4 5 | |
# Default-stop: 0 1 6 | |
# Short-Description: Simple script to run python program at boot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RPi.GPIO as GPIO, time, os | |
DEBUG = 1 | |
GPIO.setmode(GPIO.BCM) | |
# Setting up port to use on Blue LED | |
BLUE_LED = 25 | |
GPIO.setup(BLUE_LED, GPIO.OUT) | |
# Define GPIO port to use for PIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RPi.GPIO as GPIO, time, os | |
DEBUG = 1 | |
GPIO.setmode(GPIO.BCM) | |
BLUE_LED = 23 | |
GPIO.setup(BLUE_LED, GPIO.OUT) | |
def RCtime (RCpin): | |
reading = 0 | |
GPIO.setup(RCpin, GPIO.OUT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RPi.GPIO as GPIO, time | |
import random | |
# Setting up random seed variables | |
random.seed() | |
ledresult = 1 | |
# Setting up some structures for the Raspberry Pi LED controls | |
GPIO.setmode(GPIO.BCM) | |
GREEN_LED = 18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RPi.GPIO as GPIO, time | |
import urllib2 | |
# Setting up variables for site checking | |
sitewearechecking = "http://www.idg.com.au" | |
textweshouldfind = "<title>IDG Communications - Australia</title>" | |
frequencyofchecking = 5 #Every 5 Seconds | |
siteup = False #True = site is up | |
# Setting up some structures for the Raspberry Pi LED controls |