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

PlatformIO support #3

Closed
aaaidan opened this issue Dec 16, 2020 · 6 comments
Closed

PlatformIO support #3

aaaidan opened this issue Dec 16, 2020 · 6 comments

Comments

@aaaidan
Copy link
Contributor

aaaidan commented Dec 16, 2020

Great work so far! Absolutely mammoth effort in design and great docs. Very promising library. 👍

I'm having problems building HomeSpan projects on PlatformIO, due to a failed build. I notice only Arduino is mentioned in the docs, so I understand that PIO may not be a supported platform.

Is PlatformIO expected to work? If not, are you interested in having HomeSpan support PlatformIO eventually?

@HomeSpan
Copy link
Owner

I've not used PlatformIO but will check it out and see what modifications might be needed. The changes may be extensive since HomeSpan draws on the Arduino-ESP32 library.

@stepanyurkiv
Copy link

I didn't have any problems with PlatformIO.
Everything passed from the first time.

@stepanyurkiv
Copy link

Very wonderful work and library.
I will observe the development.

@aaaidan
Copy link
Contributor Author

aaaidan commented Dec 17, 2020

@stepanyurkiv Thank you for letting me know it worked for you! I will try again. Could you paste your platformio.ini here?

@stepanyurkiv
Copy link

I tried 3 different options to connect the library, all worked without error.
one of the options
; 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

[env:vintlabs-devkit-v1]
platform = espressif32
board = vintlabs-devkit-v1
framework = arduino
lib_extra_dirs = ~/Documents/Arduino/libraries

@aaaidan
Copy link
Contributor Author

aaaidan commented Dec 26, 2020

Great news! I can confirm HomeSpan compiles, builds, uploads on platformio. I'm not sure what I was doing wrong before, but I may have installed some extra dependencies that were conflicting with HomeSpan. I guess we'll never know. 🤷‍♀️

For posterity, my successful project config looks like this:

[env:nodemcu-32s]
platform = espressif32
board = nodemcu-32s
framework = arduino
upload_port = /dev/cu.SLAB_USBtoUART
monitor_port = /dev/cu.SLAB_USBtoUART
monitor_speed = 115200
lib_deps = 
	homespan/HomeSpan@^1.1.1
	thomasfredericks/Bounce2@^2.55

Closing this with glee.

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

3 participants