Skip to content

File neotrellis.h

FileList > dev > neotrellis.h

Go to the source code of this file

  • #include "dev/neopixel.h"

Namespaces

Type Name
namespace daisy
Hardware defines and helpers for daisy field platform.

Classes

Type Name
class NeoTrellis <typename Transport>
Device support for the Adafruit Neotrellis device.
struct Config
struct Bit
class NeoTrellisI2CTransport
struct Config

Public Types

Type Name
union keyEvent
union keyEventRaw
union keyState

Macros

Type Name
define DSY_NEO_TRELLIS_H
define NEO_TRELLIS_ADDR 0x2E
define NEO_TRELLIS_KEY (x) (((x) / 4) \* 8 + ((x) % 4))
define NEO_TRELLIS_MAX_CALLBACKS 32
define NEO_TRELLIS_NEOPIX_PIN 3
define NEO_TRELLIS_NUM_COLS 4
define NEO_TRELLIS_NUM_KEYS (NEO\_TRELLIS\_NUM\_ROWS \* NEO\_TRELLIS\_NUM\_COLS)
define NEO_TRELLIS_NUM_ROWS 4
define NEO_TRELLIS_SEESAW_KEY (x) (((x) / 8) \* 4 + ((x) % 8))
define NEO_TRELLIS_X (k) ((k) % 4)
define NEO_TRELLIS_XY (x, y) ((y)\*NEO\_TRELLIS\_NUM\_ROWS + (x))
define NEO_TRELLIS_Y (k) ((k) / 4)

Public Types Documentation

union keyEvent


extended key event stucture for keypad module


union keyEventRaw



union keyState


key state struct that will be written to seesaw chip keypad module


Macro Definition Documentation

define DSY_NEO_TRELLIS_H

#define DSY_NEO_TRELLIS_H 

define NEO_TRELLIS_ADDR

#define NEO_TRELLIS_ADDR `0x2E`

define NEO_TRELLIS_KEY

#define NEO_TRELLIS_KEY (
    x
) `(((x) / 4) * 8 + ((x) % 4))`

define NEO_TRELLIS_MAX_CALLBACKS

#define NEO_TRELLIS_MAX_CALLBACKS `32`

define NEO_TRELLIS_NEOPIX_PIN

#define NEO_TRELLIS_NEOPIX_PIN `3`

define NEO_TRELLIS_NUM_COLS

#define NEO_TRELLIS_NUM_COLS `4`

define NEO_TRELLIS_NUM_KEYS

#define NEO_TRELLIS_NUM_KEYS `(NEO_TRELLIS_NUM_ROWS * NEO_TRELLIS_NUM_COLS)`

define NEO_TRELLIS_NUM_ROWS

#define NEO_TRELLIS_NUM_ROWS `4`

define NEO_TRELLIS_SEESAW_KEY

#define NEO_TRELLIS_SEESAW_KEY (
    x
) `(((x) / 8) * 4 + ((x) % 8))`

define NEO_TRELLIS_X

#define NEO_TRELLIS_X (
    k
) `((k) % 4)`

define NEO_TRELLIS_XY

#define NEO_TRELLIS_XY (
    x,
    y
) `((y)*NEO_TRELLIS_NUM_ROWS + (x))`

define NEO_TRELLIS_Y

#define NEO_TRELLIS_Y (
    k
) `((k) / 4)`


The documentation for this class was generated from the following file external-docs/libDaisy/src/dev/neotrellis.h