Versions in this module Expand all Collapse all v0 v0.1.0 Jan 25, 2021 Changes in this version + const LEDALT + const LEDAP + const LEDAPR + const LEDAll + const LEDAllGreen + const LEDAllRed + const LEDAllYellow + const LEDHDG + const LEDIAS + const LEDLAll + const LEDLGreen + const LEDLRed + const LEDLYellow + const LEDNAV + const LEDNAll + const LEDNGreen + const LEDNRed + const LEDNYellow + const LEDRAll + const LEDREV + const LEDRGreen + const LEDRRed + const LEDRYellow + const LEDVS + const USBProductMulti + const USBProductRadio + const USBProductSwitch + const USBVendorPanel + var DisplayMap = map[string]DisplayID + var LEDMap = map[string]byte + var PanelIDMap = map[string]PanelID + var SwitchIDMap = map[string]SwitchID + func LEDString(s string) (byte, error) + type DisplayID uint + const Display1Active + const Display1Standby + const Display2Active + const Display2Standby + const Row1 + const Row2 + func DisplayIDString(s string) (DisplayID, error) + type LEDDisplayer interface + LEDs func(leds byte) + LEDsOff func(leds byte) + LEDsOn func(leds byte) + LEDsOnOff func(leds byte, val float64) + type MultiPanel struct + func NewMultiPanel() (*MultiPanel, error) + func (panel *MultiPanel) Close() + func (panel *MultiPanel) DisplayInt(display DisplayID, n int) + func (panel *MultiPanel) DisplayString(display DisplayID, s string) + func (panel *MultiPanel) ID() PanelID + func (panel *MultiPanel) IsSwitchSet(id SwitchID) bool + func (panel *MultiPanel) LEDs(leds byte) + func (panel *MultiPanel) LEDsOff(leds byte) + func (panel *MultiPanel) LEDsOn(leds byte) + func (panel *MultiPanel) LEDsOnOff(leds byte, val float64) + func (panel *MultiPanel) WatchSwitches() chan SwitchState + type PanelID int + const Multi + const Radio + const Switch + func PanelIDString(s string) (PanelID, error) + type PanelSwitches uint32 + func (switches PanelSwitches) IsSet(id SwitchID) bool + func (switches PanelSwitches) SwitchState(id SwitchID) uint + type RadioPanel struct + func NewRadioPanel() (*RadioPanel, error) + func (panel *RadioPanel) Close() + func (panel *RadioPanel) DisplayFloat(display DisplayID, n float64, decimals int) + func (panel *RadioPanel) DisplayInt(display DisplayID, n int) + func (panel *RadioPanel) DisplayOff() + func (panel *RadioPanel) DisplayString(display DisplayID, s string) + func (panel *RadioPanel) ID() PanelID + func (panel *RadioPanel) IsSwitchSet(id SwitchID) bool + func (panel *RadioPanel) WatchSwitches() chan SwitchState + type StringDisplayer interface + DisplayString func(display DisplayID, s string) + type SwitchID uint + const AutoThrottle + const BtnALT + const BtnAP + const BtnAPR + const BtnHDG + const BtnIAS + const BtnNAV + const BtnREV + const BtnVS + const Enc1CCW1 + const Enc1CCW2 + const Enc1CW1 + const Enc1CW2 + const Enc2CCW1 + const Enc2CCW2 + const Enc2CW1 + const Enc2CW2 + const EncCCW + const EncCW + const FlapsDown + const FlapsUp + const GearDown + const GearUp + const Rot1ADF + const Rot1COM1 + const Rot1COM2 + const Rot1DME + const Rot1NAV1 + const Rot1NAV2 + const Rot1XPDR + const Rot2ADF + const Rot2Com1 + const Rot2Com2 + const Rot2DME + const Rot2NAV1 + const Rot2NAV2 + const Rot2XPDR + const RotALT + const RotBoth + const RotCRS + const RotHDG + const RotIAS + const RotL + const RotOff + const RotR + const RotStart + const RotVS + const SwAct1 + const SwAct2 + const SwAlternator + const SwAvionics + const SwBat + const SwBeacon + const SwCowl + const SwDeice + const SwFuel + const SwLanding + const SwNav + const SwPanel + const SwPitot + const SwStrobe + const SwTaxi + const TrimDown + const TrimUp + func SwitchIDString(s string) (SwitchID, error) + type SwitchPanel struct + func NewSwitchPanel() (*SwitchPanel, error) + func (panel *SwitchPanel) Close() + func (panel *SwitchPanel) ID() PanelID + func (panel *SwitchPanel) IsSwitchSet(id SwitchID) bool + func (panel *SwitchPanel) LEDs(leds byte) + func (panel *SwitchPanel) LEDsOff(leds byte) + func (panel *SwitchPanel) LEDsOn(leds byte) + func (panel *SwitchPanel) LEDsOnOff(leds byte, val float64) + func (panel *SwitchPanel) WatchSwitches() chan SwitchState + type SwitchState struct + On bool + Panel PanelID + Switch SwitchID + type SwitchingPanel interface + ID func() PanelID + IsSwitchSet func(i SwitchID) bool