高速源代码:
#!/bin/bash
while true
do
echo 1 > /sys/class/gpio/gpio44/value
sleep 0.2
echo "0" > /sys/class/gpio/gpio44/value
sleep 0.8
done
低速源代码:
#!/bin/bash
while true
do
echo 1 > /sys/class/gpio/gpio44/value
sleep 0.8
echo "0" > /sys/class/gpio/gpio44/value
sleep 0.2
done
#pin脚44接信号,pin脚39接地,形成回路。
#pin脚6,8,10接上位机。
高速源代码:
#!/bin/bash
while true
do
echo 1 > /sys/class/gpio/gpio44/value
sleep 0.2
echo "0" > /sys/class/gpio/gpio44/value
sleep 0.8
done
低速源代码:
#!/bin/bash
while true
do
echo 1 > /sys/class/gpio/gpio44/value
sleep 0.8
echo "0" > /sys/class/gpio/gpio44/value
sleep 0.2
done
#pin脚44接信号,pin脚39接地,形成回路。
#pin脚6,8,10接上位机。
1
1
举报