From 769470fbd643ce1e1348c8a083adafc3959b9b4d Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 24 Jul 2017 14:59:03 -0700 Subject: [PATCH] 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/ --- examples/LED-AlphaSquare/LED-AlphaSquare.ino | 4 ++-- src/Kaleidoscope/LED-AlphaSquare.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/LED-AlphaSquare/LED-AlphaSquare.ino b/examples/LED-AlphaSquare/LED-AlphaSquare.ino index 66107d79..cabbdcce 100644 --- a/examples/LED-AlphaSquare/LED-AlphaSquare.ino +++ b/examples/LED-AlphaSquare/LED-AlphaSquare.ino @@ -48,7 +48,7 @@ const macro_t *macroAction(uint8_t macro_index, uint8_t key_state) { if (macro_index == 0) { for (uint8_t i = Key_A.keyCode; i <= Key_0.keyCode; i++) { LEDControl.set_all_leds_to(0, 0, 0); - LEDControl.led_sync(); + LEDControl.syncLeds(); delay(100); uint8_t col = 2; @@ -69,7 +69,7 @@ const macro_t *macroAction(uint8_t macro_index, uint8_t key_state) { } LEDControl.set_all_leds_to(0, 0, 0); - LEDControl.led_sync(); + LEDControl.syncLeds(); delay(100); for (uint8_t step = 0; step <= 0xf0; step += 8) { diff --git a/src/Kaleidoscope/LED-AlphaSquare.cpp b/src/Kaleidoscope/LED-AlphaSquare.cpp index 2376231a..5327af83 100644 --- a/src/Kaleidoscope/LED-AlphaSquare.cpp +++ b/src/Kaleidoscope/LED-AlphaSquare.cpp @@ -90,11 +90,11 @@ void AlphaSquare::display(uint16_t symbol, uint8_t row, uint8_t col, cRGB key_co if (!pixel) continue; - LEDControl.led_set_crgb_at(row + r, col + c, key_color); + LEDControl.setCrgbAt(row + r, col + c, key_color); } } - LEDControl.led_sync(); + LEDControl.syncLeds(); } void AlphaSquare::display(uint16_t symbol, uint8_t row, uint8_t col) {