RaspberryPI 专用 Arduino 框架
mkdir hardware/RaspberryPi
cd hardware/RaspberryPi
git clone https://github.com/me-no-dev/RasPiArduino piduino
sudo su
passwd
/etc/ssh/sshd_config and make sure that the following lines exist and are not commentedPermitRootLogin yes
PasswordAuthentication yes
Disable Serial Console on boot by removing console=/dev/ttyAMA0 from /boot/cmdline.txt (or through raspi-config)
Disable Serial tty
systemctl disable serial-getty@ttyAMA0
sed -i "s/dtparam=audio=on/#dtparam=audio=on/" /boot/config.txt
hostnamectl set-hostname piduino
cat > /etc/wpa_supplicant/wpa_supplicant.conf /etc/avahi/services/arduino.service
%h
_arduino._tcp
22
board=bplus
EOL
service avahi-daemon restart
apt-get update
apt-get install telnet git
git clone https://github.com/me-no-dev/RasPiArduino.git piduino
chmod +x piduino/tools/arpi_bins/*
cp piduino/tools/arpi_bins/* /usr/local/bin
rm -rf piduino
ln -s /usr/local/bin/run-avrdude /usr/bin/run-avrdude
apt-get install ntpdate
cat > /etc/rc.local /dev/null
# Start Sketch
/usr/local/bin/run-sketch > /dev/null
exit 0
EOL
echo "options 8192cu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1" > /etc/modprobe.d/8192cu.conf
echo "options r8188eu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1" > /etc/modprobe.d/r8188eu.conf
sed -i "s/BLANK_TIME=30/BLANK_TIME=0/" /etc/kbd/config
sed -i "s/POWERDOWN_TIME=30/POWERDOWN_TIME=0/" /etc/kbd/config
Do not load I2C UART or SPI kernel drivers
reboot
暂无开放 Issues,或尚未同步最近议题。