Documentation ¶
Index ¶
- Variables
- func FormatMovieTime() string
- func GPIOCheck() bool
- func Initialize()
- func LoadConfig()
- func RunEffectGPIO(effect Effect, length time.Duration)
- func RunMovie(movie FDMovie)
- func SaveMovie(movieName string)
- type Config
- type Effect
- type FDMovie
- type LoadedMovie
- type MovieTime
- type TimestampEffect
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // LoadedMovies An array of FDMovies LoadedMovies [128]LoadedMovie LoadedMoviesSize int // todo replace with function )
Functions ¶
func FormatMovieTime ¶
func FormatMovieTime() string
FormatMovieTime converts Milliseconds to position format.
func LoadConfig ¶
func LoadConfig()
LoadConfig Loads configuration from file and stores it into variable Conf
func RunEffectGPIO ¶
RunEffectGPIO runs the effect in GPIO, toggles the pins according to the duration.
Types ¶
type FDMovie ¶
type FDMovie struct { MovieName string `toml:"movie_name"` MovieLength int `toml:"movie_length"` // in minutes Effects map[string]*TimestampEffect `toml:"effects"` }
FDMovie holds all the information of a 4D movie script.
type LoadedMovie ¶
LoadedMovie holds a Movie struct and the name of the file it is loaded from.
func GetLoadedMovie ¶
func GetLoadedMovie(movieName string) (LoadedMovie, bool)
GetLoadedMovie using it's name from.
type MovieTime ¶
type MovieTime struct {
// contains filtered or unexported fields
}
MovieTime represents the time since the movie started.
type TimestampEffect ¶
type TimestampEffect struct { EffectName string `toml:"effect_name"` EffectLength int `toml:"length_ms"` // in milliseconds }
TimestampEffect holds a specific effect at a specific timestamp.
Click to show internal directories.
Click to hide internal directories.