Conversion of ReadSensorColorEx(IN_1,colorval,raw,norm,scaled) C function in F#

HomeForumsMonoBrick EV3 FirmwareConversion of ReadSensorColorEx(IN_1,colorval,raw,norm,scaled) C function in F#

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5168
    Author Image
    Hasan Sait ARSLAN
    Participant

    Hi!

    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?

    #5169
    Author Image
    Tcm0
    Participant

    Are you sure that you want to use F# and not C#?

    #5176
    Author Image
    Anders Søborg
    Keymaster

    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?

    /Anders

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Posted in

Make a donation