Skip to content
Snippets Groups Projects
Select Git revision
  • 50a9dd59f5848d536d2057498671d8fe90c76ef1
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

lcd160cr.rst

Blame
  • lcd160cr.rst 13.54 KiB

    :mod:`lcd160cr` --- control of LCD160CR display

    This module provides control of the MicroPython LCD160CR display.

    LCD160CRv1.0 picture

    Further resources are available via the following links:

    class LCD160CR

    The LCD160CR class provides an interface to the display. Create an instance of this class and use its methods to draw to the LCD and get the status of the touch panel.

    For example:

    import lcd160cr
    
    lcd = lcd160cr.LCD160CR('X')
    lcd.set_orient(lcd160cr.PORTRAIT)
    lcd.set_pos(0, 0)
    lcd.set_text_color(lcd.rgb(255, 0, 0), lcd.rgb(0, 0, 0))
    lcd.set_font(1)
    lcd.write('Hello MicroPython!')
    print('touch:', lcd.get_touch())

    Constructors

    Static methods

    Instance members

    The following instance members are publicly accessible.

    Setup commands

    Pixel access methods

    The following methods manipulate individual pixels on the display.

    Drawing text

    To draw text one sets the position, color and font, and then uses write to draw the text.

    Drawing primitive shapes

    Primitive drawing commands use a foreground and background color set by the set_pen method.

    Touch screen methods

    Advanced commands

    Constants