Last active
January 24, 2017 20:10
-
-
Save matthewellis/0a4094cc9ee31845117a31bb769018e5 to your computer and use it in GitHub Desktop.
Color hack for rgb lightstrip controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (c Color) Format() []byte { | |
//ignoreW := True | |
ignoreW := uint8(0x00) | |
if c.UseW { | |
ignoreW = False | |
} | |
return []byte{c.R, c.G, c.B, c.W, ignoreW} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment