Documentation
¶
Index ¶
- type Controller
- func (c *Controller) AddSign(name string, address, width, height int) error
- func (c *Controller) CreateImage(signName string) (*image.Gray, error)
- func (c *Controller) DrawImage(img *image.Gray, signName string) error
- func (c *Controller) StartTestSigns() error
- func (c *Controller) StopTestSigns() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller represents the main interface for controlling Hanover flipdot displays
func NewController ¶
func NewController(serialPort string) (*Controller, error)
NewController creates a new Controller
func (*Controller) AddSign ¶
func (c *Controller) AddSign(name string, address, width, height int) error
AddSign adds a new sign to the controller
func (*Controller) CreateImage ¶
func (c *Controller) CreateImage(signName string) (*image.Gray, error)
CreateImage creates a blank image for a specific sign
func (*Controller) DrawImage ¶
func (c *Controller) DrawImage(img *image.Gray, signName string) error
DrawImage sends an image to a specific sign
func (*Controller) StartTestSigns ¶
func (c *Controller) StartTestSigns() error
StartTestSigns starts the test sequence on all connected signs
func (*Controller) StopTestSigns ¶
func (c *Controller) StopTestSigns() error
StopTestSigns stops the test sequence on all connected signs
Click to show internal directories.
Click to hide internal directories.