View Single Post
  #7   Spotlight this post!  
Unread 21-11-2011, 18:42
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Use/Conversion of Cypress Output Values

Quote:
Originally Posted by kws4000 View Post
I am getting the Enhanced Values. It's just that in C++ I was able to over-read the analog for digital (if that makes any sense)

[ int boolvalue11 = dseio.GetDigital(11); ]

is what I did in C++ even though there should only be 1-8.

This all answers my questions.
Looking at your C++ code, I don't think you were "over-read"ing analog to get digital. I think you used the enhanced I/O to configure all 16 digital i/o to inputs and used the enhanced IO to read them.

What pin did you connect your switch 11 to? I think you connected it to P6_6. If it was analog 3, it would have been P0_2. http://team358.org/files/programming...ressPinout.jpg

Last edited by Joe Ross : 22-11-2011 at 16:34.
Reply With Quote