Skip to content

Instantly share code, notes, and snippets.

View MrDMurray's full-sized avatar
😎
"On an intergalactic cruise... but he is in his office"

Daniel Murray MrDMurray

😎
"On an intergalactic cruise... but he is in his office"
View GitHub Profile
# this piece of code prints out characters and makes the list of words into uppercase
#The list as it is normally
inventory = ["pickaxe", "sword", "diamonds"]
print(inventory)
#Method 1: Using .upper each time
@MrDMurray
MrDMurray / s.py
Created March 6, 2017 22:59 — forked from dobrienSTJ/s.py
IR Rangefinder Rover
#Only in PYTHON2.7
import RPi.GPIO as GPIO #GPIO Libraries
from time import sleep #Sleep Functions
import readchar #keyboards
GPIO.setwarnings(False)#Blocks error warnings
GPIO.setmode(GPIO.BCM) #Setting Up
GPIO.setup(23, GPIO.OUT) #back right
GPIO.setup(24, GPIO.OUT) #front right