pyb.LCD
Classes
Construct an LCD object in the given skin position. |
Module Contents
- class pyb.LCD.LCD(skin_position)
Construct an LCD object in the given skin position.
skin_position
can be ‘X’ or ‘Y’, and should match the position where the LCD pyskin is plugged in.- command(instr_data, buf) None
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.
- fill(colour) None
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.
- get(x, y) int
Get the pixel at the position
(x, y)
. Returns 0 or 1.This method reads from the visible buffer.
- pixel(x, y, colour) None
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.