View Single Post
  #3   Spotlight this post!  
Unread 01-02-2017, 09:49
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 336
fovea1959 will become famous soon enough
Re: MXP Expansion Pins

Missed that one; was working off the MXP pinouts. Thanks!

If I do a "new DigitalInput(10)" in my Java code, Navx/MXP port 0 functions as a DIO, and if I do a "new Talon(10)" in the code, if functions as a PWM, and if I do both, I will have a bad debugging session?

I was wondering about a pin being either a DIO, PWM, or SPI/I2C, but I missed the break in numbering in the DIOs; a pin that can be used as a DIO can be also be used as only *one* of PWM/I2C/SPI, and can only be used as one of those functions (a DIO or the altenative...)

https://github.com/kauailabs/navxmxp...bot/Robot.java also helps.

Last edited by fovea1959 : 01-02-2017 at 09:58. Reason: lack of clarity
Reply With Quote