本文來源電子發燒友社區,作者:李先生, 帖子地址:https://bbs.elecfans.com/jishu_2300892_1_1.html
前言
默認xface使用的是Debian X Terminal Emulator 所以需要線安裝終端
sudo apt-get install terminator 否則打不開終端
Applications -> Settings -> Settings manager -> Prefered Applications -> Utilities 可以指定使用的終端。
安裝tkinter
sudo apt-get install python3-tk
此時可以import tkinter了。
root@localhost:~# python3
Python 3.6.9 (default, Jun 29 2022, 11:45:57)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
> > > import tkinter
> > >
安裝pip
apt-get install python3-pip python3-dev build-essential
pip3 install --upgrade pip3
安裝serial
pip3 --trusted-host pypi.python.org --trusted-host pypi.tuna.tsinghua.edu.cn install pyserial -i https://pypi.tuna.tsinghua.edu.cn/simple/
串口調試助手
下載代碼
git clone https://gitee.com/qinyunti/python_tkinter_uart.git
cd python_tkinter_uart
運行測試
python3 Python_Tkinter_UART.py
UART2的引腳對應J18的8,10引腳,對應設備號是/dev/ttyS1
發送數據可以看到接收到一樣的數據
-
米爾科技
+關注
關注
5文章
227瀏覽量
21036 -
MYD-J1028X
+關注
關注
1文章
16瀏覽量
284
發布評論請先 登錄
相關推薦
【米爾-Xilinx XC7A100T FPGA開發板試用】測試一
【米爾-紫光PG2L100H國產FPGA開發板試用】串口通信功能測試
【飛凌嵌入式OK3588J-C開發板體驗】OK3588J-C開發板開箱評測
【米爾-Xilinx XC7A100T FPGA開發板試用】+01.開箱(zmj)
【米爾-紫光PG2L100H國產FPGA開發板試用】米爾-紫光PG2L100H國產FPGA開發板開箱評測
米爾基于NXP iMX.93開發板的M33處理器應用開發筆記
![<b class='flag-5'>米爾</b>基于NXP iMX.93<b class='flag-5'>開發板</b>的M33處理器應用<b class='flag-5'>開發</b>筆記](https://file.elecfans.com/web2/M00/08/64/pYYBAGDwFEGADIPWAAFlJOlmLxg664.jpg)
米爾NXP i.MX 93開發板的Qt開發指南
![<b class='flag-5'>米爾</b>NXP i.MX 93<b class='flag-5'>開發板</b>的Qt<b class='flag-5'>開發</b>指南](https://file.elecfans.com/web2/M00/08/64/pYYBAGDwFEGADIPWAAFlJOlmLxg664.jpg)
ROS系統的智能車開發-基于米爾芯馳MYD-JD9X開發板
![ROS系統的智能車<b class='flag-5'>開發</b>-基于<b class='flag-5'>米爾</b>芯馳<b class='flag-5'>MYD-JD9X</b><b class='flag-5'>開發板</b>](https://file.elecfans.com/web2/M00/08/64/pYYBAGDwFEGADIPWAAFlJOlmLxg664.jpg)
評論