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

Problem with connet nxc with PC bluetooth
http://robotc.net/forums/viewtopic.php?f=15&t=3159
Page 1 of 1

Author:  Mohammed Al-thagfi [ Mon Mar 28, 2011 2:44 pm ]
Post subject:  Problem with connet nxc with PC bluetooth

ey guys

i'm new to nxt & NXC language i need help if you can

first:
i have color sensor for detect color and this is the code for detect color
task main()
{
string sColor ;

while (true){
ClearScreen();
SetSensorColorFull(IN_3);
int sensor_value=Sensor(IN_3);
switch (sensor_value )
{


{
case 1: sColor = "Black"; break;
case 2: sColor = "Blue"; break;
case 3: sColor = "Green"; break;
case 4: sColor = "Yellow"; break;
case 5: sColor = "Red"; break;
case 6: sColor = "White"; break;
default: sColor = "???"; break;
}
TextOut(0, LCD_LINE2,sColor);
Wait(500);
}
}
}

i wanna ask you can i send this color to the computer through bluetooth with every color do something like if detect green color open any program like photoshop or anything else and i can send maybe red color to program maybe programmed by c++ the function if then programme if (color ==red ) cout << "Color is red"; this is my idea i hope help me if you can !!!

plz help me by anything until while as long as resources !!!

Author:  Coder A [ Fri Jan 04, 2013 7:59 pm ]
Post subject:  Re: Problem with connet nxc with PC bluetooth

Sorry but this is a robotc forum and website, not an nxc forum. Most lf us will not be able to help you! NXC and ROBOTC are different.

Author:  NeXT-Generation [ Fri Jan 04, 2013 8:06 pm ]
Post subject:  Re: Problem with connet nxc with PC bluetooth

Coder A, do you ever look at the date before posting? This topic is nearly two years old.

Author:  Coder A [ Fri Feb 15, 2013 1:32 pm ]
Post subject:  Re: Problem with connet nxc with PC bluetooth

Yeah, that was just one day after I joined this site. I figured out I wasn't being helpful so i stopped.

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