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

Fix types #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Fix types #4

wants to merge 5 commits into from

Conversation

gfgit
Copy link
Contributor

@gfgit gfgit commented Aug 21, 2023

Based on #3 which should be merged first..

This PR fixes compilation on non-Arduino platforms by adding undefined types:

  • boolean is converted to bool which is standard C++ and supported also by Arduino
  • Use stdint.h to typedef byte when not using Arduino libraries

To help compiling for desktop platforms I've added a new marco switch DO_NOT_USE_WPROGRAM_H which prevents the use of Arduino libraries. For Arduino builds nothing changes

gfgit added 5 commits August 22, 2023 12:22
This enforces consistent code style
Then run Clang Format 16 again
This is useful for building on desktop where neither Arduino.h nor WProgram.h exist
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