https://github.com/MrYsLab/s3-extend
1.python3.7以上
python3 –version
Python 3.6.8
sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev \
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
cd /usr/src
sudo wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
sudo tar xzf Python-3.7.4.tgz
cd Python-3.7.4
sudo ./configure --enable-optimizations
make -j -l 4
sudo make altinstall
python3.7 --version
Python 3.7.5
安裝需要套件
sudo apt install python3-pip
sudo apt install xterm
sudo pip3 install s3-extend
sudo pip3 install awscli
sudo pip3 install adafruit-ampy
下載s3-extend
git clone https://github.com/MrYsLab/s3-extend.git
安裝
cd s3-extend/
sudo python3.7 setup.py install
終端機執行
s3a -l a.log -c devttyUSB0
scratch3_online:https://mryslab.github.io/s3onegpio
燒入韌體
https://mryslab.github.io/s3-extend/#arduino/
安裝arduino擴充套件,讓arduino ide有
FirmataExpress檔案,要安裝
打開範例檔firmataExpress,燒入arduino uno板子。
cd s3-extend
python3 setup.py install
執行s3a
要指定連接埠
s3a -c /dev/ttyUSB0
scratch3_online:https://mryslab.github.io/s3onegpio
arduino 直接燒錄韌體
http://ykarduino.blogspot.com/2014/05/hex-codearduino.html
http://coopermaa2nd.blogspot.com/2011/06/arduino-ide-tweak.html
燒錄FirmataExpress.ino.hex
avrdude -v -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:FirmataExpress.ino.hex:i
沒有留言:
張貼留言