Kaleidoscope
Classes | Macros
Kaleidoscope-Hardware-Shortcut.h File Reference
#include <Arduino.h>
#include <AtmegaScanner.h>
Include dependency graph for Kaleidoscope-Hardware-Shortcut.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cRGB
 
class  Shortcut
 

Macros

#define HARDWARE_IMPLEMENTATION   Shortcut
 
#define COLS   14
 
#define ROWS   4
 
#define CRGB(r, g, b)   (cRGB){g, r, b}
 
#define LED_COUNT   16
 
#define KEYMAP( r0c2, r0cb, r0c1, r0c3, r0c4, r0c9, r0ca, r0cc, r0c0, r1c2, r1cb, r0cd, r2c0, r1c1, r1c3, r1c4, r1c9, r1ca, r1cc, r2cd, r1c0, r2c2, r2cb, r1cd, r2c1, r2c3, r2ca, r2cc, r0c6, r0c7, r1c6, r3c6, r1c7, r3c7, r2c6, r2c7, r2c5, r2c8, r3c5, r1c5, r3c8, r1c8, r0c5, r0c8)
 
#define SCANBIT(row, col)   ((uint32_t)1 << (row * (COLS / 2) + col))
 
#define R0C0   SCANBIT(0, 0)
 
#define R0C1   SCANBIT(0, 1)
 
#define R0C2   SCANBIT(0, 2)
 
#define R0C3   SCANBIT(0, 3)
 
#define R0C4   SCANBIT(0, 4)
 
#define R0C5   SCANBIT(0, 5)
 
#define R0C6   SCANBIT(0, 6)
 
#define R1C0   SCANBIT(1, 0)
 
#define R1C1   SCANBIT(1, 1)
 
#define R1C2   SCANBIT(1, 2)
 
#define R1C3   SCANBIT(1, 3)
 
#define R1C4   SCANBIT(1, 4)
 
#define R1C5   SCANBIT(1, 5)
 
#define R1C6   SCANBIT(1, 6)
 
#define R2C0   SCANBIT(2, 0)
 
#define R2C1   SCANBIT(2, 1)
 
#define R2C2   SCANBIT(2, 2)
 
#define R2C3   SCANBIT(2, 3)
 
#define R2C4   SCANBIT(2, 4)
 
#define R2C5   SCANBIT(2, 5)
 
#define R2C6   SCANBIT(2, 6)
 
#define R3C0   SCANBIT(3, 0)
 
#define R3C1   SCANBIT(3, 1)
 
#define R3C2   SCANBIT(3, 2)
 
#define R3C3   SCANBIT(3, 3)
 
#define R3C4   SCANBIT(3, 4)
 
#define R3C5   SCANBIT(3, 5)
 
#define R3C6   SCANBIT(3, 6)
 
#define R0C7   SCANBIT(0, 0)
 
#define R0C8   SCANBIT(0, 1)
 
#define R0C9   SCANBIT(0, 2)
 
#define R0C10   SCANBIT(0, 3)
 
#define R0C11   SCANBIT(0, 4)
 
#define R0C12   SCANBIT(0, 5)
 
#define R0C13   SCANBIT(0, 6)
 
#define R1C7   SCANBIT(1, 0)
 
#define R1C8   SCANBIT(1, 1)
 
#define R1C9   SCANBIT(1, 2)
 
#define R1C10   SCANBIT(1, 3)
 
#define R1C11   SCANBIT(1, 4)
 
#define R1C12   SCANBIT(1, 3)
 
#define R1C13   SCANBIT(1, 6)
 
#define R2C7   SCANBIT(2, 0)
 
#define R2C8   SCANBIT(2, 1)
 
#define R2C9   SCANBIT(2, 2)
 
#define R2C10   SCANBIT(2, 3)
 
#define R2C11   SCANBIT(2, 4)
 
#define R2C12   SCANBIT(2, 5)
 
#define R2C13   SCANBIT(2, 6)
 
#define R3C7   SCANBIT(3, 0)
 
#define R3C8   SCANBIT(3, 1)
 
#define R3C9   SCANBIT(3, 2)
 
#define R3C10   SCANBIT(3, 3)
 
#define R3C11   SCANBIT(3, 4)
 
#define R3C12   SCANBIT(3, 5)
 
#define R3C13   SCANBIT(3, 6)
 

Macro Definition Documentation

◆ COLS

#define COLS   14

◆ CRGB

#define CRGB (   r,
  g,
 
)    (cRGB){g, r, b}

◆ HARDWARE_IMPLEMENTATION

#define HARDWARE_IMPLEMENTATION   Shortcut

◆ KEYMAP

#define KEYMAP (   r0c2,
  r0cb,
  r0c1,
  r0c3,
  r0c4,
  r0c9,
  r0ca,
  r0cc,
  r0c0,
  r1c2,
  r1cb,
  r0cd,
  r2c0,
  r1c1,
  r1c3,
  r1c4,
  r1c9,
  r1ca,
  r1cc,
  r2cd,
  r1c0,
  r2c2,
  r2cb,
  r1cd,
  r2c1,
  r2c3,
  r2ca,
  r2cc,
  r0c6,
  r0c7,
  r1c6,
  r3c6,
  r1c7,
  r3c7,
  r2c6,
  r2c7,
  r2c5,
  r2c8,
  r3c5,
  r1c5,
  r3c8,
  r1c8,
  r0c5,
  r0c8 
)
Value:
{ \
{r0c0, r0c1, r0c2, r0c3, r0c4, r0c5, r0c6, r0c7, r0c8, r0c9, r0ca, r0cb, r0cc, r0cd}, \
{r1c0, r1c1, r1c2, r1c3, r1c4, r1c5, r1c6, r1c7, r1c8, r1c9, r1ca, r1cb, r1cc, r1cd}, \
{r2c0, r2c1, r2c2, r2c3, XXX, r2c5, r2c6, r2c7, r2c8, XXX, r2ca, r2cb, r2cc, r2cd}, \
{ XXX, XXX, XXX, XXX, XXX, r3c5, r3c6, r3c7, r3c8, XXX, XXX, XXX, XXX, XXX} \
}
#define XXX
Definition: key_defs.h:117

◆ LED_COUNT

#define LED_COUNT   16

◆ R0C0

#define R0C0   SCANBIT(0, 0)

◆ R0C1

#define R0C1   SCANBIT(0, 1)

◆ R0C10

#define R0C10   SCANBIT(0, 3)

◆ R0C11

#define R0C11   SCANBIT(0, 4)

◆ R0C12

#define R0C12   SCANBIT(0, 5)

◆ R0C13

#define R0C13   SCANBIT(0, 6)

◆ R0C2

#define R0C2   SCANBIT(0, 2)

◆ R0C3

#define R0C3   SCANBIT(0, 3)

◆ R0C4

#define R0C4   SCANBIT(0, 4)

◆ R0C5

#define R0C5   SCANBIT(0, 5)

◆ R0C6

#define R0C6   SCANBIT(0, 6)

◆ R0C7

#define R0C7   SCANBIT(0, 0)

◆ R0C8

#define R0C8   SCANBIT(0, 1)

◆ R0C9

#define R0C9   SCANBIT(0, 2)

◆ R1C0

#define R1C0   SCANBIT(1, 0)

◆ R1C1

#define R1C1   SCANBIT(1, 1)

◆ R1C10

#define R1C10   SCANBIT(1, 3)

◆ R1C11

#define R1C11   SCANBIT(1, 4)

◆ R1C12

#define R1C12   SCANBIT(1, 3)

◆ R1C13

#define R1C13   SCANBIT(1, 6)

◆ R1C2

#define R1C2   SCANBIT(1, 2)

◆ R1C3

#define R1C3   SCANBIT(1, 3)

◆ R1C4

#define R1C4   SCANBIT(1, 4)

◆ R1C5

#define R1C5   SCANBIT(1, 5)

◆ R1C6

#define R1C6   SCANBIT(1, 6)

◆ R1C7

#define R1C7   SCANBIT(1, 0)

◆ R1C8

#define R1C8   SCANBIT(1, 1)

◆ R1C9

#define R1C9   SCANBIT(1, 2)

◆ R2C0

#define R2C0   SCANBIT(2, 0)

◆ R2C1

#define R2C1   SCANBIT(2, 1)

◆ R2C10

#define R2C10   SCANBIT(2, 3)

◆ R2C11

#define R2C11   SCANBIT(2, 4)

◆ R2C12

#define R2C12   SCANBIT(2, 5)

◆ R2C13

#define R2C13   SCANBIT(2, 6)

◆ R2C2

#define R2C2   SCANBIT(2, 2)

◆ R2C3

#define R2C3   SCANBIT(2, 3)

◆ R2C4

#define R2C4   SCANBIT(2, 4)

◆ R2C5

#define R2C5   SCANBIT(2, 5)

◆ R2C6

#define R2C6   SCANBIT(2, 6)

◆ R2C7

#define R2C7   SCANBIT(2, 0)

◆ R2C8

#define R2C8   SCANBIT(2, 1)

◆ R2C9

#define R2C9   SCANBIT(2, 2)

◆ R3C0

#define R3C0   SCANBIT(3, 0)

◆ R3C1

#define R3C1   SCANBIT(3, 1)

◆ R3C10

#define R3C10   SCANBIT(3, 3)

◆ R3C11

#define R3C11   SCANBIT(3, 4)

◆ R3C12

#define R3C12   SCANBIT(3, 5)

◆ R3C13

#define R3C13   SCANBIT(3, 6)

◆ R3C2

#define R3C2   SCANBIT(3, 2)

◆ R3C3

#define R3C3   SCANBIT(3, 3)

◆ R3C4

#define R3C4   SCANBIT(3, 4)

◆ R3C5

#define R3C5   SCANBIT(3, 5)

◆ R3C6

#define R3C6   SCANBIT(3, 6)

◆ R3C7

#define R3C7   SCANBIT(3, 0)

◆ R3C8

#define R3C8   SCANBIT(3, 1)

◆ R3C9

#define R3C9   SCANBIT(3, 2)

◆ ROWS

#define ROWS   4

◆ SCANBIT

#define SCANBIT (   row,
  col 
)    ((uint32_t)1 << (row * (COLS / 2) + col))