Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekmalek committed Mar 12, 2023
1 parent 52183a1 commit 33edd00
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,14 @@ change **\<PIN\>** and **\<APN\>** suitable to your SIM card.

2. Copy files into device
```commandline
> ampy -pCOMXX put umqttrobust.py
> ampy -pCOMXX put simple.py
> ampy -pCOMXX put LiveObjects // It will copy directory with its content
> ampy --port COMx put umqttrobust.py
> ampy --port COMx put simple.py
> ampy --port COMx put LiveObjects // It will copy directory with its content
```
3. Prepare your script and save it as `main.py` then copy file into device.
You can use one of example ones (`1_send_data.py`, ...) renaming it to `main.py`
```Shell
> ampy -pCOMXX put main.py
> ampy --port COMx put main.py
```


Expand Down Expand Up @@ -364,7 +364,7 @@ Example of wiring ESP32 board with GPIO22 and GPIO21 (_source: https://randomner
#### How to use ####
1. You need to upload additional library for VL6180X support (it is placed in `micropython` folder):
```commandline
> ampy -pCOMXX put vl6180x_micro.py
> ampy --port COMx put vl6180x_micro.py
```
2. Copy `7_distance_and_light_sensor.py` as `main.py` and upload it into board.

Expand All @@ -389,4 +389,4 @@ After above operations you can see:


## Troubleshooting ##
If you are getting 'MQTT exception: 5' check your api key
If you are getting 'MQTT exception: 5' check your api key

0 comments on commit 33edd00

Please sign in to comment.