esp32-micropython-i2cLCD


Nameesp32-micropython-i2cLCD JSON
Version 0.0.2 PyPI version JSON
download
home_page
Summaryuma biblioteca para utilização de um display i2c no esp32 micropython
upload_time2023-06-17 17:36:28
maintainer
docs_urlNone
authorissei momonge
requires_python
licenseMIT License
keywords esp32 micropython i2c lcd
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # I2C LCD micropython esp32

import

    from LCD.lcd import LCD1602
    
    LCD = LCD1602(scl=12, sda=14)
    #LCD1602(scl, sda, num_lines=None, num_columns=None, freq=None):

print
    
    LCD.puts('teste',x=0,y=1)
    #y 0~1
    #x 0~15

print txt

    from time import sleep
    
    LCD.println(['1','2','3','4','5'])
    
    x = 2
    while True:
        sleep(1)
        LCD.println(linha=x)
        x+=1

    #linha == line for txt(list)

for txt

    from time import sleep
    
    LCD.println('1 \n 2 \n 3 \n 4 \n 5')

    x = 2
    while True:
        sleep(1)
        LCD.println(linha=x)
        x+=1

print choices

    from time import sleep
    
    LCD.escolhas('txtprincipal', 0, ['1','2','3','4','5'])
    
    x = 1
    while True:
        sleep(1)
        LCD.escolhas(posicao=x)
        if x == 3:
            print(LCD.escolhas(select=True))
            break
        x+=1

lcd clear

    LCD.clear()
    
lcd print in line

    LCD.putsln(['line 0', 'line 1'])

especial char

    from time import sleep
    
    b = bytearray([0x04,0x0A,0x04,0x0A,0x04,0x0A,0x04,0x0A])
    
    LCD.char(0,b)
    
    v = ' 1 \n 2 \n 3 \n 4 \n 5 \n '+chr(0)
    # or v = ['1','2','3','4','5',chr(0)]
    
    LCD.println(v)
    
    x = 2
    while True:
        sleep(1)
        LCD.println(linha=x)
        x+=1

    #linha == line for txt(list)

lcd hal backlight

    LCD.hal_backlight()

lcd blink

    LCD.brilhe(local=[1,1])
    # or lcd not blink LCD.brilhe(False) 

lcd animation for clear line
    
    LCD.apagarlinha(1)


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "esp32-micropython-i2cLCD",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "esp32 micropython i2c LCD",
    "author": "issei momonge",
    "author_email": "mggyggf@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0a/c4/1923f0dee100a0270a95371ab1d4f4c08086de55118573181661cd552aff/esp32_micropython_i2cLCD-0.0.2.tar.gz",
    "platform": null,
    "description": "# I2C LCD micropython esp32\r\n\r\nimport\r\n\r\n    from LCD.lcd import LCD1602\r\n    \r\n    LCD = LCD1602(scl=12, sda=14)\r\n    #LCD1602(scl, sda, num_lines=None, num_columns=None, freq=None):\r\n\r\nprint\r\n    \r\n    LCD.puts('teste',x=0,y=1)\r\n    #y 0~1\r\n    #x 0~15\r\n\r\nprint txt\r\n\r\n    from time import sleep\r\n    \r\n    LCD.println(['1','2','3','4','5'])\r\n    \r\n    x = 2\r\n    while True:\r\n        sleep(1)\r\n        LCD.println(linha=x)\r\n        x+=1\r\n\r\n    #linha == line for txt(list)\r\n\r\nfor txt\r\n\r\n    from time import sleep\r\n    \r\n    LCD.println('1 \\n 2 \\n 3 \\n 4 \\n 5')\r\n\r\n    x = 2\r\n    while True:\r\n        sleep(1)\r\n        LCD.println(linha=x)\r\n        x+=1\r\n\r\nprint choices\r\n\r\n    from time import sleep\r\n    \r\n    LCD.escolhas('txtprincipal', 0, ['1','2','3','4','5'])\r\n    \r\n    x = 1\r\n    while True:\r\n        sleep(1)\r\n        LCD.escolhas(posicao=x)\r\n        if x == 3:\r\n            print(LCD.escolhas(select=True))\r\n            break\r\n        x+=1\r\n\r\nlcd clear\r\n\r\n    LCD.clear()\r\n    \r\nlcd print in line\r\n\r\n    LCD.putsln(['line 0', 'line 1'])\r\n\r\nespecial char\r\n\r\n    from time import sleep\r\n    \r\n    b = bytearray([0x04,0x0A,0x04,0x0A,0x04,0x0A,0x04,0x0A])\r\n    \r\n    LCD.char(0,b)\r\n    \r\n    v = ' 1 \\n 2 \\n 3 \\n 4 \\n 5 \\n '+chr(0)\r\n    # or v = ['1','2','3','4','5',chr(0)]\r\n    \r\n    LCD.println(v)\r\n    \r\n    x = 2\r\n    while True:\r\n        sleep(1)\r\n        LCD.println(linha=x)\r\n        x+=1\r\n\r\n    #linha == line for txt(list)\r\n\r\nlcd hal backlight\r\n\r\n    LCD.hal_backlight()\r\n\r\nlcd blink\r\n\r\n    LCD.brilhe(local=[1,1])\r\n    # or lcd not blink LCD.brilhe(False) \r\n\r\nlcd animation for clear line\r\n    \r\n    LCD.apagarlinha(1)\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "uma biblioteca para utiliza\u00e7\u00e3o de um display i2c no esp32 micropython",
    "version": "0.0.2",
    "project_urls": null,
    "split_keywords": [
        "esp32",
        "micropython",
        "i2c",
        "lcd"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ac41923f0dee100a0270a95371ab1d4f4c08086de55118573181661cd552aff",
                "md5": "944e3bd65311fdc3edaf4b39afbbf863",
                "sha256": "ccf23db1c2c83e137e2beea8ed28d5bf987cb830e165921d609d989005cb0357"
            },
            "downloads": -1,
            "filename": "esp32_micropython_i2cLCD-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "944e3bd65311fdc3edaf4b39afbbf863",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6479,
            "upload_time": "2023-06-17T17:36:28",
            "upload_time_iso_8601": "2023-06-17T17:36:28.092624Z",
            "url": "https://files.pythonhosted.org/packages/0a/c4/1923f0dee100a0270a95371ab1d4f4c08086de55118573181661cd552aff/esp32_micropython_i2cLCD-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-17 17:36:28",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "esp32-micropython-i2clcd"
}
        
Elapsed time: 1.66233s