reorganziation to remove unused functions from the api

pull/365/head
Jesse Vincent 8 years ago
parent 8f0976219a
commit 0ec9767232

@ -12,6 +12,8 @@ TestMode_::TestMode_(void) {
void TestMode_::begin(void) { void TestMode_::begin(void) {
red.r=101;
blue.b=101;
loop_hook_use (this->loopHook); loop_hook_use (this->loopHook);
} }
@ -26,7 +28,7 @@ void TestMode_::loopHook (bool postClear) {
} }
} }
void TestMode_::TestLEDs(void) { void TestMode_::test_leds(void) {
// make all LEDs dim red // make all LEDs dim red
LEDControl.set_all_leds_to(50,0,0); LEDControl.set_all_leds_to(50,0,0);
LEDControl.led_sync(); LEDControl.led_sync();
@ -75,7 +77,7 @@ void TestMode_::TestLEDs(void) {
void TestMode_::TestMatrix () { void TestMode_::test_matrix () {
while(1) { while(1) {
KeyboardHardware.read_matrix(); KeyboardHardware.read_matrix();
for (byte row = 0; row < 4; row++) { for (byte row = 0; row < 4; row++) {
@ -114,15 +116,9 @@ void TestMode_::TestMatrix () {
} }
} }
void TestMode_::setup() { void TestMode_::run_tests() {
red.r=101; test_leds();
blue.b=101; test_matrix();
TestLEDs();
}
void TestMode_::loop() {
TestMatrix();
} }
TestMode_ TestMode; TestMode_ TestMode;

@ -4,15 +4,12 @@
class TestMode_ { class TestMode_ {
public: public:
TestMode_(void); TestMode_(void);
void setup();
static void loop();
void begin(); void begin();
private: private:
static void TestLEDs(); static void run_tests();
static void TestKeys(); static void test_leds();
static void TestMatrix(); static void test_matrix();
static void TestOneKey();
static void loopHook(bool postClear); static void loopHook(bool postClear);
}; };

Loading…
Cancel
Save