|
Re: Arduino and FRC
Sticking an Arduino on an old robot chassis has always sounded fun!
But, two things I noticed... (if you're still working on this)
1) digitalWrite() is painfully expensive; I'd recommend checking if your button state changes before updating the signal on each port.
2) Unsure if it's considered good practice, but digitalWrite will take a boolean, so the DIO conditions end up being redundant.
( both true and HIGH are just defined as 0x1, false and LOW as 0x0 )
Last edited by brentyi : 28-04-2014 at 03:23.
Reason: I'm stupid.
|