Thread: Arduino and FRC
View Single Post
  #5   Spotlight this post!  
Unread 28-04-2014, 03:21
brentyi brentyi is offline
Member
FRC #0846 (The Funky Monkeys)
Team Role: Student
 
Join Date: Dec 2012
Rookie Year: 2011
Location: San Jose, CA
Posts: 4
brentyi is an unknown quantity at this point
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.
Reply With Quote