Home→Forums→MonoBrick EV3 Firmware→Conversion of ReadSensorColorEx(IN_1,colorval,raw,norm,scaled) C function in F#
This topic contains 2 replies, has 3 voices, and was last updated by Anders Søborg 3 years, 9 months ago.
I have a problem in translating “ReadSensorColorEx(IN_1,colorval,raw,norm,scaled)” which is written in NXC to MonoBrickFirmware library.
ReadSensorColorEx (const byte & port, int & colorval, unsigned int & raw, unsigned int & norm, int & scaled)
In NXC, this function lets you read the LEGO color sensor. It returns the color value, and three arrays containing raw, normalized, and scaled color values for red, green, blue, and none indices.
How can I write a statement in MonoBrickFirmware library to get the same product with the function ReadSensorColorEx() in NXC?
Are you sure that you want to use F# and not C#?
Have a look at the color sensor example as well as the official documentation. Like I Max wrote is it F# you are looking for?
You must be logged in to reply to this topic.