Skip to content

Instantly share code, notes, and snippets.

@rastating
Created January 31, 2014 21:41
Show Gist options
  • Save rastating/8743773 to your computer and use it in GitHub Desktop.
Save rastating/8743773 to your computer and use it in GitHub Desktop.
#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