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 bbd155fa94
commit 6c723bee32
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -8,15 +8,15 @@ void LEDChaseEffect_::update(void) {
return; return;
} }
current_chase_counter = 0; current_chase_counter = 0;
LEDControl.led_set_crgb_at(pos - (chase_sign * chase_pixels), {0, 0, 0}); LEDControl.setCrgbAt(pos - (chase_sign * chase_pixels), {0, 0, 0});
LEDControl.led_set_crgb_at(pos, {0, 0, 0}); LEDControl.setCrgbAt(pos, {0, 0, 0});
pos += chase_sign; pos += chase_sign;
if (pos >= LED_COUNT || pos <= 0) { if (pos >= LED_COUNT || pos <= 0) {
chase_sign = -chase_sign; chase_sign = -chase_sign;
} }
LEDControl.led_set_crgb_at(pos, {0, 0, 255}); LEDControl.setCrgbAt(pos, {0, 0, 255});
LEDControl.led_set_crgb_at(pos - (chase_sign * chase_pixels), {255, 0, 0}); LEDControl.setCrgbAt(pos - (chase_sign * chase_pixels), {255, 0, 0});
} }
LEDChaseEffect_ LEDChaseEffect; LEDChaseEffect_ LEDChaseEffect;

Loading…
Cancel
Save