apa102: fix typo, use DefaultOpts in cmd

Reduce the number of constants by having cmd/apa102 uses the values from
apa102.DefaultOpts. This increases the default intensity from 127 to 255.
pull/1/head
Marc-Antoine Ruel 8 years ago
parent dfd55c438e
commit 8fa8a276a6

@ -36,7 +36,7 @@ var DefaultOpts = Opts{
// Opts defines the options for the device. // Opts defines the options for the device.
type Opts struct { type Opts struct {
// NumPixels is the number of pixelsto control. If too short, the following // NumPixels is the number of pixels to control. If too short, the following
// pixels will be corrupted. If too long, the pixels will be drawn // pixels will be corrupted. If too long, the pixels will be drawn
// unnecessarily but not visible issue will occur. // unnecessarily but not visible issue will occur.
NumPixels int NumPixels int

Loading…
Cancel
Save