Home→Forums→MonoBrick EV3 Firmware→Touch Sensor example does not compile→Reply To: Touch Sensor example does not compile
June 18, 2014 at 14:05
#4421
Daniel Fernández Pérez
Participant
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
Follow