Skip to content

Allow external pin definitions#12

Open
Gouster4 wants to merge 1 commit intonopnop2002:masterfrom
Gouster4:conditional-gpio-definitions
Open

Allow external pin definitions#12
Gouster4 wants to merge 1 commit intonopnop2002:masterfrom
Gouster4:conditional-gpio-definitions

Conversation

@Gouster4
Copy link
Copy Markdown
Contributor

Skip builtin pin definitions if they are already defined before including library.

Usefull for defining pins in sketch instead of modifiyng library. Also usefull when linking library in submodule, and still needing define pins in project.

Skip builtin pin definitions if they are already defined before including library.

Usefull for defining pins in sketch instead of modifiyng library.
Also usefull when linking library in submodule, and still needing define pins in project.
@Gouster4
Copy link
Copy Markdown
Contributor Author

Gouster4 commented Oct 14, 2025

Data pins needs to be defined all, otherwise they are replaced by library.
I did it this way to keep those pin groups in library, and still keep it simpe and clean.

Control pins can be defined independently. If only one pin is defined in sketch, its being respected, rest is used default.

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.

1 participant