|
Page 1 of 1
|
[ 4 posts ] |
|
Problem with connet nxc with PC bluetooth
| Author |
Message |
|
Mohammed Al-thagfi
Rookie
Joined: Tue Mar 22, 2011 2:58 pm Posts: 5
|
 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 |
|
 |
|
Coder A
Expert
Joined: Thu Jan 03, 2013 5:10 pm Posts: 138 Location: Southern Indiana
|
 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 asparagusI am not a robot! I am a unicorn! ~ quote from a robotPlay chess for free!
|
| Fri Jan 04, 2013 7:59 pm |
|
 |
|
NeXT-Generation
Senior Roboticist
Joined: Wed Sep 28, 2011 10:13 pm Posts: 510 Location: Totally not spying on Hassenplug to see what he has for the Brickworld Chicago 2013 sumo contest.
|
 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 |
|
 |
|
Coder A
Expert
Joined: Thu Jan 03, 2013 5:10 pm Posts: 138 Location: Southern Indiana
|
 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 asparagusI am not a robot! I am a unicorn! ~ quote from a robotPlay chess for free!
|
| Fri Feb 15, 2013 1:32 pm |
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 3 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
|
|