Skip to content

Instantly share code, notes, and snippets.

View benjjo's full-sized avatar
💣

Ben McGUffog benjjo

💣
View GitHub Profile
@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.
@freespace
freespace / gist:2585921
Created May 3, 2012 14:14
Backup of some arduino code to handle OV7670
#define SIO_C 2
#define SIO_D 4
#define SIO_CLOCK_DELAY 100
void setup()
{
pinMode(8,OUTPUT);
// while(1)
// {