Skip to content

Commit 8a08c6b

Browse files
authored
Merge pull request #182 from hpsaturn/platformio_support
basic support to build and upload the firmware from PlatformIO
2 parents f1ca619 + bb002c5 commit 8a08c6b

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

hardware/light/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@ To set up audio recording + playback on the ESP32 (M5 Atom), do the following:
1313

1414
Finally, to flash the .ino to the board, connect the board to the USB port, select the port from the dropdown on the IDE, then select the M5Atom board (or M5Stack-ATOM if you have that). Click on upload to flash the board.
1515

16+
### Alternative - PlatformIO
17+
18+
You don't need anything, PlatformIO will install everything for you, dependencies, tool chains, etc.
19+
20+
Please install first [PlatformIO](http://platformio.org/) open source ecosystem for IoT development compatible with **Arduino** IDE and its command line tools (Windows, MacOs and Linux), and then enter to the firmware directory:
21+
22+
```bash
23+
cd software/source/clients/esp32/src/client/
24+
```
25+
26+
And build and upload the firmware with a simple command:
27+
28+
```bash
29+
pio run --target upload
30+
```
31+
1632
## Wifi
1733

1834
The board needs to connect to WiFi. Once you flash, connect to the ESP32 WiFi portal "01-Light" which will get WiFi details. Once it connects, it will ask you to enter 01OS server address. Once its able to connect, you can use the device.

software/source/clients/esp32/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,20 @@ To set up audio recording + playback on the ESP32 (M5 Atom), do the following:
1010
- ESPAsyncWebServer by lacamera
1111
4. The board needs to connect to WiFi. Once you flash, connect to ESP32 wifi "captive" which will get wifi details. Once it connects, it will ask you to enter 01OS server address in the format "domain.com:port" or "ip:port". Once its able to connect you can use the device.
1212
5. To flash the .ino to the board, connect the board to the USB port, select the port from the dropdown on the IDE, then select the M5Atom board (or M5Stack-ATOM if you have that). Click on upload to flash the board.
13+
14+
### Alternative - PlatformIO
15+
16+
You don't need anything, PlatformIO will install everything for you, dependencies, tool chains, etc.
17+
18+
Please install first [PlatformIO](http://platformio.org/) open source ecosystem for IoT development compatible with **Arduino** IDE and its command line tools (Windows, MacOs and Linux), and then enter to the firmware directory:
19+
20+
```bash
21+
cd client/
22+
```
23+
24+
And build and upload the firmware with a simple command:
25+
26+
```bash
27+
pio run --target upload
28+
```
29+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
; ESPNowCam Freenove ESP32S3CAM
2+
; https://github.com/hpsaturn/esp32s3-cam
3+
; @Hpsaturn 2024
4+
5+
[platformio]
6+
src_dir = ./
7+
8+
[env]
9+
platform = espressif32
10+
framework = arduino
11+
monitor_speed = 115200
12+
upload_speed = 1500000
13+
monitor_filters =
14+
esp32_exception_decoder
15+
time
16+
build_flags =
17+
-D CORE_DEBUG_LEVEL=0
18+
-D BOARD_HAS_PSRAM=1
19+
20+
[esp32common]
21+
extends = env
22+
board = esp32dev
23+
24+
[env:m5echo]
25+
extends = esp32common
26+
lib_deps =
27+
m5stack/M5Atom @ ^0.1.2
28+
links2004/WebSockets @ ^2.4.1
29+
;esphome/ESPAsyncWebServer-esphome @ ^3.1.0
30+
https://github.com/arduino-libraries/ArduinoHttpClient
31+
https://github.com/lacamera/ESPAsyncWebServer
32+
fastled/FastLED @ ^3.6.0

0 commit comments

Comments
 (0)