Documentation ¶
Index ¶
- Constants
- Variables
- type Command
- func Flash(pad Pad, ticksOn uint8, ticksOff uint8, ticksCount uint8, color RGB) *Command
- func SetColor(pad Pad, color RGB) *Command
- func TagModel(index uint8, data []byte, cb func(data []byte, err error)) *Command
- func TagRead(index uint8, pageNum uint8, cb func(status uint8, data []byte, err error)) *Command
- func Wake() *Command
- type Event
- type Pad
- type RGB
- type TagAction
- type ToyPad
- type UID
Constants ¶
View Source
const ( VendorID = 0x0e6f ProductID = 0x0241 )
Variables ¶
View Source
var ( ErrFrameInvalidLength = errors.New("invalid frame length") ErrFrameInvalidChecksum = errors.New("invalid frame checksum") )
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command is a command to send to the toy pad.
type TagAction ¶
type TagAction uint8
TagAction represents the kind of event happenning related to a tag on the toypad.
Click to show internal directories.
Click to hide internal directories.