Last active
March 19, 2016 14:45
-
-
Save phieber/0cfb5527400989e573b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /tmp | |
# SDK | |
git clone --recursive https://github.com/pfalcon/esp-open-sdk.git | |
cd esp-open-sdk && make | |
## add it to the PATH | |
export PATH=/tmp/esp-open-sdk/xtensa-lx106-elf/bin:$PATH | |
cd /tmp | |
git clone --recursive https://github.com/tuanpmt/esp_mqtt | |
cd esp_mqtt | |
make clean | |
### fetch native i2c soft impl | |
git clone https://github.com/eadf/esp8266_i2c_master include/esp8266_i2c_master | |
$(cd include/ && ln -s esp8266_i2c_master/include/i2c_master.h i2c_master.h) | |
sed -i -e 's@MODULES\t\t=@MODULES\t\t= driver/i2c@' Makefile | |
#make | |
make SDK_BASE="/tmp/esp-open-sdk/esp_iot_sdk_v1.5.2" FLAVOR="release" all | |
#flash | |
sudo make ESPPORT="/dev/ttyUSB0" flash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment