Skip to content

Commit d344786

Browse files
author
Michael Haberler
committed
PIO setup for an ESP32 Arduino project with Hardware I2C and Serial support
see also: https://github.com/espressif/arduino-esp32/releases/tag/2.0.1-RC1 espressif/arduino-esp32#5436
0 parents  commit d344786

File tree

4 files changed

+90
-0
lines changed

4 files changed

+90
-0
lines changed

.gitignore

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Prerequisites
2+
*.d
3+
4+
# Compiled Object files
5+
*.slo
6+
*.lo
7+
*.o
8+
*.obj
9+
10+
# Precompiled Headers
11+
*.gch
12+
*.pch
13+
14+
# Compiled Dynamic libraries
15+
*.so
16+
*.dylib
17+
*.dll
18+
19+
# Fortran module files
20+
*.mod
21+
*.smod
22+
23+
# Compiled Static libraries
24+
*.lai
25+
*.la
26+
*.a
27+
*.lib
28+
29+
# Executables
30+
*.exe
31+
*.out
32+
*.app
33+
34+
# platformio & vscode
35+
.pio/*
36+
.vscode/*
37+
38+
untracked/*
39+
40+
.pio
41+
.vscode/.browse.c_cpp.db*
42+
.vscode/c_cpp_properties.json
43+
.vscode/launch.json
44+
.vscode/ipch

default_16MB.csv

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Name, Type, SubType, Offset, Size, Flags
2+
nvs, data, nvs, 0x9000, 0x5000,
3+
otadata, data, ota, 0xe000, 0x2000,
4+
app0, app, ota_0, 0x10000, 0x640000,
5+
app1, app, ota_1, 0x650000,0x640000,
6+
spiffs, data, spiffs, 0xc90000,0x370000,

platformio.ini

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
; PlatformIO Project Configuration File
2+
3+
[common_env_data]
4+
monitor_speed = 115200
5+
upload_speed = 921600
6+
7+
; fix as needed
8+
windows_device = COM12
9+
macos_device = /dev/cu.SLAB_USBtoUART
10+
11+
[env:m5stack-core2]
12+
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
13+
14+
15+
board = m5stack-core2
16+
17+
framework = arduino
18+
platform_packages =
19+
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.1-RC1
20+
espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r1
21+
22+
build_type = debug
23+
build_flags =
24+
debug_build_flags = -g -O0
25+
26+
board_build.partitions = default_16MB.csv
27+
upload_port = ${common_env_data.macos_device}
28+
monitor_port = ${common_env_data.macos_device}
29+
monitor_speed = ${common_env_data.monitor_speed}
30+
31+

src/main.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <Arduino.h>
2+
3+
void setup() {
4+
// put your setup code here, to run once:
5+
}
6+
7+
void loop() {
8+
// put your main code here, to run repeatedly:
9+
}

0 commit comments

Comments
 (0)