Skip to content

mohsend/seven-segment-driver-arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
}

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages