I2C LCD: code inside



  • Strings support added:
    alt text

    Usage is easy, example:

        import sys,  machine
        
        # Types: 1 - 128x32 I2C OLED Display, 2 - 128x64 I2C OLED Display
        displayType = 1 
        initialize(displayType)
        set_contrast(128) # 1-255
        displayOn()
        clearBuffer()
        addString(0, 0,  sys.platform + " " + sys.version)
        addString(0, 1,  "---")
        addString(0, 2,  "CPU: {} MHz".format(machine.freq()[0]/1000000))
        drawBuffer()

Log in to reply
 

Pycom on Twitter