View Single Post
  #6   Spotlight this post!  
Unread 01-27-2016, 04:33 PM
The Doctor's Avatar
The Doctor The Doctor is offline
Robotics is life
AKA: Hackson
FRC #3216 (MR. T)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2013
Location: United States
Posts: 139
The Doctor is on a distinguished road
Re: Rev Robotics MXP Digit board Java code

Quote:
Originally Posted by Crossle86 View Post
Actually we did get this code to work. Again, my question is how did you determine the i2c port number to use?

Also, whatever function we use to read the pot on the analoginput, we get large values, in the range of 208-224. I was expecting (as documented) to 0 to 5, at least using getvoltage function. Have not used analoginput before so seems I am missing something...
The I2C port number is constant, hex 0x70. The analog input, last i checked, is a value from 0 to 1024 that maps to a value of 0-5v.
__________________
Robots + Python + pentesting == me;
Blog ~ GitHub ~ Keybase
If you have a pressing issue to discuss with me, kik me at slush.puddles since I don't check CD very often.
Reply With Quote