Main Site Documentation

LED Issue


#1

When I turn the multicolour LED on, green an dblue appear to be switched over.
No big deal but good if you can verify and fix if necessary.

LED version is 1.1


using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;

using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;

namespace LEDs
{
    public partial class Program
    {
        void ProgramStarted()
        {
            /******************************************************************************************
            Access modules defined in the designer by typing their name:                            
            
            e.g.  button
                  camera1

            Initialize event handlers here.
            e.g. button.ButtonPressed += new GTM.MSR.Button.ButtonEventHandler(button_ButtonPressed);             
            ***************************************************************************************** */

            // Do one-time tasks here
            Debug.Print("Program Started");

            //led1 plugged into socket 4
            led1.AddBlue();             //green LED lights with Blue method
            Thread.Sleep(1000);
            led1.AddGreen();         //blue LED lights with Green method
            Thread.Sleep(1000);
            led1.AddRed();            //red LED lights - OK
            Thread.Sleep(1000);

            //led2 plugged into socket 10
            led2.AddBlue();           //green LED lights
            Thread.Sleep(1000);
            led2.AddGreen();       //blue LED lights
            Thread.Sleep(1000);
            led2.AddRed();          //red LED lights  - OK
            Thread.Sleep(5000);

            led1.TurnOff();
            led2.TurnOff();

        }
    }
}



#2

Thanks for feedback, we will verify the software.


#3

On the LED that is showing the wrong colors, please try it itself. It will still have revered colors but I need you to double check this for me please. Also, the one with correct colors will still be correct even if you use it alone.

Thanks for helping


#4

led.TurnBlue() makes it green for me too. Is this a Wall-E “Try blue, it’s the new red” situation?


#5

This is an interesting problem! The fix is easy so we will take care of it next release.


#6

sorry, to be clear, both LEDs exibited the problem. I just added the extra comments to led1 in the code.

Looks like you found it anyway. thanks again for taking care of this.

Cheers, mark.


#7

I have the same issue
TurnBlue() = Green and TurnGreen()=Blue
/Jimmy


#8

Curious - I don’t get that - when I TurnBlue or AddBlue - I get blue…


#9

Correct, no all modules have this issue. This is an easy software fix that will come in near future.


#10

If you need beta testers I would love to help.

/Jimmy


#11

I have two led modules, one has the color reversal issue described here and the other doesn’t.


#12

This happened for me too, just as I was showing off the kit in the office. luckily, my fellow devs where too busy being amazed to notice :slight_smile:


#13

LEDs are too much fun, even if they are at the wrong color :slight_smile:
A fix will be available soon.

Welcome to the community.