Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use newer Version of ESPServo library (at least for Heltec Wifi V3 Boards) #61

Open
rallef80 opened this issue Jun 3, 2024 · 0 comments

Comments

@rallef80
Copy link
Contributor

rallef80 commented Jun 3, 2024

Hello Everyone!
In the platformio.ini which is provided with the project the defined environment uses the board "heltec_wifi_kit_32" together with the library ESP32Servo@^0.9.0

Recently the old Heltec Wifi Boards (V2) are not longer purchasable. So new buildups probably are mostly realized with the newer Heltec Wifi Boards (V3). But with these Boards, the Library ESP32Servo is not working in Verison 0.9.0. Instead at least Version 0.12.1 needs to be used together with Heltec Wifi V3. If not, the Servo is not moving at all.

Therefore i would recommend to update the platformio.ini for the default use of the Heltec Wifi Boards (V3) boards together with ESP32Servo in Version 0.12.1.

In Platformio it is possible to define development environments for various boards. So maybe it is a good idea to define a additional environment for the newer boards and also define a default environment which should be used. This would look like this:

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[platformio]
src_dir = .
default_envs = heltec_wifi_kit_32_v3

[env:heltec]
platform = espressif32
board = heltec_wifi_kit_32
framework = arduino

monitor_speed = 115200

lib_deps =
    HX711@^0.7.4
    U8g2@^2.28.6
    ESP32Servo@^0.9.0


[env:heltec_wifi_kit_32_v3]
platform = espressif32
board = heltec_wifi_kit_32_V3
framework = arduino

monitor_speed = 115200

lib_deps =
    HX711@^0.7.4
    U8g2@^2.28.6
    ESP32Servo @^0.12.1

Another solution could be to use the newer Library ESP32Servo @^0.12.1 for all types of boards and keep going with a simpler platformio.ini. But i could not test at the moment if this version of ESP32Servo works for all types of boards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant