Skip to content

Instantly share code, notes, and snippets.

View benjjo's full-sized avatar
💣

Ben McGUffog benjjo

💣
View GitHub Profile
@benjjo
benjjo / piDwarf.py
Last active November 25, 2016 01:03
Minecraft Pi Raspberry Pi. A tunnel building program for the avid Dwarf.
#!/usr/bin/python3.4
#-----------------------------------------------------------------------------------------------
# Name: A tunnel building program for the avid Minecraft Pi dwarf.
# Purpose: Designed to build descending, ascending and straight tunnels in Minecraft Pi.
# This is written very simply for debugging/learning purposes.
# Most of this code is designed to handle user input.
# Eventually this will be integrated into a user interface with QT and pyQT.
# Version: Development
# Author: benjo charlie
# Created: 2016
@benjjo
benjjo / shiftOutAnalogueDisplay
Created September 14, 2013 06:52
This is an adaptation of the ReadAnalogVoltage tutorial. The idea is to map the analogue input voltage and display that mapped value on a 7 segment display via a shiftbit register.
/*
********************************************************************
Name : shiftOutAnalogueDisplay, Test code
Author : Benjo Charlie
Date : 13 Sept, 2013
Version : 1.0
Notes : This is an adaptation of the ReadAnalogVoltage tutorial.
:
: The idea is to map the analogue input voltage and display that
: mapped value on a 7 segment display via a shiftbit register.
@benjjo
benjjo / shiftOutDisplay
Last active July 1, 2019 18:09
Shiftbit registers can be a little tricky to setup so I designed this simple Hello World code for doing just that. This example uses a 74HC595 Shift Register in conjunction with a common anode seven segment display. This code is designed to shift the "HIGH" value on the Shift Bit Register from Q0-Q7. This is achieved by sending the values 1,2,4,…
/*
********************************************************************
Name : shiftOutDisplay, Test code
Author : Benjo Charlie
Date : 13 Sept, 2013
Version : 1.0
Notes : Shiftbit registers can be a little tricky to setup so I
: designed this simple Hello World code for doing just that.
: This example uses a 74HC595 Shift Bit Register in conjunction
: with a common anode seven segment display.