Tuesday, February 18, 2025

在树莓派安卓上用Qpython的pyserial读取串口数据步骤

 1. 下载KonstaKANG-rpi-magisk-v28.0.zip和Magisk-v28.0.apk并设置系统重启到twrp模式,安装twrp,重启后安装,安装完成后启动到system,安装apk。

2. 安装termux终端,并执行su、chmod 777 ttyACM0.

安卓上qpython安装模块比如pyserial

 Modules can be installed in QPython3 using pip. What you have to do is ..

Import pip

Then

pip.main([‘install','module name'])

For example if u want to install numpy then this will look like…

import pip

pip.main([‘install','numpy'])

https://www.quora.com/How-do-I-install-NumPY-or-any-other-modules-in-QPython3-in-Android


Sunday, February 9, 2025

装有启动盘的U盘或SD卡怎么格式化

1. 先用Diskgenius删除所有分区。

2. 在我的电脑-管理-磁盘管理里,新建卷并格式化。

3. 在资源管理器里格式化为NTFS格式。

解决windows下 cd 无法切换盘符目录

在windows下, 打开cmd.exe, 默认进入到当前用户主目录下, 发现除了C:\盘, 可以通过cd .. , cd , dir 去到C:\盘的各个目录外, 不能通过 cd d: 进入到其他盘

可以在c盘各个目录自由切换

不能通过 cd d: 进入到其他盘, 仍停留在原来的位置

有两种方式可以解决这个问题:

cd /d d: 在 cd 和盘符之间加上 /d
e: 不用cd指令 直接用 盘符

https://blog.csdn.net/kakuma_chen/article/details/71173243

How do I add launchable apps into the PDF xchange Editor

Question

I have a PDF I would like to open in a third party PDF application. The Launch Button on the bottom right only has PDF-XChange and Adobe apps by default. Can I add other third party apps?
Solution

The Editor supports the addition of other third party apps to launch PDF directly from it. Many of these applications are auto-detected in the latest versions of the Editor. Please see the steps below to setup custom launch applications.
Adding Custom Launch Application

On the File tab, click Preferences.

The Preferences window will open, locate the Launch Applications category, and click New...

In the following dialog, beside Path, click the folder icon to Browse, then select the program you wish to add.

Choose the correct path and file name to the desired app. For example, the correct default path to PDF-XChange Editor is:

C:\Program Files\Tracker Software\PDF Editor\PDFXEdit.exe

Click OK to complete the task.

You should instantly see the new launch options.

https://www.pdf-xchange.com/knowledgebase/473-How-do-I-add-launchable-apps-into-the-Editor

Wednesday, January 22, 2025

Linux终端清除bash历史命令

 1. 清空当前屏幕内容

clear

2. 清除本次终端历史但下次启动仍留存

history -c

3 彻底清除

nano ~/.bash_profile或nano ~/.bashrc

export HISTSIZE=0

export HISTFILESIZE=0

或者

rm ~/.bash_history

树莓派(Raspberry Pi)中如何改变键盘布局

 berry Pi OS Lite第一次启动的过程中可以看到,它是不会让你选择语言和区域的,默认给你选择了英语和英国,键盘布局也默认给你设置成了UK(英国),而我们中国用的键盘是中国布局(与US(美国)布局是一样的)。

下面我们来看一下,英国键盘布局和中国(美国)键盘的布局的差异就可以看到为什么 会出现#变成£、 | 变成 ~、~变成¬的情况了,注意这三个键在英式键盘里是哪几个字符:-)

那么解决方案自然也很简单,就是把键盘布局从英式改成中国就可以了。

下面几个图,表述了如何通过raspi-config这个工具,修改键盘布局为正确的中国。

第一步,sudo raspi-config,回车

第二步,用上下键选择4 localisation options,按回车键确认

第三步,用上下键选择L3 Change Keyboard layout,按回车键确认

第四步,选择Generic 104-key PC,按回车键确认

第五步,选择other,按回车键确认

第六步,选择Chinese,按回车键确认

第七步,选择Chinese,按回车键确认

第八步,选择The default for the keyboard layout,按回车键确认

第九步,选择no compose key(没有组合键),按回车键确认

然后会回到第二步,用TAB键选择Finish按回车键确认退出,重启就可以快乐的输入~#| 啦

https://blog.csdn.net/meihualing/article/details/110819538