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

Toggle does not run on Uno R4 #9

Open
Fluro opened this issue Jan 23, 2025 · 1 comment
Open

Toggle does not run on Uno R4 #9

Fluro opened this issue Jan 23, 2025 · 1 comment

Comments

@Fluro
Copy link

Fluro commented Jan 23, 2025

Code that compiles for an UNO R3, will not compile for an UNO R4

i.e:

const int deployButton = 13;
Toggle swDeployButton = new Toggle(deployButton);

results in:

 error: invalid conversion from 'Toggle*' to 'uint8_t {aka unsigned char}' [-fpermissive]
 Toggle swDeployButton = new Toggle(deployButton);
@Fluro
Copy link
Author

Fluro commented Jan 24, 2025

For anyone else reading this:

Change the decleration to:
Toggle swDeployButton(deployButton);

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