wordpress站内跳转,米问外贸论坛,公司网站建设及优化计划书,广东建设信息网行业服务版7、使用串口工具 
#xff08;1#xff09;连接硬件 连接 Type C 线#xff0c; 一端电脑一端开发板 
查看设备是否已经正确识别#xff1a; 
在 Windows 下可以打开设备管理器来查看 
如果没有发现设备#xff0c; 需要确认有没有装驱动以及接触是否良好 #xff08;21连接硬件 连接 Type C 线 一端电脑一端开发板 
查看设备是否已经正确识别 
在 Windows 下可以打开设备管理器来查看 
如果没有发现设备 需要确认有没有装驱动以及接触是否良好 2下载串口工具 
a putty 
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html bxshell 
https://xshell.en.softonic.com/download 3然后选择串口模式 然后设置串口和波特率打开串口。 4检查固件版本 
使用串口终端PuTTY打开串口然后复位或按ctrlD看输出的版本信息与github 或者 master 分支 的固件版本对比根据当前版本情况考虑升级到最新版本。这里烧录的固件版本是“ v0.5.0-31-gd3e71c0” 。 5串口终端PuTTY的控制命令 
CTRL-A-在空白行上进入原始REPL模式 CTRL-B-在空白行上进入常规REPL模式 CTRL-C-中断正在运行的程序 CTRL-D-在空白行上对电路板进行软复位 CTRL-E-在空白行上进入粘贴模式 
6有关可用模块的列表请键入help‘modules’ 
KPU gc random uio Maix hashlib re ujson main heapq sensor ulab _boot image socket uos _thread json struct urandom _webrepl lcd sys ure array machine time usocket audio math touchscreen ustruct binascii math ubinascii utime board micropython ucollections utimeq builtins modules ucryptolib uzlib cmath nes uctypes video collections network uerrno zlib errno os uhashlib fpioa_manager pye_mp uheapq Plus any modules on the filesystem 
8、Hello world #尝试搭建K210的Micropython开发环境Win10 #实验程序之一串口打印‘hello maixpy’固件版本号 
#尝试搭建K210的Micropython开发环境Win10
#实验程序之一串口打印‘hello maixpy’固件版本号import sysfor i in range(0, 2):print(hello maixpy)print(hello , endmaixpy\n)print(implementation:, sys.implementation)
print(platform:, sys.platform)
print(path:, sys.path)
print(Python version:, sys.version)print(please input string, end with Enter)
r  sys.stdin.readline()
w_len  sys.stdout.write(r)#尝试搭建K210的Micropython开发环境Win10 #实验程序之二IDE中断 
#尝试搭建K210的Micropython开发环境Win10
#实验程序之二IDE中断import _thread
import timedef func(name):while 1:print(hello {}.format(name))time.sleep(1)_thread.start_new_thread(func,(1,))
_thread.start_new_thread(func,(2,))while 1:pass