Versions in this module Expand all Collapse all v0 v0.1.4 Mar 8, 2019 Changes in this version + const Print + const Serial + func ToCppVarName(s string) string + type ArduinoErrorConfig map[string]ArduinoErrorDescription + func NewArduinoErrorConfigFromPath(path string) (*ArduinoErrorConfig, error) + func (aec *ArduinoErrorConfig) FromFile(path string) error + func (aec *ArduinoErrorConfig) FromReader(r io.Reader) error + func (aec *ArduinoErrorConfig) GetDescription(errorCode string) (*ArduinoErrorDescription, error) + func (aec *ArduinoErrorConfig) ToCppFile(filePath, name string) error + func (aec *ArduinoErrorConfig) WriteToFile(path string) error + type ArduinoErrorDescription struct + Character string + Name string + Param string type Config + GetDeviceConfig func() *DeviceConfig + type DeviceConfig struct + SerialConfig *SerialConfig + Type Type + func NewDeviceConfigFromPath(path string) (*DeviceConfig, error) + func (dc *DeviceConfig) FromFile(path string) error + func (dc *DeviceConfig) FromReader(r io.Reader) error + func (dc *DeviceConfig) WriteToFile(path string) error + type JSONFileReadWriter interface + FromFile func(path string) error + FromReader func(r io.Reader) error + WriteToFile func(path string) error type PanelConfig + ArduinoErrorConfigPath string + DeviceConfigPath string + func (pc *PanelConfig) FromFile(path string) error + func (pc *PanelConfig) FromReader(r io.Reader) error + func (pc *PanelConfig) WriteToFile(path string) error + type SerialConfig struct + ArduinoErrorConfig *ArduinoErrorConfig + CommandSleepTime time.Duration + InitSleepTime time.Duration + LatchSleepTime time.Duration + ReadBufferSize int + StreamConfig *StreamConfig + Verbose bool + func (sc *SerialConfig) MarshalJSON() ([]byte, error) + func (sc *SerialConfig) UnmarshalJSON(b []byte) error + type StreamConfig struct + Baud int + Name string + Parity serial.Parity + ReadTimeout time.Duration + Size byte + StopBits serial.StopBits + func (sc *StreamConfig) MarshalJSON() ([]byte, error) + func (sc *StreamConfig) ToStreamSerialConfig() *serial.Config + func (sc *StreamConfig) UnmarshalJSON(b []byte) error + type Type string v0.1.3 Feb 22, 2019 Changes in this version + const MapFormatString + type Config interface + FromFile func(path string) error + FromReader func(r io.Reader) error + GetTileConfigs func() TileConfigs + WriteToFile func(path string) error + func NewConfigFromPanelConfigPath(path string) (Config, error) + type PanelConfig struct + TileConfigPaths []string + type TileConfig interface + FromFile func(path string) error + FromReader func(r io.Reader) error + GetBounds func() image.Rectangle + GetConnectionOrder func() int + GetLedStripeMap func() map[string]int + NumHardwarePixel func() int + WriteToFile func(path string) error + func NewTileConfigFromPath(path string) (TileConfig, error) + func NewTileConfigSnakeMapFile(g TileConfigSnakeGenerator) (TileConfig, error) + type TileConfigSnakeGenerator struct + type TileConfigs interface + GetSlice func() []TileConfig + Set func(index int, tileConfig *tileConfig)