You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 7, 2019. It is now read-only.
I uncommented the MOTION_PIN and the compile failed with:
Arduino: 1.8.1 (Mac OS X), Board: "Pro Trinket 5V/16MHz (USB)"
/Users/bob/Downloads/Kinetic_POV-master/bikewheel/bikewheel.ino: In function 'void sleep()':
bikewheel:344: error: redeclaration of 'volatile uint8_t* p'
volatile uint8_t *p = portInputRegister(digitalPinToPort(SELECT_PIN));
^
/Users/bob/Downloads/Kinetic_POV-master/bikewheel/bikewheel.ino:325:21: note: 'volatile uint8_t* p' previously declared here
volatile uint8_t *p = portInputRegister(digitalPinToPort(MOTION_PIN));
^
exit status 1
redeclaration of 'volatile uint8_t* p'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Perhaps it's not possible to use the MOTION_PIN and SELECT_PIN at the same time, but it seems like this could be fixed by declaring the variable with a different name.. but maybe it's not that straightforward?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I uncommented the MOTION_PIN and the compile failed with:
Perhaps it's not possible to use the MOTION_PIN and SELECT_PIN at the same time, but it seems like this could be fixed by declaring the variable with a different name.. but maybe it's not that straightforward?
The text was updated successfully, but these errors were encountered: