Skip to content

Instantly share code, notes, and snippets.

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