From 3eae04689c799169b68d90391ed29f34cc287e41 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 25 Jan 2016 16:46:02 -0800 Subject: [PATCH] data type modernization --- led_control.cpp | 10 +++++----- led_control.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/led_control.cpp b/led_control.cpp index b15ba192..432da9d0 100644 --- a/led_control.cpp +++ b/led_control.cpp @@ -9,19 +9,19 @@ uint8_t led_mode; uint8_t last_led_mode; uint8_t stored_led_mode; uint8_t pos = 0; + cRGB led_off; cRGB led_steady; cRGB led_blue; cRGB led_dark_blue; cRGB led_bright_red; - cRGB led_breathe; - -// Begin RGB Stuff cRGB rainbow; + + uint8_t rainbow_hue = 0; //stores 0 to 614 -byte rainbow_steps = 1; //number of hues we skip in a 360 range per update -byte rainbow_wave_steps =1; //number of hues we skip in a 360 range per update +uint8_t rainbow_steps = 1; //number of hues we skip in a 360 range per update +uint8_t rainbow_wave_steps =1; //number of hues we skip in a 360 range per update byte rainbow_saturation = 255; byte rainbow_value = 190; diff --git a/led_control.h b/led_control.h index 80071836..8a7389c7 100644 --- a/led_control.h +++ b/led_control.h @@ -98,8 +98,8 @@ void set_all_leds_to(cRGB color); void set_led_mode(uint8_t mode); void next_led_mode(); -void set_key_color(byte row, byte col, cRGB color); -cRGB get_key_color(byte row, byte col); +void set_key_color(uint8_t row, uint8_t col, cRGB color); +cRGB get_key_color(uint8_t row, uint8_t col); void led_compute_breath(); void led_effect_breathe_init();