View unanswered posts | View active topics It is currently Sat Sep 20, 2014 4:08 pm






Reply to topic  [ 2 posts ] 
Nxt Multiplexer 
Author Message
Expert
User avatar

Joined: Fri Nov 02, 2012 12:07 am
Posts: 164
Location: California, USA
Post 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)

_________________
string Robored = "Awesome"
~~Neil Balch~~


Last edited by roboRed on Sat Dec 15, 2012 10:44 pm, edited 1 time in total.



Sat Dec 15, 2012 9:11 pm
Profile WWW
Rookie

Joined: Tue Dec 11, 2012 9:19 pm
Posts: 33
Post 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.


Sat Dec 15, 2012 10:43 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.