예제 #1
0
        public override void Fade(ILed ledPort)
        {
            for (var i = MIN_BRIGHTNESS; i < MAX_BRIGHTNESS; i++)
            {
                ledPort.Write(true);
                DelayFor(i);

                ledPort.Write(false);
                DelayFor(MAX_BRIGHTNESS - i);
            }
        }
예제 #2
0
        public override void Fade(ILed ledPort)
        {
            for (var j = MAX_BRIGHTNESS; j > MIN_BRIGHTNESS; j--)
            {
                ledPort.Write(true);
                DelayFor(j);

                ledPort.Write(false);
                DelayFor(MAX_BRIGHTNESS - j);
            }
        }
예제 #3
0
 public void ClearAll()
 {
     _keyA.Write(false);
     _keyB.Write(false);
     _selectProject.Write(false);
     _arm.Write(false);
     _deploy.Write(false);
     _deploying.Write(false);
     _succeeded.Write(false);
     _failed.Write(false);
 }
예제 #4
0
        public override void Fade(ILed ledPort)
        {
            for (var j = MAX_BRIGHTNESS; j > MIN_BRIGHTNESS; j--)
            {
                ledPort.Write(true);
                DelayFor(j);

                ledPort.Write(false);
                DelayFor(MAX_BRIGHTNESS - j);
            }
        }