micropython 日历页
# Initialize import display_driver import lvgl as lv # Create a button with a label # Copyright 2022 NXP # SPDX-License-Identifier: MIT # The ...
micropython文本编辑器 界面
##### startup script ##### #!/opt/bin/lv_micropython -i import lvgl as lv import display_driver ##### main script ##### import fs_driver fs_drv = lv.fs_drv_t() f...
MIDE 汉化版发布
本IDE为国外的一个开源IDE,我把他汉化了。原名叫:ESP32-MPY-Jama 我感觉这名字对国人来讲不太好记,所以改成了MIDE。同时打包成了exe文件。内部有些我发现在的BUG也做了修正。有些代码做了小的优化。希望大家喜欢。MIDE开发工具...
micropython 连接到mqtt
from umqtt.simple import MQTTClient from machine import Pin import ujson import urequests import network import time SERVER = "www.028sd.net" CLIENT_ID = "e...
micropython 实现文件下载保存到本地
import sys import gc import ussl import usocket gc.collect() debug = False index_urls = ["https://micropython.org/pi", "https://pypi.org/pypi"] install_path = None c...
micropython 实现tar 文件解包
import upip_utarfile as tar import os def run(src,dest_dir): t = tar.TarFile(src) if not dest_dir in os.listdir(): os.mkdir(dest_dir)  ...
LVGL_micropython 模拟器
在使用micropython编写lvgl界面时有时间非常的麻烦。要在设备上才看得到效果。比较麻烦。npx的GUI-Guider软件中的模拟器给抠出来了单独使用,非常不错。下面是运行实例:import SDL import utime as time import usys as sys import lvgl as lv import lodepng as p...