Created
September 22, 2011 06:56
-
-
Save schappim/1234212 to your computer and use it in GitHub Desktop.
Digital Shield API
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
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment