Skip to content

Allow building Watchy_GSR as a library#38

Open
admiral0 wants to merge 2 commits intoGuruSR:masterfrom
admiral0:master
Open

Allow building Watchy_GSR as a library#38
admiral0 wants to merge 2 commits intoGuruSR:masterfrom
admiral0:master

Conversation

@admiral0
Copy link
Copy Markdown

This hides the GSR.ino code behind a define - GSR_PLATFORMIO_LIBRARY which can be then used inside platformio.ini instead of deleting the GSR.ino file every single update.

Example usage:

[env]
...
build_flags = -D GSR_PLATFORMIO_LIBRARY

See https://docs.platformio.org/en/stable/projectconf/sections/env/options/build/build_flags.html

This hides the GSR.ino code behind a define - GSR_PLATFORMIO_LIBRARY
which can be then used inside platformio.ini instead of deleting
the GSR.ino file every single update.

This commit also adds a library.json file to pull in dependencies

Example usage:
```
[env]
...
build_flags = -D GSR_PLATFORMIO_LIBRARY
```

See https://docs.platformio.org/en/stable/projectconf/sections/env/options/build/build_flags.html
@GuruSR
Copy link
Copy Markdown
Owner

GuruSR commented Sep 17, 2025

I'm planning on the newer version (not currently available due to all the workload still needing completion) and migrating the GSR.ino into the examples folder (outside of src). Not sure if this will reduce the issue with PlatformIO.

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

Successfully merging this pull request may close these issues.

2 participants