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__ Because the
4tronix display is multiplexed (one digit shown after the other), a
display thread is started now to display all 4 digits in a rapid
succession (if it is not yet started). The parameters are saved and
compared to the values at the next invocation. If all are identical, the
function returns immediately.
- Parameters:
text - the text to display (list, tuple, string or integer)
pos - the start value of the text pointer (character index positioned a
leftmost digit)
dp - a list with one to four 1 or 0, if the decimal point is shown or
not. The decimal point selection depends on the attached display
type. For the 4tronix display: the first element in list
corresponds to right dp, second element to center floor dp, the
third element to center ceil dp. For the DgTell: the first
element in list corresponds to dp at second digit from the right,
the second element to dp at third digit from the right, the third
element to dp at leftmost digit, the forth element to the dp at
rightmost digit. More than 4 elements are ignored
- Returns:
- True, if successful; False, if the display is not available, text
or dp has illegal type or one of the characters can't be
displayed
|