@@ -48,14 +48,16 @@ def print(self, value):
48
48
"""
49
49
Print a number or text to the display
50
50
51
- :param value: The text to display
52
- :type value: str, int or float
51
+ :param value: The text or number to display
52
+ :type value: str or int or float
53
53
54
54
.. code-block:: python
55
+
55
56
from adafruit_featherwing import alphanum_featherwing
56
57
57
58
display = alphanum_featherwing.AlphaNumFeatherWing()
58
59
display.print(1234)
60
+
59
61
"""
60
62
self ._seg14x4 .print (value )
61
63
self ._seg14x4 .show ()
@@ -75,6 +77,7 @@ def marquee(self, text, delay=0.25, loop=True):
75
77
76
78
display = alphanum_featherwing.AlphaNumFeatherWing()
77
79
display.marquee('This is some really long text ')
80
+
78
81
"""
79
82
if isinstance (text , str ):
80
83
self .fill (False )
@@ -93,16 +96,17 @@ def _scroll_marquee(self, text, delay):
93
96
94
97
@property
95
98
def blink_rate (self ):
96
- """Blink Rate returns the current rate that the text blinks.
99
+ """
100
+ Blink Rate returns the current rate that the text blinks.
97
101
0 = Off
98
102
1-3 = Successively slower blink rates
99
103
100
104
This example changes the blink rate and prints out the current setting
101
105
102
106
.. code-block:: python
103
107
104
- from adafruit_featherwing import alphanum_featherwing
105
108
from time import sleep
109
+ from adafruit_featherwing import alphanum_featherwing
106
110
107
111
display = alphanum_featherwing.AlphaNumFeatherWing()
108
112
display.print('Text')
@@ -111,6 +115,7 @@ def blink_rate(self):
111
115
display.blink_rate = blink_rate
112
116
print("Current Blink Rate is {}".format(display.blink_rate))
113
117
sleep(4)
118
+
114
119
"""
115
120
return self ._seg14x4 .blink_rate
116
121
@@ -120,15 +125,16 @@ def blink_rate(self, rate):
120
125
121
126
@property
122
127
def brightness (self ):
123
- """Brightness returns the current display brightness.
128
+ """
129
+ Brightness returns the current display brightness.
124
130
0-15 = Dimmest to Brightest Setting
125
131
126
132
This example changes the brightness and prints out the current setting
127
133
128
134
.. code-block:: python
129
135
130
- from adafruit_featherwing import alphanum_featherwing
131
136
from time import sleep
137
+ from adafruit_featherwing import alphanum_featherwing
132
138
133
139
display = alphanum_featherwing.AlphaNumFeatherWing()
134
140
display.print('Text')
@@ -137,6 +143,7 @@ def brightness(self):
137
143
display.brightness = brightness
138
144
print("Current Brightness is {}".format(display.brightness))
139
145
sleep(0.2)
146
+
140
147
"""
141
148
return self ._seg14x4 .brightness
142
149
@@ -152,8 +159,8 @@ def fill(self, fill):
152
159
153
160
.. code-block:: python
154
161
155
- from adafruit_featherwing import alphanum_featherwing
156
162
from time import sleep
163
+ from adafruit_featherwing import alphanum_featherwing
157
164
158
165
display = alphanum_featherwing.AlphaNumFeatherWing()
159
166
@@ -162,6 +169,7 @@ def fill(self, fill):
162
169
sleep(0.5)
163
170
display.fill(False)
164
171
sleep(0.5)
172
+
165
173
"""
166
174
if isinstance (fill , bool ):
167
175
self ._seg14x4 .fill (1 if fill else 0 )
0 commit comments