-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
81 lines (74 loc) · 3.46 KB
/
Copy pathplatformio.ini
File metadata and controls
81 lines (74 loc) · 3.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
; InkDeck — minimal markdown writing firmware for the Xteink X3/X4.
;
; Pairs a BLE HID input device and writes .md files to the SD card. Built on the FreeInk
; SDK, consumed exactly like the escape-hatch example: the committed [base]
; lib_deps point at a `freeink-sdk` submodule via symlink://, and a per-developer
; platformio.local.ini overrides them with absolute symlinks to a local working
; copy so SDK changes (the BleKeyboardHost lib, the FreeInkUI textArea component)
; iterate without committing the submodule.
[platformio]
default_envs = default
build_cache_dir = .cache
extra_configs = platformio.local.ini
[base]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.37/platform-espressif32.zip
board = esp32-c3-devkitm-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600
; Match the device's existing 16MB / dual-OTA layout so the stock bootloader and
; otadata pick up whatever we flash. Upload lands the app at the ota_0 offset.
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216
board_upload.offset_address = 0x10000
board_build.flash_mode = dio
board_build.flash_size = 16MB
board_build.partitions = partitions.csv
build_flags =
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DEINK_DISPLAY_SINGLE_BUFFER_MODE=1
; --- BLE HID host capability ----------------------------------------------
; NimBLE roles/bonds/connections come from the Arduino framework's prebuilt
; sdkconfig (NimBLE is a precompiled lib, so command-line CONFIG_BT_NIMBLE_*
; overrides are ignored and only warn). The host uses a single connection.
-DFREEINK_CAP_BLE_HID_HOST=1
; Scan BLE 5 extended advertising. Many modern devices put
; their name/service UUIDs in the extended-advertising AUX packet, invisible to
; a legacy scan. NimBLE-Arduino compiles its own host, so this flag enables it.
-DCONFIG_BT_NIMBLE_EXT_ADV=1
; Bring-up: log discovered BLE devices over serial (remove once paired).
-DFREEINK_BLE_HID_SCAN_DEBUG=1
; Hide anonymous non-HID advertisers from the pairing list. Flip to 1 for BLE bring-up.
-DFREEINK_BLE_HID_SHOW_UNNAMED_DEVICES=0
; In-RAM editor capacity (single static buffer). Bump for longer notes.
-DINKDECK_DOC_CAPACITY=16384
-std=gnu++2a
-fno-exceptions
build_unflags =
-std=gnu++11
-fexceptions
; Default (committed) dependency paths. platformio.local.ini replaces this whole
; block with absolute symlinks to a locally-checked-out freeink-sdk.
lib_deps =
BoardConfig=symlink://freeink-sdk/libs/hardware/BoardConfig
EInkDisplay=symlink://freeink-sdk/libs/display/FreeInkDisplay
InputManager=symlink://freeink-sdk/libs/hardware/InputManager
SDCardManager=symlink://freeink-sdk/libs/hardware/SDCardManager
PowerManager=symlink://freeink-sdk/libs/hardware/PowerManager
Icons=symlink://freeink-sdk/libs/assets/Icons
FreeInkUI=symlink://freeink-sdk/libs/ui/FreeInkUI
XteinkDetect=symlink://freeink-sdk/libs/hardware/XteinkDetect
BleKeyboardHost=symlink://freeink-sdk/libs/network/BleKeyboardHost
; NimBLE-Arduino (not esp-nimble-cpp): the Arduino-targeted build with the
; arduino-esp32 3.3.7 controller-init fix (PR #1090, in 2.3.8+). Same NimBLE*
; C++ API. esp-nimble-cpp's IDF init path crashes (r_lld_env_init) on 3.3.7.
h2zero/NimBLE-Arduino@^2.3.8
; ESP32-C3 dual-device binary: X3 + X4 compiled in, chosen at runtime by the
; XteinkDetect I2C fingerprint.
[env:default]
extends = base
build_flags =
${base.build_flags}
-DFREEINK_DEVICE_X4=1
-DFREEINK_DEVICE_X3=1