sparkfun/Serial7SegmentDisplay — pull request #5 by nseidle (2012-11-02 20:27:55+00:00)
Title: Add brightness control

Hi Jim - I added brightness control to the SevSeg library. It is set by two things, the frame period (define FRAMEPERIOD in SevSeg.h), and the brightness level when you call .DisplayString. The display is lit for brightnessLevel number of microseconds then off for the remainder of the frame period (this is very close to what you were doing). I think it's a decent solution, and works well on my OpenSegment display but I need to test it on your unit. I also added an example sketch to show lowest, middle, and highest brightness levels.