Created
January 31, 2014 21:41
-
-
Save rastating/8743773 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <LEDDisplay.h> | |
LEDDisplay *led; | |
void setup() | |
{ | |
int digitFlagPins[] = {10, 11}; | |
int segmentPins[] = {2, 3, 4, 5 ,6 ,7 ,8, 9}; | |
int decimalPointPin = 9; | |
led = new LEDDisplay(2, digitFlagPins, segmentPins, decimalPointPin); | |
} | |
void loop() | |
{ | |
led->displayNumber(2, 1); | |
led->displayNumber(4, 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment