EV3ColorSensor how to turn it off.

HomeForumsMonoBrick EV3 FirmwareEV3ColorSensor how to turn it off.

This topic contains 1 reply, has 2 voices, and was last updated by Author Image Anders Søborg 3 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4030
    Author Image
    Casper Hansen
    Participant

    Hi!

    I think that the MonoBrick is great, thank you so much.

    However, I am working on a four connected robot and for that I am using a EV3ColorSensor.

    My problem was that I was unable to turn it off after detecting the color.

    Looking at the source code of the EV3ColorSensor I created this class:

    private class EV3ColorSensorEx : EV3ColorSensor
    {
    public EV3ColorSensorEx(SensorPort port, ColorMode mode)
    : base(port, mode)
    {
    }

    public void Off()
    {
    Reset ();
    }
    }

    It seems to be doing what I expect, but I would expect something easier.

    Have I overlooked something?

    /Casper

    #4034
    Author Image
    Anders Søborg
    Key Master

    Hi

    Thanks for using MonoBrick Firmware. I hope you like it

    It seems to be doing what I expect, but I would expect something easier.

    It seems pretty easy to me – am I missing something?

    Anders

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

You must be logged in to reply to this topic.

Posted in

Make a donation