Thread: AutoTop DIY
View Single Post
Old 06-27-2014, 12:11 PM   #63
Polaris
Registered User
 
Join Date: Apr 2013
Location: Springfield, Oregon
Posts: 62
Ooh! I just found my old Nano with onboard USB. I'll set it up and test the code and add support for the parking break pin, too.

I'm not seeing why you needed to add the lines to case 1 and case 2. The pins get written high in the default case before switching to case 1 or 2. Without the default case writing the pin high, the case 1 or case 2 won't be run until the second time around the loop, 50ms later since the default case is what sets the openMode to 1 or 2.

Last edited by Polaris; 06-27-2014 at 12:15 PM.
Polaris is offline   Reply With Quote