Reply To: Touch Sensor example does not compile

HomeForumsMonoBrick EV3 FirmwareTouch Sensor example does not compileReply To: Touch Sensor example does not compile


I answer myself, in the documentation Library () I have just discover that the Touch Sensor Class is no longer used with “var touchSensor = new EV3TouchSensor(SensorPort.In1);” but using the following statement: “var touchSensor = new TouchSensor(SensorPort.In1);”. This new declaration is valid for NXT and EV3 touch sensors, no difference has to be made.

So the Example used before is no longer valid and declaration of touch sensor has to be changed in order to compile with the last MonoBrick DLL.

Hope it helps

Posted in

Make a donation