Easily add a four digit 7-segment display to your Arduino |
|
||||||||||||||
Digit Shield LibraryUsing the Digit Shield is extremely simple when you use the Digit Shield library. Download the ZIP file and install it in your Arduino libraries folder just like any other library. Here's a summary of the library API: DigitShield.begin() : initialize the Digit Shield. This is required before use.DigitShield.setValue(int value) : set an integer value to display DigitShield.setValue(double value) : set a floating point value to display DigitShield.setPrecision(int decimalPlaces) : specify the number of decimal places to display DigitShield.setLeadingZeros(boolean b) : specify whether numbers should be displayed with leading zeros (default is false) DigitShield.setBlank(boolean b) : allows you to blank the display completely. Specify false to turn the display back on. DigitShield.setDigit(int d, int n) : set digit d to value n. Digits are numbered 1-4 from left to right. DigitShield.setDecimalPoint(int d, boolean on) : turn the decimal point of digit d on or off. Examples
|
||||||||||||||