Quote:
Originally Posted by schleprock
ok, if i hook it up to CS0 on the roborio, then i assume i need to use: kOnboardCS0
ie: SPI.Port.kOnboardCS0
not sure how to specify ports on the roborio. when most people talk about the various ports, they seem to mean those available through the mxp port. if they're talking about using a port that is detached from the mxp, but available on the mxp, i've seen brokenout used... so how do you specify the SPI port connections that are separate from the mxp port?
thanks
|
Yes, if connecting the RoboRio onboard SPI pins to the navX-MXP's SPI breakout connector pins, you would use SPI.Port.kOnboardCS0 in your software. This also means you would connect the corresponding pins on the RoboRIO's SPI connector block (eg, the CS0 pin, the MOSI, MISO, and GND pins) to their corresponding pins on the navX-MXP's SPI breakout connector.