CamelCaseifcation of LED related functions

s/led_set_crgb_at/setCrgbAt/
s/hsv_to_rgb/hsvToRgb/
s/led_get_crgb_at/getCrgbAt/
s/led_sync/syncLeds/
s/get_led_index/getLedIndex/
s/send_led_data/sendLedData/
s/led_power_fault/ledPowerFault/
pull/365/head
Jesse Vincent 7 years ago
parent ee0ccdd91d
commit 978d04625d
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -41,7 +41,7 @@ void TestMode_::wait_for_keypress() {
void TestMode_::set_leds(uint8_t r, uint8_t g, uint8_t b) {
LEDControl.set_all_leds_to(r, g, b);
LEDControl.led_sync();
LEDControl.syncLeds();
wait_for_keypress();
}
@ -57,7 +57,7 @@ void TestMode_::test_leds(void) {
// rainbow for 10 seconds
for (auto i = 0; i < 1000; i++) {
LEDRainbowEffect.update();
LEDControl.led_sync();
LEDControl.syncLeds();
}
// set all the keys to red
}
@ -84,9 +84,9 @@ void TestMode_::test_matrix() {
// Serial.print(keynum);
// Serial.print(" value ");
// Serial.println(keyState);
KeyboardHardware.led_set_crgb_at(row, 7 - col, green);
KeyboardHardware.setCrgbAt(row, 7 - col, green);
} else if (keyState == 1) {
KeyboardHardware.led_set_crgb_at(row, 7 - col, blue);
KeyboardHardware.setCrgbAt(row, 7 - col, blue);
}
keyState = (bitRead(KeyboardHardware.previousRightHandState.all, keynum) << 0) |
@ -97,13 +97,13 @@ void TestMode_::test_matrix() {
// Serial.print(keynum);
// Serial.print(" value ");
// Serial.println(keyState);
KeyboardHardware.led_set_crgb_at(row, 15 - col, green);
KeyboardHardware.setCrgbAt(row, 15 - col, green);
} else if (keyState == 1) {
KeyboardHardware.led_set_crgb_at(row, 15 - col, blue);
KeyboardHardware.setCrgbAt(row, 15 - col, blue);
}
}
}
LEDControl.led_sync();
LEDControl.syncLeds();
}
}

Loading…
Cancel
Save