Pinball dot-matrix clock animation thingy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
586 B

package matrix
import (
func DefaultConfig() *Config {
return &Config{
Matrix: driver.DefaultConfig(),
Display: defaultDisplayConfig,
Server: defaultServerConfig,
Clock: defaultClockConfig,
type Config struct {
Matrix *driver.Config `toml:"matrix"`
Display *DisplayConfig `toml:"display"`
Server *ServerConfig `toml:"server"`
Loader *LoaderConfig `toml:"loader"`
Clock *ClockConfig `toml:"clock"`
func (c *Config) Load(name string) error {
_, err := toml.DecodeFile(name, c)
return err