This library allows an ESP8266 module with the HSPI port available to become an AVR In-System Programmer.
Hardware The ESP8266 module connects to the AVR target chip via the GPIO Pins of the Desmos D1 Mini.
If the AVR target is powered by a different Vcc than what powers your ESP8266 chip, you must provide voltage level shifting or some other form of buffers.
Connections are as follows for ISP:
Desmos D1 Mini | SPI |
---|---|
D7 | MISO |
D6 | MOSI |
D5 | SCK |
D4 | RESET |
GND | GND |
3V3 | VCC |
Connections are as follows for OLED
Desmos D1 Mini | OLED |
---|---|
D2 | SDA |
D1 | SCL |
5V | VCC |
GND | GND |
Usage:
The ISP sketch will try to connect to the defined Accesspoints (multiple accesspoints can be defined, with passwords, in the sketch)
Once connected, it will show the connect AP name, and IP/Port
Once connect, use avrdude (Sorry, linux only, as Windows doesnt support net)
avrdude -b 230400 -c arduino -p (device) -P net:(IP:PORT) (commands)
Example:
avrdude -b 230400 -c arduino -p t85 -P net:192.168.8.140:328 -U flash:w:t85_Default.hex