View Single Post
  #3   Spotlight this post!  
Unread 18-02-2008, 23:28
Stvn's Avatar
Stvn Stvn is offline
FIRST Competition Competer
AKA: Steven Rhodes
FRC #0100 (WHS/CHS - WildHats)
Team Role: Leadership
 
Join Date: Feb 2007
Rookie Year: 2004
Location: Woodside, CA
Posts: 90
Stvn is an unknown quantity at this point
Send a message via AIM to Stvn
Re: digital inputs: some bad?

The pins need to be defined as digital inputs or digital outputs. I believe that by default pins 9-18 are defined as outputs, and you need to change that in the code.

I don't know what you're programming with, but for WPILib, you can use:
Code:
#define	IN	1
#define	OUT	0

void Initialize (void)
{
  DefineControllerIO(IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,OUT);
}//end Initialize