Documentation
¶
Overview ¶
Package nuimo provides an interaction layer for Senic Nuimo devices. It allows to receive user inputs and can write out led pictographs to the LED display.
Index ¶
Constants ¶
View Source
const CHAR_BATTERY_LEVEL = "2A19"
View Source
const CHAR_DEVICE_INFO = "2A29"
View Source
const CHAR_INPUT_CLICK = "F29B1529CB1940F3BE5C7241ECB82FD2"
View Source
const CHAR_INPUT_FLY = "F29B1526CB1940F3BE5C7241ECB82FD2"
View Source
const CHAR_INPUT_ROTATE = "F29B1528CB1940F3BE5C7241ECB82FD2"
View Source
const CHAR_INPUT_SWIPE = "F29B1527CB1940F3BE5C7241ECB82FD2"
View Source
const CHAR_LED_MATRIX = "F29B1524CB1940F3BE5C7241ECB82FD1"
View Source
const CLICK_DOWN = 1
View Source
const CLICK_UP = 0
View Source
const DIR_BACKWARDS = 2
View Source
const DIR_DOWN = 3
View Source
const DIR_LEFT = 0
View Source
const DIR_RIGHT = 1
View Source
const DIR_TOWARDS = 3
View Source
const DIR_UP = 2
View Source
const DIR_UPDOWN = 4
View Source
const SERVICE_BATTERY_STATUS = "180F"
View Source
const SERVICE_DEVICE_INFO = "180A"
View Source
const SERVICE_LED_MATRIX = "F29B1523CB1940F3BE5C7241ECB82FD1"
View Source
const SERVICE_USER_INPUT = "F29B1525CB1940F3BE5C7241ECB82FD2"
Variables ¶
This section is empty.
Functions ¶
func DisplayMatrix ¶
DisplayMatrix transforms a matrix consisting of 0s and 1s into a byte matrix
Types ¶
type Nuimo ¶
type Nuimo struct {
// contains filtered or unexported fields
}
func Connect ¶
Connect tried to find nearby devices and connects to them. It tries to reconnect when a timeout interval is passed as first argument.
func (*Nuimo) Disconnect ¶
Disconnect closes the connection and drops all subscriptions
Click to show internal directories.
Click to hide internal directories.