Skip to content
Browse files

Decimal Function Added

  • Loading branch information...
1 parent 16465aa commit f62b45cea8ec4c49f323a5ef7bcdeef2c2ba3860 @MightyQ MightyQ committed Sep 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Pineapple/README.txt
View
3 Pineapple/README.txt
@@ -18,13 +18,14 @@ pineapple.setAll(boolean value)
pineapple.clear()
Clears the display.
-pineapple.segmentPins(int a, int b, int c, int d, int e, int f, int g, int dp, boolean common)
+pineapple.segmentPins(int a, int b, int c, int d, int e, int f, int g, int dp, boolean common)
Declares the segment pins and the common anode or the common cathode. Set the boolean common HIGH for a common anode display and LOW for a common cathode display. For the segment pin numbers, set to 0 - 7 for the first shift register, 8-15 for the next, and so on.
pineapple.flicker()
Flickers the display. I used this function in the example dice sketch to flicker before displaying the random number.
pineapple.write(int number)
Displays int number. Can be used in for loops, so no more repetition.
+
pineapple.setDecimalPoint(int digit, boolean decimalState)
Put in which digit's decimal point you want to control (int digit), and put in what state you want the decimal point to be in (boolean decimalState). You may put in either "HIGH" or "LOW" for the decimalState variable.

0 comments on commit f62b45c

Please sign in to comment.
Something went wrong with that request. Please try again.