Calling NXC code and library from F#

103 Views Asked by At

There is a special function used in NXC called ReadColorSensorEx():

int ReadSensorColorEx   (   const byte &    port,
int &   colorval,
unsigned int &  raw[],
unsigned int &  norm[],
int &   scaled[] 
)   

But I cannot use exactly the same function in F# libraries.

norm[] type is for normalized color values, and scaled[] variable is scaled color values fetched by NXT Color Sensor.

But in MonoBrickFirmware.dll library which is used by F#, I couldn't find any way to fetch these two values.

NXC is not a .NET based programming language. NXC is a language developed for programming Lego NXT bricks.

NXC is using a special library for ReadColorSensorEx() function.

Is there a way to merge NXC code and it's libraries with F#?

0

There are 0 best solutions below