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 0af034bde9
commit 2e428d8ccc
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -10,7 +10,7 @@ void LEDRainbowEffect_::update(void) {
rainbow_current_ticks = 0; rainbow_current_ticks = 0;
} }
cRGB rainbow = hsv_to_rgb(rainbow_hue, rainbow_saturation, rainbow_value); cRGB rainbow = hsvToRgb(rainbow_hue, rainbow_saturation, rainbow_value);
rainbow_hue += rainbow_steps; rainbow_hue += rainbow_steps;
if (rainbow_hue >= 255) { if (rainbow_hue >= 255) {
@ -42,8 +42,8 @@ void LEDRainbowWaveEffect_::update(void) {
if (key_hue >= 255) { if (key_hue >= 255) {
key_hue -= 255; key_hue -= 255;
} }
cRGB rainbow = hsv_to_rgb(key_hue, rainbow_saturation, rainbow_value); cRGB rainbow = hsvToRgb(key_hue, rainbow_saturation, rainbow_value);
LEDControl.led_set_crgb_at(i, rainbow); LEDControl.setCrgbAt(i, rainbow);
} }
rainbow_hue += rainbow_wave_steps; rainbow_hue += rainbow_wave_steps;
if (rainbow_hue >= 255) { if (rainbow_hue >= 255) {

Loading…
Cancel
Save