Trees | Indices | Help |
---|
|
Abstraction of the 4 digit 7-segment display from 4tronix attached to the I2C port. If no display is found, all methods return immediately. Be aware that the display is multiplexed by an internal display thread. So while a text is displayed the thread is running and the program will not terminate. Call clear() to terminate the display thread.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
DEBUG = False
|
|||
VERSION = "1.00"
|
|||
i2c_address = 0x20
|
|||
_myInstance = None pi |
|||
PATTERN = {' ': 0, '!': 134, '"': 34, '#': 0, '$': 0, '%': 0,
|
|
Returns a string with hex digits from given number (>0, any size).
|
Returns a list of four byte values [byte#24-#31, byte#16-#23, byte#8-#15, byte#0-#7] of given integer.
|
Returns an integer from given hex string
|
Returns a string with all displayable characters taken from PATTERN dictionary.
|
Shows the given character at one of the 4 7-segment digits. The character is mapped to its binary value using the PATTERN dictionary defined in PATTERN dictonary. Only one digit can be used at the same time. This method has much less overhead than calling setValue(), because no internal display thread is started. The display remains active even when the program terminates.
|
Shows the pattern of the binary value 0..255.
|
Shows one of the 3 decimal points.
|
Clears the given digit.
|
Turns all digits off. Stops a running display thread. To clear all digits without terminating the display thread, call showText(" "). |
Displays 4 characters of the given text. The text is considered to be prefixed and postfixed by spaces and the 4 character window is selected by the text pointer pos that determines the character displayed at the leftmost digit, e.g. (_: empty): showText("AbCdEF") -> AbCd showText("AbCdEF", 1) -> bCdE showText("AbCdEF", -1) ->_AbC showText("AbCdEF", 4) -> EF__ If the display thread is not yet running, it is started now.
|
Scrolls the current text one step to the left by increasing the text pointer.
|
Scrolls the current text one step to the left by decreasing the text pointer.
|
Shows the scrollable text at the start position by setting the text pointer to its start value.
|
Shows a ticker text that scroll to left until the last 4 characters are displayed. The method blocks until the ticker thread is successfully started and isTickerAlive() returns True.
|
Stops a running ticker. The method blocks until the ticker thread is finished and isTickerAlive() returns False. |
|
Shows a ticker text that scroll to the left until the last 4 characters are displayed. The method blocks until the ticker thread is successfully started and isTickerAlive() returns True.
|
Stops a running blinker. The method blocks until the blinker thread is finished and isBlinkerAlive() returns False. |
|
Displays current version. Format X (three horz bars) + n.nn |
|
_myInstancepi Character to binary value mapping for 4 digit 7 segment display
|
PATTERN
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Apr 16 12:46:33 2017 | http://epydoc.sourceforge.net |