Ive been trying to use my heltec wireless tracker board and i havent been able to. Which libraries do you use to use it? Te Heltec Developer Library is not working for me atm. Ive been also trying to print into its screen but since I cant use the HT_st7735 library, im not entirely sure what to do.
And you want to use PlatformIO for it? What’s your current platformio.ini? Heltec board support is pretty non-existant in PlatformIO or extremely hacky. Or do you use the Arduino ID?E
Instead of pulling down the entire Heltec Dev-Boards package, you just need standard Espressif support along with the standard Adafruit GFX and ST7735 libraries. Then update your platformio.ini
That won’t give you access to the LoRaWAN libraries and binary blobs inside the Heltec core.
@maxgerhardt Sir, what’s the right way to integrate heltec wireless tracker board with platform IO?
You’d have to
- fork platform-espressif32 if the core is based on Espressif Arduino-ESP32 2.x or better PIOArduino if it’s based on 3.x
- add the original Heltec Arduino ESP32 core as a new package
- see https://resource.heltec.cn/download/package_heltec_esp32_index.json, e.g.,
- https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/releases/download/3.3.8/heltec-esp32-arduino-3.3.8.zip is the Arduino core
- https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.5/esp32-arduino-libs-idf-release_v5.5-73550728-v2.zip is the precompiled libraries it references
- needs
package.jsonif not present in the Arduino core files - referenced by the
platform.jsonand activated inplatform.pyif the board requires it
- see https://resource.heltec.cn/download/package_heltec_esp32_index.json, e.g.,
- Add new board definitions for all Heltec-specific boards and mark them as “using the Heltec Arduino core” by means of e.g. the
build.corefield - Add the builder script for the framework (likely 99% the same as for regular Espressif Arduino-ESP32 2.x/3.x, but with some new precompiled libraries linked like the ones for LoRaWAN), triggered / selected by the e.g.
build.corefield - Test on real hardware
- contribute it back to the original
platform-espressif32platform
It’s not overly complicated or impossible, it’s just that noone’s done that properly and cleanly yet.