Skip to content

Commit

Permalink
add TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mtei committed Jan 31, 2019
1 parent 64592b0 commit df6165a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions quantum/rgblight.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ void rgblight_effect_breathing(uint8_t interval) {
static uint16_t last_timer = 0;
float val;

//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < pgm_read_byte(&RGBLED_BREATHING_INTERVALS[interval])) {
return;
}
Expand All @@ -754,6 +755,7 @@ void rgblight_effect_rainbow_mood(uint8_t interval) {
static uint16_t current_hue = 0;
static uint16_t last_timer = 0;

//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < pgm_read_byte(&RGBLED_RAINBOW_MOOD_INTERVALS[interval])) {
return;
}
Expand All @@ -776,6 +778,8 @@ void rgblight_effect_rainbow_swirl(uint8_t interval) {
static uint16_t last_timer = 0;
uint16_t hue;
uint8_t i;

//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < pgm_read_byte(&RGBLED_RAINBOW_SWIRL_INTERVALS[interval / 2])) {
return;
}
Expand Down Expand Up @@ -811,6 +815,8 @@ void rgblight_effect_snake(uint8_t interval) {
if (interval % 2) {
increment = -1;
}

//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < pgm_read_byte(&RGBLED_SNAKE_INTERVALS[interval / 2])) {
return;
}
Expand Down Expand Up @@ -848,6 +854,8 @@ const uint8_t RGBLED_KNIGHT_INTERVALS[] PROGMEM = {127, 63, 31};

void rgblight_effect_knight(uint8_t interval) {
static uint16_t last_timer = 0;

//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < pgm_read_byte(&RGBLED_KNIGHT_INTERVALS[interval])) {
return;
}
Expand Down Expand Up @@ -895,6 +903,8 @@ void rgblight_effect_christmas(void) {
static uint16_t last_timer = 0;
uint16_t hue;
uint8_t i;

//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL) {
return;
}
Expand All @@ -918,6 +928,7 @@ void rgblight_effect_rgbtest(void) {
static uint8_t maxval = 0;
uint8_t g; uint8_t r; uint8_t b;

//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < pgm_read_word(&RGBLED_RGBTEST_INTERVALS[0])) {
return;
}
Expand All @@ -943,6 +954,8 @@ void rgblight_effect_rgbtest(void) {
void rgblight_effect_alternating(void){
static uint16_t last_timer = 0;
static uint16_t pos = 0;

//TODO: Integrate timer processing.
if (timer_elapsed(last_timer) < 500) {
return;
}
Expand Down
1 change: 1 addition & 0 deletions quantum/rgblight.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ typedef union {
typedef struct _rgblight_status_t {
bool timer_enabled;
// TODO: add animation syncronizing
// (with integrate timer processing.)
} rgblight_status_t;

#ifdef RGBLIGHT_SPLIT
Expand Down

0 comments on commit df6165a

Please sign in to comment.