23 lines
335 B
C
23 lines
335 B
C
#include <tinyNeoPixel_Static.h>
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define RGB_COUNT 5
|
|
|
|
|
|
|
|
#define enable_rgb_timer() {TCB0.CNT = 0; TCB0.CTRLA |= 1;};
|
|
#define disable_rgb_timer() {TCB0.CTRLA &= ~1;};
|
|
|
|
|
|
|
|
extern tinyNeoPixel rgb;
|
|
|
|
extern uint8_t rgbled[3 * RGB_COUNT];
|
|
extern uint8_t (*rgb_program[1])(uint8_t);
|
|
|
|
|
|
|
|
void conf_rgb_timer();
|