Is there a way to include the Inkplate board in PlatformIO?
Hi @mlahovi1
thanks for your question, we haven’t made official Platformio implementations for Inkplate, only Arduino. Check here how to use it : https://docs.soldered.com/inkplate/6/quick-start-guide/
If you wanted to use PlatformIO I can suggest some steps, the main thing is that the Inkplate Arduino library depends on board-definition flags from the Inkplate board def, so in PlatformIO those flags need to be reproduced manually in platformio.ini instead of coming automatically from Arduino IDE board support.
For example, for Inkplate 6 a good starting point would be something like this:
[env:inkplate6v2]
platform = espressif32
framework = arduino
board = esp32dev
monitor_speed = 115200
upload_speed = 921600
board_build.f_cpu = 240000000L
board_build.partitions = huge_app.csv
build_unflags =
-std=gnu++11
build_flags =
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-std=gnu++17
; replace this with the exact macro from the Inkplate 6 V2 board definition, you can find these in the header guards in the Arduino examples for that Inkplate board
-ARDUINO_INKPLATE6V2
lib_ldf_mode = deep+
lib_deps =
https://github.com/SolderedElectronics/Inkplate-Arduino-library.git
Hope that’s helpful, basically it’s how to sort of attatch PlatformIO to use our Inkplate library with the standard ESP32 Dev Board board definitions.