Go Down

Topic: BUG? pinMode() not retaining HIGH/LOW states through changes. (Read 536 times) previous topic - next topic


I just spent an evening hashing out a Due specific issue with the author of the AccelStepper library.(http://www.airspayce.com/mikem/arduino/AccelStepper/)

It seems that if one assigns the state of a pin as HIGH/LOW then later on that pin changes from INPUT to OUTPUT the assigned HIGH/LOW state is reset to the default LOW.

Its probably no big deal if your pin was already set to LOW as the state is still the same, but if your counting on it to remember states while its output has been disabled then it might throw you a curve-ball.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131