Skip to content

Commit a9405c6

Browse files
committed
ESP-IDF framework support for SSD1306I2C
1 parent ea2363a commit a9405c6

File tree

12 files changed

+1851
-34
lines changed

12 files changed

+1851
-34
lines changed

CMakeLists.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
set(COMPONENT_ADD_INCLUDEDIRS src)
2-
set(COMPONENT_PRIV_REQUIRES arduino-esp32)
3-
set(COMPONENT_SRCDIRS src)
4-
register_component()
1+
cmake_minimum_required(VERSION 3.16.0)
2+
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
3+
project(esp-idf-oled)
4+
5+
6+
# set(COMPONENT_ADD_INCLUDEDIRS src)
7+
# set(COMPONENT_PRIV_REQUIRES arduino-esp32)
8+
# set(COMPONENT_SRCDIRS src)
9+
# register_component()

library.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
"email": "fabrice@weinberg.me"
2222
}
2323
],
24-
"frameworks": "arduino",
24+
"frameworks": [
25+
"arduino",
26+
"espidf"],
2527
"platforms": [
2628
"espressif8266",
2729
"espressif32",

platformio.ini

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@
88
; Please visit documentation for the other options and examples
99
; http://docs.platformio.org/page/projectconf.html
1010

11-
[env:d1_mini]
12-
platform = espressif8266
13-
board = d1_mini
14-
framework = arduino
15-
upload_speed = 921600
16-
board_build.f_cpu = 160000000L
17-
upload_port = /dev/cu.SLAB_USBtoUART
18-
monitor_port = /dev/cu.SLAB_USBtoUART
19-
lib_deps =
11+
[env:nodemcu-32s]
12+
platform = espressif32@^6.3.0
13+
board = nodemcu-32s
14+
framework = espidf

0 commit comments

Comments
 (0)