I do have it...mattallen37 wrote:Get the latest version of BCC.
Programming the Lego Colour Sensor in NXC
Re: Programming the Lego Colour Sensor in NXC
B2O productions are the best for the best.
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: Programming the Lego Colour Sensor in NXC
Do you have the compiler settings set to target the proper firmware?
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
Re: Programming the Lego Colour Sensor in NXC
In particular, to use any features of the 2.0 firmwares (i.e., version 1.27 or greater) such as the color sensor or support for floating point types you have to tell BricxCC to tell the compiler that it should allow code that requires one of the 2.0 firmware versions. As shown in the screenshot below you check the "NXT 2.0 compatible firmware" option in the Preferences dialog on the Compiler|NBC/NXC tab.
John Hansen
John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
Who is online
Users browsing this forum: No registered users and 0 guests