|
|
@ -25,59 +25,57 @@
|
|
|
|
p00, p01, p02, p03, \
|
|
|
|
p00, p01, p02, p03, \
|
|
|
|
p10, p11, p12, p13, \
|
|
|
|
p10, p11, p12, p13, \
|
|
|
|
p20, p21, p22, p23, \
|
|
|
|
p20, p21, p22, p23, \
|
|
|
|
p30, p31, p32, p33 \
|
|
|
|
p30, p31, p32, p33) \
|
|
|
|
) \
|
|
|
|
|
|
|
|
(uint16_t) ( \
|
|
|
|
(uint16_t) ( \
|
|
|
|
p00 << 0 | p01 << 1 | p02 << 2 | p03 << 3 | \
|
|
|
|
p00 << 0 | p01 << 1 | p02 << 2 | p03 << 3 | \
|
|
|
|
p10 << 4 | p11 << 5 | p12 << 6 | p13 << 7 | \
|
|
|
|
p10 << 4 | p11 << 5 | p12 << 6 | p13 << 7 | \
|
|
|
|
p20 << 8 | p21 << 9 | p22 << 10 | p23 << 11 | \
|
|
|
|
p20 << 8 | p21 << 9 | p22 << 10 | p23 << 11 | \
|
|
|
|
p30 << 12 | p31 << 13 | p32 << 14 | p33 << 15 \
|
|
|
|
p30 << 12 | p31 << 13 | p32 << 14 | p33 << 15 )
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace KaleidoscopePlugins {
|
|
|
|
namespace KaleidoscopePlugins {
|
|
|
|
class AlphaSquare : public KaleidoscopePlugin {
|
|
|
|
class AlphaSquare : public KaleidoscopePlugin {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
AlphaSquare(void);
|
|
|
|
AlphaSquare(void);
|
|
|
|
|
|
|
|
|
|
|
|
virtual void begin(void) final;
|
|
|
|
void begin(void) final;
|
|
|
|
|
|
|
|
|
|
|
|
static void display(Key key, uint8_t row, uint8_t col, cRGB keyColor);
|
|
|
|
static void display(Key key, uint8_t row, uint8_t col, cRGB keyColor);
|
|
|
|
static void display(Key key, uint8_t row, uint8_t col);
|
|
|
|
static void display(Key key, uint8_t row, uint8_t col);
|
|
|
|
static void display(Key key) {
|
|
|
|
static void display(Key key) {
|
|
|
|
display(key, 0, 2);
|
|
|
|
display(key, 0, 2);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
static void display(Key key, uint8_t col) {
|
|
|
|
static void display(Key key, uint8_t col) {
|
|
|
|
display(key, 0, col);
|
|
|
|
display(key, 0, col);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void display(uint16_t symbol, uint8_t row, uint8_t col, cRGB keyColor);
|
|
|
|
static void display(uint16_t symbol, uint8_t row, uint8_t col, cRGB keyColor);
|
|
|
|
static void display(uint16_t symbol, uint8_t row, uint8_t col);
|
|
|
|
static void display(uint16_t symbol, uint8_t row, uint8_t col);
|
|
|
|
static void display(uint16_t symbol) {
|
|
|
|
static void display(uint16_t symbol) {
|
|
|
|
display(symbol, 0, 2);
|
|
|
|
display(symbol, 0, 2);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
static void display(uint16_t symbol, uint8_t col) {
|
|
|
|
static void display(uint16_t symbol, uint8_t col) {
|
|
|
|
display(symbol, 0, col);
|
|
|
|
display(symbol, 0, col);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void clear(Key key, uint8_t row, uint8_t col) {
|
|
|
|
static void clear(Key key, uint8_t row, uint8_t col) {
|
|
|
|
display(key, row, col, {0, 0, 0});
|
|
|
|
display(key, row, col, {0, 0, 0});
|
|
|
|
};
|
|
|
|
}
|
|
|
|
static void clear(Key key, uint8_t col) {
|
|
|
|
static void clear(Key key, uint8_t col) {
|
|
|
|
clear(key, 0, col);
|
|
|
|
clear(key, 0, col);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
static void clear(Key key) {
|
|
|
|
static void clear(Key key) {
|
|
|
|
clear(key, 0, 2);
|
|
|
|
clear(key, 0, 2);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void clear(uint16_t symbol, uint8_t row, uint8_t col) {
|
|
|
|
static void clear(uint16_t symbol, uint8_t row, uint8_t col) {
|
|
|
|
display(symbol, row, col, {0, 0, 0});
|
|
|
|
display(symbol, row, col, {0, 0, 0});
|
|
|
|
};
|
|
|
|
}
|
|
|
|
static void clear(uint16_t symbol, uint8_t col) {
|
|
|
|
static void clear(uint16_t symbol, uint8_t col) {
|
|
|
|
clear(symbol, 0, col);
|
|
|
|
clear(symbol, 0, col);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
static void clear(uint16_t symbol) {
|
|
|
|
static void clear(uint16_t symbol) {
|
|
|
|
clear(symbol, 0, 2);
|
|
|
|
clear(symbol, 0, 2);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static cRGB color;
|
|
|
|
static cRGB color;
|
|
|
|
};
|
|
|
|
};
|
|
|
|