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); } }
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); } }
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); }