Renamed to momentum; moved implementation into dedicated files

This commit is contained in:
Chris Lewis
2018-08-18 20:43:39 +10:00
parent f5025c4166
commit 12fcf80d3d
6 changed files with 53 additions and 32 deletions
+2 -7
View File
@@ -80,6 +80,8 @@
#include <avr/pgmspace.h>
#endif
#include "momentum.h"
extern LED_TYPE led[RGBLED_NUM];
extern const uint8_t RGBLED_BREATHING_INTERVALS[4] PROGMEM;
@@ -89,10 +91,6 @@ extern const uint8_t RGBLED_SNAKE_INTERVALS[3] PROGMEM;
extern const uint8_t RGBLED_KNIGHT_INTERVALS[3] PROGMEM;
extern const uint16_t RGBLED_RGBTEST_INTERVALS[1] PROGMEM;
//Used in rgblight.c and quantum.c to match RGB animation to typing speed
extern uint8_t typing_speed;
#define TYPING_SPEED_MAX_VALUE 200
typedef union {
uint32_t raw;
struct {
@@ -171,7 +169,4 @@ void rgblight_effect_knight(uint8_t interval);
void rgblight_effect_christmas(void);
void rgblight_effect_rgbtest(void);
void typing_speed_decay_task(void);
uint8_t typing_speed_matched_interval(uint8_t minValue, uint8_t maxValue);
#endif