public void Red() { if (isSet) { this.prevState = this.state; this.Pin0.Write(true); this.Pin1.Write(true); this.Pin2.Write(false); this.state = led_state.RED; } else { Debug.Print("The led '" + this.deviceInfo.Name + "' is not configured correctly and can not be used"); } }
public void Red() { if (isSet) { this.prevState = this.state; this.Pin0.Write(true); this.Pin1.Write(true); this.Pin2.Write(false); this.state = led_state.RED; } }
public void Green() { if (isSet) { this.prevState = this.state; this.Pin0.Write(false); this.Pin1.Write(true); this.Pin2.Write(true); this.state = led_state.GREEN; } }
public void Off() { if (isSet) { this.prevState = this.state; this.Pin0.Write(false); this.Pin1.Write(false); this.Pin2.Write(false); this.state = led_state.OFF; } }
public void Amber() { if (isSet) { this.prevState = this.state; this.Pin0.Write(false); this.Pin1.Write(true); this.Pin2.Write(false); this.state = led_state.AMBER; } }