Skip to content

Commit 27e1f80

Browse files
committed
Rename LCD to Screen
1 parent e46fb7b commit 27e1f80

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ev3dev.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2141,7 +2141,7 @@ def _map_fb_memory(fbfid, fix_info):
21412141
offset=0
21422142
)
21432143

2144-
class LCD(FbMem):
2144+
class Screen(FbMem):
21452145
"""
21462146
A convenience wrapper for the FbMem class.
21472147
Provides drawing functions from the python imaging library (PIL).
@@ -2162,42 +2162,42 @@ def alignup(n, m):
21622162
@property
21632163
def xres(self):
21642164
"""
2165-
Horizontal LCD screen resolution
2165+
Horizontal screen resolution
21662166
"""
21672167
return self.var_info.xres
21682168

21692169
@property
21702170
def yres(self):
21712171
"""
2172-
Vertical LCD screen resolution
2172+
Vertical screen resolution
21732173
"""
21742174
return self.var_info.yres
21752175

21762176
@property
21772177
def shape(self):
21782178
"""
2179-
Dimensions of the LCD screen.
2179+
Dimensions of the screen.
21802180
"""
21812181
return (self.xres, self.yres)
21822182

21832183
@property
21842184
def draw(self):
21852185
"""
2186-
Returns a handle to PIL.ImageDraw.Draw class associated with LCD.
2186+
Returns a handle to PIL.ImageDraw.Draw class associated with the screen.
21872187
Example::
21882188
lcd.draw.rectangle((10,10,60,20), fill='black')
21892189
"""
21902190
return self._draw
21912191

21922192
def clear(self):
21932193
"""
2194-
Clears the LCD screen
2194+
Clears the screen
21952195
"""
21962196
self._draw.rectangle(((0,0), self.shape), fill="white")
21972197

21982198
def update(self):
21992199
"""
2200-
Applies pending changes to the LCD.
2200+
Applies pending changes to the screen.
22012201
Nothing will be drawn on the screen until this function is called.
22022202
"""
22032203
self.mmap[:] = self._img.tobytes("raw", "1;IR")

0 commit comments

Comments
 (0)