lbs

package
v0.0.0-...-a3207ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(cfg *Config)

Types

type Config

type Config struct {
	ZoomInButtonPin  uint8          `json:"zoomInButtonPin"`
	ZoomOutButtonPin uint8          `json:"zoomOutButtonPin"`
	GPS              *GPSConfig     `json:"gps"`
	Display          *DisplayConfig `json:"display"`
	IOT              *IOTConfig     `json:"iot"`
	Tile             *TileConfig    `json:"tile"`
}

Config ...

func LoadConfig

func LoadConfig(file string) (*Config, error)

type DisplayConfig

type DisplayConfig struct {
	Res           uint8 `json:"res"`
	Dc            uint8 `json:"dc"`
	Blk           uint8 `json:"blk"`
	Width         int   `json:"width"`
	Height        int   `json:"height"`
	SleepAfterMin int   `json:"sleepAfterMin"`
}

type GPSConfig

type GPSConfig struct {
	Dev        string              `json:"dev"`
	Baud       int                 `json:"baud"`
	DefaultLoc *geo.Point          `json:"defaultLoc"`
	Simulator  *GPSSimulatorConfig `json:"simulator"`
}

type GPSSimulatorConfig

type GPSSimulatorConfig struct {
	Enable bool   `json:"enable"`
	Source string `json:"source"`
}

type IOTConfig

type IOTConfig struct {
	Enable bool        `json:"enable"`
	Onenet *iot.Config `json:"onenet"`
}

type TileConfig

type TileConfig struct {
	MinZoom             int      `json:"ninZoom"`
	MaxZoom             int      `json:"maxZoom"`
	DefaultZoom         int      `json:"defaultZoom"`
	TileProviders       []string `json:"tileProviders"`
	DefaultTileProvider string   `json:"defaultTileProvider"`
	CacheDir            string   `json:"cacheDir"`
	Online              bool     `json:"online"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL