大概率是因为使用了 Thread。
要知道 Python 的线程性能本身就很差。
建议把 DHT 读取用另一个进程实现,通过文本文件进行数据交换。
可以试试
@RaspiSQH 功能越来越多了!
@别致的羡慕 一起来跳湖
程序没法去帮你分析。
如果你觉得程序来源可靠。
那么八成是电机接线接错了。
需要多检查几遍。
It would require NOOBS to be able to shuffle / move / resize the partitions, which is well beyond the scope of what NOOBS does currently.
For example if you had
/dev/mmcblk0p5 Raspbian boot
/dev/mmcblk0p6 Raspbian root
/dev/mmcblk0p7 Retropie boot
/dev/mmcblk0p8 Retropie root
then what would NOOBS be expected to do if you deleted Raspbian?
You can do what you're asking for manuallly using something like GParted on a regular Linux PC (and then edit the files on the /dev/mmcblk0p3 SETTINGS partition on the SD card to reflect the new partition numbers and available OSes), or you should be able to make use of https://github.com/raspberrypi/noobs#how-to-create-a-custom-os-version to backup your current OS and then 're-install' it as the only OS.
https://github.com/raspberrypi/noobs/issues/238
另外还可以参考这里:
https://raspberrypi.stackexchange.com/questions/59154/re-configure-raspberry-pi-boot-menu/59899#59899
提供一下系统版本,树莓派主板版本,电源电压和额定功率信息判断一下。
树莓派和 kali 分别是什么版本呢
@ccsf 好的,我测试修正一下看看。
正如楼上所说,这个不是报错。
如果运行之后看不到效果,说明你手上的板子是新版本的扩展板。上面的示例代码是老版本的。
在新版本中,LED的驱动方式发生了变化。请参考这个例子。
http://shumeipai.nxez.com/saks-diy-tutorials-water-lights
V2.1版本的LED组由一片74HC595芯片驱动,该芯片的使用方法查看这里:
http://shumeipai.nxez.com/2016/06/05/use-74hc595-chip-digital-control-drive.html
新版本的教程在这里:
http://shumeipai.nxez.com/swiss-army-knife-shield-for-raspberry-pi-diy-tutorials
@RaspiSQH
天气API这个还行
https://dev.heweather.com/
新闻类的靠爬,哈哈。
不错不错。期待看到支持中文。
树莓派用任何型号都可以。显示的部分用rgb点阵。
你上面这款点阵看起来是usb转串口的。树莓派上应该可以直接用。

最近这个 App 的开发者账号被苹果封了。
@RaspiSQH 略显生硬
@beginner 没有安装依赖,建议使用前看一遍文档。
Dependencies
This driver depends on:
Adafruit CircuitPython
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
https://github.com/adafruit/Adafruit_CircuitPython_Bundle
目前 Raspbian、Volumio 可以用。其他系统更新好慢的,估计要等一阵了。
宝塔之类的一键安装脚本我感觉还是不太适合树莓派。
单独装 LNMP FTP 都不算复杂。
3.5 寸屏幕涉及到驱动,再叠上面那些东西和配置可能是比较容易崩溃。
看这个错误应该是 /dev/ttylogin 这个设备没找到,或者是设备读写权限不够。
SSH 能进入系统的话看一下这个设备是否存在,通过 chmod 再确认一下权限。
不行的话重新刷系统,先别做任何配置的情况下看看会不会报错吧。
看来魔镜又有新 App 可以用了