View unanswered posts | View active topics It is currently Tue Sep 30, 2014 6:01 am






Reply to topic  [ 4 posts ] 
Problem with connet nxc with PC bluetooth 
Author Message
Rookie

Joined: Tue Mar 22, 2011 2:58 pm
Posts: 5
Post 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 !!!


Mon Mar 28, 2011 2:44 pm
Profile
Moderator
Moderator

Joined: Thu Jan 03, 2013 5:10 pm
Posts: 198
Location: The plateau north of the Ohio River Valley, also known as Cave Country.
Post 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.

_________________
I'm not a robot! I'm british! ~ quote from an asparagus
I am not a robot! I am a unicorn! ~ quote from a robot


Fri Jan 04, 2013 7:59 pm
Profile
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post 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.

_________________
A.K.A. inxt-generation
Self-proclaimed genius, and future world dominator.
My Brickshelf Folder
"Don't they teach recreational mathematics anymore?" - The Tenth Doctor
Bow down to Nikola Tesla, King of the Geek Gods.


Fri Jan 04, 2013 8:06 pm
Profile WWW
Moderator
Moderator

Joined: Thu Jan 03, 2013 5:10 pm
Posts: 198
Location: The plateau north of the Ohio River Valley, also known as Cave Country.
Post 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.

_________________
I'm not a robot! I'm british! ~ quote from an asparagus
I am not a robot! I am a unicorn! ~ quote from a robot


Fri Feb 15, 2013 1:32 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 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.