nextion:Nextion 串行客户端

时间:2024-06-19 09:40:24
【文件属性】:

文件名称:nextion:Nextion 串行客户端

文件大小:19KB

文件格式:ZIP

更新时间:2024-06-19 09:40:24

python serial async asyncio nextion

Nextion 串行客户端 用于控制 Nextion 显示的轻量级 Python 3.5+ 异步库。 安装 皮皮 pip3 install nextion 简单用法: import asyncio import logging import random from nextion import Nextion , EventType def event_handler ( type_ , data ): if type_ == EventType . STARTUP : print ( 'We have booted up!' ) elif type_ == EventType . TOUCH : print ( 'A button (id: %d) was touched on page %d' % ( data . compone


【文件预览】:
nextion-master
----.gitignore(25B)
----setup.cfg(37B)
----README.md(4KB)
----tests()
--------test_protocol.py(2KB)
--------test_client.py(3KB)
--------test_connection.py(2KB)
--------__init__.py(57B)
--------decorators.py(1KB)
----LICENSE(7KB)
----nextion()
--------exceptions.py(1KB)
--------constants.py(189B)
--------console_scripts()
--------__init__.py(189B)
--------protocol()
--------client.py(14KB)
----MANIFEST.in(33B)
----setup.py(1KB)
----.travis.yml(968B)

网友评论