Remove an unused API

pull/18/head
Jesse Vincent 9 years ago
parent f21a6e72d5
commit c59a6a80d6

@ -1,23 +1,10 @@
#include "LEDControl.h" #include "LEDControl.h"
LEDControl_::LEDControl_(void) { LEDControl_::LEDControl_(void) {
} }
void LEDControl_::set_key_color(byte row, byte col, cRGB color) {
KeyboardHardware.led_set_crgb_at(row, col, color);
}
cRGB LEDControl_::get_key_color(byte row, byte col) {
return KeyboardHardware.get_key_color(row, col);
}
void LEDControl_::initialize_led_mode(uint8_t mode) { void LEDControl_::initialize_led_mode(uint8_t mode) {
set_all_leds_to(led_off); set_all_leds_to(led_off);
if (mode == LED_MODE_OFF) { if (mode == LED_MODE_OFF) {

@ -61,8 +61,6 @@ class LEDControl_ {
uint8_t current_chase_counter = 0; uint8_t current_chase_counter = 0;
static const uint8_t chase_threshold = 6; static const uint8_t chase_threshold = 6;
// End RGB stuff // End RGB stuff
void set_key_color(uint8_t row, uint8_t col, cRGB color);
cRGB get_key_color(uint8_t row, uint8_t col);
void led_compute_breath(); void led_compute_breath();
void effect_breathe_init(); void effect_breathe_init();
void effect_rainbow_init(); void effect_rainbow_init();

@ -22,10 +22,6 @@ void Model01Beta_::leds_setup() {
LED.setColorOrderGRB(); // Uncomment for RGB color order LED.setColorOrderGRB(); // Uncomment for RGB color order
} }
void Model01Beta_::led_set_crgb_at(byte row, byte col, cRGB color) {
LED.set_crgb_at(key_led_map[row][col], color);
}
cRGB Model01Beta_::get_key_color(byte row, byte col) { cRGB Model01Beta_::get_key_color(byte row, byte col) {
return LED.get_crgb_at(key_led_map[row][col]); return LED.get_crgb_at(key_led_map[row][col]);
} }

@ -18,15 +18,12 @@
#define LEFT_COLS 8 #define LEFT_COLS 8
#define LEFT_ROWS 4 #define LEFT_ROWS 4
//class Model01Beta_;
class Model01Beta_ { class Model01Beta_ {
public: public:
Model01Beta_(void); Model01Beta_(void);
void led_sync(void); void led_sync(void);
void led_set_crgb_at(byte row, byte col, cRGB color);
void led_set_crgb_at(uint8_t i, cRGB crgb); void led_set_crgb_at(uint8_t i, cRGB crgb);
cRGB get_key_color(byte row, byte col); cRGB get_key_color(byte row, byte col);

Loading…
Cancel
Save