ROBOTC.net forums
http://robotc.net/forums/

Nxt Multiplexer
http://robotc.net/forums/viewtopic.php?f=1&t=5266
Page 1 of 1

Author:  roboRed [ Sat Dec 15, 2012 9:11 pm ]
Post subject:  Nxt Multiplexer

So... when you use the multiplexer,...

How do you call multiple sensors in the #pragma statment.
Attachment:
Draft #4.c.txt


Do you list them all under the same port?

reply with a Personal Messagre Or regular reply. Thanks :bigthumb:

Code:
#pragma config(Sensor, S1,     color,          sensorCOLORFULL)
#pragma config(Sensor, S2,     Accel,          sensorI2CHiTechnicAccel)
#pragma config(Sensor, S3,     HTEOPD,              sensorAnalogActive)
#pragma config(Sensor, S4,     MSTP,                sensorI2CCustom)
//#pragma config(Sensor, S4,     Sonar,          sensorSONAR)
#pragma config(Motor,  motorA,          Sonarm,        tmotorNXT, PIDControl, encoder)
#pragma config(Motor,  motorB,          Steer,         tmotorNXT, PIDControl, encoder)
#pragma config(Motor,  motorC,          Drive,         tmotorNXT, PIDControl, encoder)

Author:  skatefriday [ Sat Dec 15, 2012 10:43 pm ]
Post subject:  Re: Nxt Multiplexer

roboRed wrote:
:bigthumb: So... when you use the multiplexer,...

How do you call multiple sensors in the #pragma statment.

Do you list them all under the same port?

reply with a Personal Messagre Or regular reply. Thanks :bigthumb:


You need to use the Driver Suite referenced in the top post
in this forum. In that set of code is large number of examples
on how to set up and use the mux.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/