mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-07-28 20:22:02 +08:00
20 lines
409 B
Bash
20 lines
409 B
Bash
#!/bin/bash
|
|
# Exit immediately if a command exits with a non-zero status.
|
|
set -e
|
|
# Enable the globstar shell option
|
|
shopt -s globstar
|
|
|
|
#install pyserial
|
|
echo "Installing Python Serial ..."
|
|
pip install pyserial
|
|
|
|
echo "Clone esp32 core"
|
|
cd $HOME/arduino_ide/hardware
|
|
mkdir esp32
|
|
cd esp32
|
|
git clone https://github.com/espressif/arduino-esp32.git esp32
|
|
cd esp32
|
|
git submodule update --init
|
|
cd tools
|
|
python get.py
|