Bases: object
FW Driver for an ST7735S TFT controller.
Clear the image buffer to the specified RGB color (default black).
Parameters: | color – Background color. |
---|---|
Returns: | none |
Write a byte or array of bytes to the display as command data.
Parameters: | data – Single byte command. |
---|---|
Returns: | none |
Write a byte or array of bytes to the display as display data.
Parameters: | data – Data byte |
---|---|
Returns: | none |
Write the provided image to the hardware. If no image parameter is provided the display buffer will be written to the hardware. If an image is provided, it should be RGB format and the same dimensions as the display hardware.
Parameters: | image – picture image |
---|---|
Returns: | none |
Return a PIL ImageDraw instance for 2D drawing on the image buffer.
Parameters: | none – |
---|---|
Returns: | none |
Puts the display or takes it out of idle mode
Parameters: | onoff – idle mode status |
---|---|
Returns: | none |
Intializes the display controller and prepares the it for any subsequent operations.
Parameters: | none – |
---|---|
Returns: | none |
Disables color inversion on the display.
Parameters: | status – Color inversion status. |
---|---|
Returns: | none |
Resets the display, (RST) reset pin must be connected.
Parameters: | none – |
---|---|
Returns: | none |
Sets the scroll area.
Parameters: |
|
---|---|
Returns: | none |
Writes a byte or array of bytes to the display. dataOrCmd parameter controls if byte should be interpreted as display data (True)/ command data otherwise. Length is an optional size of bytes to write in a single SPI transaction, with a default of 4096.
Parameters: |
|
---|---|
Returns: | none |
Set the pixel address window for proceeding drawing commands.
Parameters: |
|
---|---|
Returns: | none |
Sets the pixel color depth. This can be 12,16 or 18 bit.
Parameters: | mode – Constant number |
---|---|
Returns: | none |
Sets the gamma mode of the display.
Parameters: | gamma – Is from 1 to 4. |
---|---|
Returns: | none |
Sets the partial scroll area. This function is used in conjuction with the scrollArea function.
Parameters: |
|
---|---|
Returns: | none |
Sets the display text orientation. Mirrored modes are also supported on top of portrait and landscape modes.
Parameters: | mode – orientation data |
---|---|
Returns: | none |