summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library/pyb.LCD.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/library/pyb.LCD.rst')
-rw-r--r--docs/library/pyb.LCD.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/library/pyb.LCD.rst b/docs/library/pyb.LCD.rst
index 06fe35589d..83cf890b63 100644
--- a/docs/library/pyb.LCD.rst
+++ b/docs/library/pyb.LCD.rst
@@ -49,48 +49,48 @@ Constructors
Methods
-------
-.. method:: lcd.command(instr_data, buf)
+.. method:: LCD.command(instr_data, buf)
Send an arbitrary command to the LCD. Pass 0 for ``instr_data`` to send an
instruction, otherwise pass 1 to send data. ``buf`` is a buffer with the
instructions/data to send.
-.. method:: lcd.contrast(value)
+.. method:: LCD.contrast(value)
Set the contrast of the LCD. Valid values are between 0 and 47.
-.. method:: lcd.fill(colour)
+.. method:: LCD.fill(colour)
Fill the screen with the given colour (0 or 1 for white or black).
This method writes to the hidden buffer. Use ``show()`` to show the buffer.
-.. method:: lcd.get(x, y)
+.. method:: LCD.get(x, y)
Get the pixel at the position ``(x, y)``. Returns 0 or 1.
This method reads from the visible buffer.
-.. method:: lcd.light(value)
+.. method:: LCD.light(value)
Turn the backlight on/off. True or 1 turns it on, False or 0 turns it off.
-.. method:: lcd.pixel(x, y, colour)
+.. method:: LCD.pixel(x, y, colour)
Set the pixel at ``(x, y)`` to the given colour (0 or 1).
This method writes to the hidden buffer. Use ``show()`` to show the buffer.
-.. method:: lcd.show()
+.. method:: LCD.show()
Show the hidden buffer on the screen.
-.. method:: lcd.text(str, x, y, colour)
+.. method:: LCD.text(str, x, y, colour)
Draw the given text to the position ``(x, y)`` using the given colour (0 or 1).
This method writes to the hidden buffer. Use ``show()`` to show the buffer.
-.. method:: lcd.write(str)
+.. method:: LCD.write(str)
Write the string ``str`` to the screen. It will appear immediately.