逻辑分析仪的使用
工具
esp32 逻辑分析仪
准备工作
使用vscode中的Platform IO插件build upload程序到esp32中,安装platfor IO工具有几个注意的点
1. 不能使用系统python自带的python工具执行pip install platformio,这会导致vscode中打开失败,只有网页127.0.0.1:8008可以访问pio home
2. 设置中搜索platformio-ide:custom path中编辑json文件,在里面添加系统环境变量中python的路径:
1 | "platformio-ide.customPATH": "C:\\Users\\zhonghui\\AppData\\Local\\Programs\\Python\\Python312\\Scripts" |
code
1 |
|
上面代码让32号引脚电平每秒跳变一次,33号引脚2秒跳变一次
引脚的编号要参考产品手册:
连接好之后,效果图如下:
可以清晰的看到32号33号引脚电平变化