Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit 897c1bf

Browse files
committed
ESP8266/ESP32 example
1 parent a0134e7 commit 897c1bf

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,29 @@ while True:
6363
- `virtual_write`
6464
- `sync_virtual`
6565
- `set_property`
66-
- `notify`
66+
- `notify`, `tweet`
6767
- `log_event`
6868
- events: `Vn`, `readVn`, `connected`, `disconnected`
69-
- can run on embedded hardware, like `ESP32`, or `OpenWrt`
69+
- can run on embedded hardware, like `ESP8266`, `ESP32`, or `OpenWrt`
7070

7171
## Ubuntu/Linux/Raspberry Pi installation
7272

7373
```sh
7474
pip install blynk-library-python
7575
```
7676

77-
## ESP32 installation
78-
79-
`TODO`
77+
## ESP8266/ESP32 installation
78+
79+
- Get the latest MicroPython firmware and flash it to your board
80+
- Edit [ESP8266_ESP32.py](examples/hardware/ESP8266_ESP32.py) example (put your `auth token` and wifi credentials)
81+
- Use `ampy` or any other method to transfer files to the device.
82+
```sh
83+
export AMPY_PORT=/dev/ttyUSB0
84+
ampy mkdir /lib
85+
ampy put BlynkLib.py /lib/BlynkLib.py
86+
ampy put ./examples/hardware/ESP8266_ESP32.py main.py
87+
```
88+
- Open device terminal and reboot the board (or type `import main`)
8089

8190
__________
8291

0 commit comments

Comments
 (0)