Update README.md

- Link to Windows instructions
- Update instructions for Linux and Mac
This commit is contained in:
Me No Dev 2016-12-07 00:46:43 +02:00 committed by GitHub
parent 42c1d5897b
commit 13268b9d3c

View File

@ -19,20 +19,41 @@ WiFiClient, WiFiServer and WiFiUdp are not quite ready yet because there are sti
You can try WiFiClient but you need to disconnect the client yourself to be sure that connection is closed. You can try WiFiClient but you need to disconnect the client yourself to be sure that connection is closed.
### Installation ### Installation
- Install Arduino IDE
- Go to Arduino IDE installation directory ####[Instructions for Windows](doc/windows.md)
- Clone this repository into hardware/espressif/esp32 directory (or clone it elsewhere and create a symlink)
```bash #### Instructions for Mac
cd hardware - Install latest Arduino IDE from [arduino.cc](https://www.arduino.cc/en/Main/Software)
mkdir espressif - Open Terminal and execute the following command (copy->paste and hit enter):
cd espressif
git clone https://github.com/espressif/arduino-esp32.git esp32 ```bash
``` curl -o get-pip.py https://bootstrap.pypa.io/get-pip.py && \
- Download binary tools (you need Python 2.7) sudo python get-pip.py && \
```bash sudo pip install pyserial && \
cd esp32/tools mkdir -p ~/Documents/Arduino/hardware/espressif && \
python get.py cd ~/Documents/Arduino/hardware/espressif && \
``` git clone https://github.com/espressif/arduino-esp32.git esp32 && \
- Restart Arduino cd esp32/tools/ && \
python get.py
```
- Restart Arduino IDE
#### Instructions for Debian/Ubuntu Linux
- Install latest Arduino IDE from [arduino.cc](https://www.arduino.cc/en/Main/Software)
- Open Terminal and execute the following command (copy->paste and hit enter):
```bash
sudo usermod -a -G dialout $USER && \
sudo apt-get install git && \
wget https://bootstrap.pypa.io/get-pip.py && \
sudo python get-pip.py && \
sudo pip install pyserial && \
mkdir -p ~/Arduino/hardware/espressif && \
cd ~/Arduino/hardware/espressif && \
git clone https://github.com/espressif/arduino-esp32.git esp32 && \
cd esp32/tools/ && \
python get.py
```
- Restart Arduino IDE
![Pin Functions](doc/esp32_pinmap.png) ![Pin Functions](doc/esp32_pinmap.png)