EV3ColorSensor how to turn it off.

HomeForumsMonoBrick EV3 FirmwareEV3ColorSensor how to turn it off.

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
    Keymaster

    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