Versions in this module Expand all Collapse all v0 v0.0.1 Mar 7, 2022 Changes in this version + var DefaultOpts = Opts + var ErrModeNotSupported = errors.New("operation mode not supported") + var ErrOutOfBounds = errors.New("data is out of operation range") + var ErrUninitialized = errors.New("device is not configured") + func LedDriverCfg(a, b, c, d DrvMode) uint8 + type Dev struct + func NewSPI(p spi.Port, opts *Opts) (*Dev, error) + func (d *Dev) All(pwm ...uint8) (err error) + func (d *Dev) Blink(freq physic.Frequency, pwm uint8) (err error) + func (d *Dev) Bounds() image.Rectangle + func (d *Dev) ColorModel() color.Model + func (d *Dev) Draw(r image.Rectangle, src image.Image, sp image.Point) error + func (d *Dev) Halt() (err error) + func (d *Dev) NoBlink() (err error) + func (d *Dev) One(stripe, pixel int, value color.Color) error + func (d *Dev) String() string + type DrvMode uint8 + const GROUP_CTL + const NO_CTL + const OFF + const PWM_ONLY + type Opts struct + Channels int + Freq physic.Frequency + Gain uint8 + NumPixels int + NumStripes int + type PCA9957Reg uint8 + const EFLAG0 + const EFLAG1 + const EFLAG2 + const EFLAG3 + const EFLAG4 + const EFLAG5 + const GRAD_CNTL0 + const GRAD_CNTL1 + const GRAD_GRP_SEL0 + const GRAD_GRP_SEL1 + const GRAD_GRP_SEL10 + const GRAD_GRP_SEL11 + const GRAD_GRP_SEL2 + const GRAD_GRP_SEL3 + const GRAD_GRP_SEL4 + const GRAD_GRP_SEL5 + const GRAD_GRP_SEL6 + const GRAD_GRP_SEL7 + const GRAD_GRP_SEL8 + const GRAD_GRP_SEL9 + const GRAD_MODE_SEL0 + const GRAD_MODE_SEL1 + const GRAD_MODE_SEL2 + const GRPFREQ + const GRPPWM + const HOLD_CNTL_GRP0 + const HOLD_CNTL_GRP1 + const HOLD_CNTL_GRP2 + const HOLD_CNTL_GRP3 + const HOLD_CNTL_GRP4 + const HOLD_CNTL_GRP5 + const IREF0 + const IREF1 + const IREF10 + const IREF11 + const IREF12 + const IREF13 + const IREF14 + const IREF15 + const IREF16 + const IREF17 + const IREF18 + const IREF19 + const IREF2 + const IREF20 + const IREF21 + const IREF22 + const IREF23 + const IREF3 + const IREF4 + const IREF5 + const IREF6 + const IREF7 + const IREF8 + const IREF9 + const IREFALL + const IREF_GRP0 + const IREF_GRP1 + const IREF_GRP2 + const IREF_GRP3 + const IREF_GRP4 + const IREF_GRP5 + const LEDOUT0 + const LEDOUT1 + const LEDOUT2 + const LEDOUT3 + const LEDOUT4 + const LEDOUT5 + const MODE1 + const MODE2 + const OFFSET + const PWM0 + const PWM1 + const PWM10 + const PWM11 + const PWM12 + const PWM13 + const PWM14 + const PWM15 + const PWM16 + const PWM17 + const PWM18 + const PWM19 + const PWM2 + const PWM20 + const PWM21 + const PWM22 + const PWM23 + const PWM3 + const PWM4 + const PWM5 + const PWM6 + const PWM7 + const PWM8 + const PWM9 + const PWMALL + const RAMP_RATE_GRP0 + const RAMP_RATE_GRP1 + const RAMP_RATE_GRP2 + const RAMP_RATE_GRP3 + const RAMP_RATE_GRP4 + const RAMP_RATE_GRP5 + const STEP_TIME_GRP0 + const STEP_TIME_GRP1 + const STEP_TIME_GRP2 + const STEP_TIME_GRP3 + const STEP_TIME_GRP4 + const STEP_TIME_GRP5