1、测试HDC的指令:
account: root
password: xuantie2020
cat /sys/class/hwmon/hwmon2/temp1_input
cat /sys/class/hwmon/hwmon2/humidity1_input
2、播放音乐
播放声音:mplayer /media/Driftwood_7and5.mp3
调音量: amixer set 'Headphone' 100%
- 测试485是否通过
while true; do
echo hello world > /dev/rs485s0p1 && \
echo hello world > /dev/rs485s0p2 && \
echo hello world > /dev/rs485s0p3 && \
echo hello world > /dev/rs485s0p4 && \
sleep 1
done