mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-04-09 02:13:35 +00:00
main comp/eq commands implemented
factory methods unexported lr.go renamed to main.go main.go renamed to cli.go
This commit is contained in:
@@ -7,8 +7,12 @@ type Gate struct {
|
||||
baseAddress string
|
||||
}
|
||||
|
||||
func newGate(c *Client) *Gate {
|
||||
return &Gate{client: c, baseAddress: c.addressMap["strip"]}
|
||||
// Factory function to create Gate instance for Strip
|
||||
func newGateForStrip(c *Client) *Gate {
|
||||
return &Gate{
|
||||
client: c,
|
||||
baseAddress: c.addressMap["strip"],
|
||||
}
|
||||
}
|
||||
|
||||
// On retrieves the on/off status of the Gate for a specific strip (1-based indexing).
|
||||
|
||||
Reference in New Issue
Block a user