Spike Prime & Robot Inventor python Library Reference
Spike Prime & Robot Inventor python Library
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lib.mindsensors.TFTPACK Class Reference

Public Member Functions

def __init__ (self, port)
 Initialize the class with the i2c address of your TFTPack. More...
 
def rgb_hex565 (self, RGB)
 
def print (self, data)
 
def write_command (self, command)
 Writes command to TFTpack. More...
 
def clear_display (self)
 Clears the TFTPack display.
 
def backlight (self, state)
 Toggels the TFTPack display Backlight.
 
def get_touch (self)
 
def run_demo (self)
 Run demo mode of TFTPack display.
 
def invert_display (self)
 invert_display mode of TFTPack display
 
def print_string (self, data_string)
 splash_display mode of TFTPack display
 
def print_number (self, number)
 
def print_float (self, number)
 
def set_curser_xy (self, position)
 set_curser at xy of TFTPack display
 
def set_color (self, Frgb, Brgb=[0, 0, 0])
 set_color of TFTPack display text to forground[R,G,B] background[R,G,B]
 
def set_font_size (self, font, size)
 set_font_size of TFTPack display text
 
def set_rotation (self, rotation)
 set_rotation of TFTPack display
 
def draw_line (self, start, end, RGB)
 draw_line on TFTPack display from start to finish with Color RGB
 
def draw_pixel (self, position, RGB)
 
def draw_bitmap (self, position, flip, name)
 
def draw_circle (self, center, radius, RGB, fill)
 draw_circle on TFTPack display from center of radieus with Color RGB, W/WO fill
 
def draw_rectangle (self, topleft, width, hight, radius, RGB, fill)
 draw_rectangle on TFTPack display at topleft width and hight with curved corner of radius and with Color RGB, W/WO fill
 
def draw_triangle (self, vertex1, vertex2, vertex3, RGB, fill)
 draw_triangle on TFTPack display from vertex1 ,vertex2 and vertex3 with Color RGB, W/WO fill
 

Public Attributes

 port
 

Static Public Attributes

list TouchPoint = [0,0]
 

Constructor & Destructor Documentation

◆ __init__()

def lib.mindsensors.TFTPACK.__init__ (   self,
  port 
)

Initialize the class with the i2c address of your TFTPack.

Parameters
TFTPack_addressAddress of your TFTPack.

Member Function Documentation

◆ write_command()

def lib.mindsensors.TFTPACK.write_command (   self,
  command 
)

Writes command to TFTpack.

Parameters
commandValue to write to the command register.

The documentation for this class was generated from the following file: