- Make sure you are using a Python2 environment in your terminal. See Pythono Installation section for details on how to do this.
- Install ESP-IDF at the v3.3.2 release (if you have not already)
- Check you current version
git describe --always --tags --dirty
- If in doubt, delete your ESP-IDF folder and fresh install
git clone -b v3.3.2 --recursive https://github.com/espressif/esp-idf.git
- Check you current version
- Download this repository
git clone --recursive https://github.com/oliverjc/idf-arduino-template.git
make menuconfig
to configure the projectmake -j17
to build
- Install home-brew
- Install Anaconda
brew cask install anaconda
- Add Anaconda path to your bash profile. Just insert this line anywhere in your .zshrc or .bashprofile file within your user directory
export PATH=“/usr/local/anaconda3/bin:$PATH”
- Initialise Anaconda for whatever shell you are using.
conda init <SHELL_NAME>
You're probably using eitherbash
orzsh
e.g.conda init zsh
- Install CCACHE
brew install cache
- Create a Python 2 Environment
conda create -—name py2 python=2.7
- Activate that environment
conda activate py2
- Add Alias to make activating our environment a lot easier. Add this line to your .zshrc or .bashprofile file.
alias pyinit="conda deactivate && conda activate py2”
Now whenever we want to activate our python2 environment we simply have to callpyinit
To revert to our default environment, just useconda deactivate