Skip to content
Libraries and sketches to make a 7 segment driver for arduino using a shift-register.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
.gitignore
LICENSE
README.md
SevenSegment.cpp
SevenSegment.h

README.md

7-segment-driver-arduino

Libraries and sketches to make a 7 segment driver for arduino using a shift-register.

Use


void setup() {
	int clock = 7; // pin number to clock
	int data = 8; // pin number to data
	seg = sevenSegment(int clock, int data); 
}

void loop {
	// show numbers from -5 to 34
	for (int i = -5; i < 35; i++) {
		seg.showHex (i);
		delay(500);
	}
	
	// to show arbitrary sign send byte
	seg.sendByte(0x12);
	delay(2000);
}

You can’t perform that action at this time.