Page 2 of 2
Re: Programming the Lego Colour Sensor in NXC
Posted: 27 Nov 2010, 10:42
by borntoown
mattallen37 wrote:Get the latest version of BCC.
I do have it...
Re: Programming the Lego Colour Sensor in NXC
Posted: 27 Nov 2010, 19:51
by mattallen37
Do you have the compiler settings set to target the proper firmware?
Re: Programming the Lego Colour Sensor in NXC
Posted: 29 Nov 2010, 21:21
by afanofosc
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.
- options.jpg (39.92 KiB) Viewed 4912 times
John Hansen
Re: Programming the Lego Colour Sensor in NXC
Posted: 30 Nov 2010, 13:36
by borntoown
Thank you.