Class EV3TouchSensor

    • Constructor Detail

      • EV3TouchSensor

        public EV3TouchSensor​(AnalogPort port)
      • EV3TouchSensor

        public EV3TouchSensor​(Port port)
    • Method Detail

      • init

        protected void init()
      • getTouchMode

        public SensorMode getTouchMode()
        Lego EV3 Touch sensor, Touch mode
        Detects when its front button is pressed

        Size and content of the sample
        The sample contains one element, a value of 0 indicates that the button is not presse, a value of 1 indicates the button is pressed.

        Returns:
        A sampleProvider See leJOS conventions for SampleProviders