diff options
Diffstat (limited to 'quantum/visualizer')
-rw-r--r-- | quantum/visualizer/common_gfxconf.h | 5 | ||||
-rw-r--r-- | quantum/visualizer/default_animations.h | 5 | ||||
-rw-r--r-- | quantum/visualizer/lcd_backlight.h | 6 | ||||
-rw-r--r-- | quantum/visualizer/lcd_backlight_keyframes.h | 5 | ||||
-rw-r--r-- | quantum/visualizer/lcd_keyframes.h | 5 | ||||
-rw-r--r-- | quantum/visualizer/led_backlight_keyframes.h | 5 | ||||
-rw-r--r-- | quantum/visualizer/resources/resources.h | 5 | ||||
-rw-r--r-- | quantum/visualizer/visualizer.h | 6 | ||||
-rw-r--r-- | quantum/visualizer/visualizer_keyframes.h | 5 |
9 files changed, 11 insertions, 36 deletions
diff --git a/quantum/visualizer/common_gfxconf.h b/quantum/visualizer/common_gfxconf.h index e5bbddbb0..e0735b37d 100644 --- a/quantum/visualizer/common_gfxconf.h +++ b/quantum/visualizer/common_gfxconf.h | |||
@@ -19,8 +19,7 @@ | |||
19 | * Please use spaces instead of tabs in this file. | 19 | * Please use spaces instead of tabs in this file. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #ifndef COMMON_GFXCONF_H | 22 | #pragma once |
23 | #define COMMON_GFXCONF_H | ||
24 | 23 | ||
25 | /////////////////////////////////////////////////////////////////////////// | 24 | /////////////////////////////////////////////////////////////////////////// |
26 | // GFX - Compatibility options // | 25 | // GFX - Compatibility options // |
@@ -353,5 +352,3 @@ | |||
353 | #define GMISC_NEED_MATRIXFLOAT2D GFXON | 352 | #define GMISC_NEED_MATRIXFLOAT2D GFXON |
354 | #define GMISC_NEED_MATRIXFIXED2D GFXOFF | 353 | #define GMISC_NEED_MATRIXFIXED2D GFXOFF |
355 | //#define GMISC_NEED_HITTEST_POLY GFXOFF | 354 | //#define GMISC_NEED_HITTEST_POLY GFXOFF |
356 | |||
357 | #endif /* COMMON_GFXCONF_H */ | ||
diff --git a/quantum/visualizer/default_animations.h b/quantum/visualizer/default_animations.h index 51320b8b8..9accd8977 100644 --- a/quantum/visualizer/default_animations.h +++ b/quantum/visualizer/default_animations.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef DEFAULT_ANIMATIONS_H_ | 17 | #pragma once |
18 | #define DEFAULT_ANIMATIONS_H_ | ||
19 | 18 | ||
20 | #include "visualizer.h" | 19 | #include "visualizer.h" |
21 | 20 | ||
@@ -26,5 +25,3 @@ extern keyframe_animation_t default_suspend_animation; | |||
26 | // An animation for testing and demonstrating the led support, should probably not be used for real world | 25 | // An animation for testing and demonstrating the led support, should probably not be used for real world |
27 | // cases | 26 | // cases |
28 | extern keyframe_animation_t led_test_animation; | 27 | extern keyframe_animation_t led_test_animation; |
29 | |||
30 | #endif /* DEFAULT_ANIMATIONS_H_ */ | ||
diff --git a/quantum/visualizer/lcd_backlight.h b/quantum/visualizer/lcd_backlight.h index 0a1535edf..4ea5b1463 100644 --- a/quantum/visualizer/lcd_backlight.h +++ b/quantum/visualizer/lcd_backlight.h | |||
@@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
22 | SOFTWARE. | 22 | SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef LCD_BACKLIGHT_H_ | 25 | #pragma once |
26 | #define LCD_BACKLIGHT_H_ | 26 | |
27 | #include <stdint.h> | 27 | #include <stdint.h> |
28 | 28 | ||
29 | // Helper macros for storing hue, staturation and intensity as unsigned integers | 29 | // Helper macros for storing hue, staturation and intensity as unsigned integers |
@@ -41,5 +41,3 @@ uint8_t lcd_get_backlight_brightness(void); | |||
41 | 41 | ||
42 | void lcd_backlight_hal_init(void); | 42 | void lcd_backlight_hal_init(void); |
43 | void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b); | 43 | void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b); |
44 | |||
45 | #endif /* LCD_BACKLIGHT_H_ */ | ||
diff --git a/quantum/visualizer/lcd_backlight_keyframes.h b/quantum/visualizer/lcd_backlight_keyframes.h index bde118449..88768dd4a 100644 --- a/quantum/visualizer/lcd_backlight_keyframes.h +++ b/quantum/visualizer/lcd_backlight_keyframes.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_ | 17 | #pragma once |
18 | #define QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_ | ||
19 | 18 | ||
20 | #include "visualizer.h" | 19 | #include "visualizer.h" |
21 | 20 | ||
@@ -26,5 +25,3 @@ bool lcd_backlight_keyframe_set_color(keyframe_animation_t* animation, visualize | |||
26 | 25 | ||
27 | bool lcd_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state); | 26 | bool lcd_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state); |
28 | bool lcd_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); | 27 | bool lcd_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); |
29 | |||
30 | #endif /* QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_ */ | ||
diff --git a/quantum/visualizer/lcd_keyframes.h b/quantum/visualizer/lcd_keyframes.h index 6346c8643..b7125e832 100644 --- a/quantum/visualizer/lcd_keyframes.h +++ b/quantum/visualizer/lcd_keyframes.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_ | 17 | #pragma once |
18 | #define QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_ | ||
19 | 18 | ||
20 | #include "visualizer.h" | 19 | #include "visualizer.h" |
21 | 20 | ||
@@ -34,5 +33,3 @@ bool lcd_keyframe_draw_logo(keyframe_animation_t* animation, visualizer_state_t* | |||
34 | 33 | ||
35 | bool lcd_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state); | 34 | bool lcd_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state); |
36 | bool lcd_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); | 35 | bool lcd_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); |
37 | |||
38 | #endif /* QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_ */ | ||
diff --git a/quantum/visualizer/led_backlight_keyframes.h b/quantum/visualizer/led_backlight_keyframes.h index 648f92b91..90153be5e 100644 --- a/quantum/visualizer/led_backlight_keyframes.h +++ b/quantum/visualizer/led_backlight_keyframes.h | |||
@@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
22 | SOFTWARE. | 22 | SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef LED_BACKLIGHT_KEYFRAMES_H | 25 | #pragma once |
26 | #define LED_BACKLIGHT_KEYFRAMES_H | ||
27 | 26 | ||
28 | #include "visualizer.h" | 27 | #include "visualizer.h" |
29 | 28 | ||
@@ -39,5 +38,3 @@ bool led_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_ | |||
39 | bool led_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); | 38 | bool led_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); |
40 | 39 | ||
41 | extern keyframe_animation_t led_test_animation; | 40 | extern keyframe_animation_t led_test_animation; |
42 | |||
43 | #endif /* LED_KEYFRAMES_H */ | ||
diff --git a/quantum/visualizer/resources/resources.h b/quantum/visualizer/resources/resources.h index 74fd8d2f6..5178fbe55 100644 --- a/quantum/visualizer/resources/resources.h +++ b/quantum/visualizer/resources/resources.h | |||
@@ -14,13 +14,10 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_ | 17 | #pragma once |
18 | #define QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_ | ||
19 | 18 | ||
20 | #include <stdint.h> | 19 | #include <stdint.h> |
21 | 20 | ||
22 | #ifdef LCD_ENABLE | 21 | #ifdef LCD_ENABLE |
23 | extern const uint8_t resource_lcd_logo[]; | 22 | extern const uint8_t resource_lcd_logo[]; |
24 | #endif | 23 | #endif |
25 | |||
26 | #endif /* QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_ */ | ||
diff --git a/quantum/visualizer/visualizer.h b/quantum/visualizer/visualizer.h index 488d130de..627c80a30 100644 --- a/quantum/visualizer/visualizer.h +++ b/quantum/visualizer/visualizer.h | |||
@@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
22 | SOFTWARE. | 22 | SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef VISUALIZER_H | 25 | #pragma once |
26 | #define VISUALIZER_H | 26 | |
27 | #include <stdlib.h> | 27 | #include <stdlib.h> |
28 | #include <stdint.h> | 28 | #include <stdint.h> |
29 | #include <stdbool.h> | 29 | #include <stdbool.h> |
@@ -152,5 +152,3 @@ void user_visualizer_suspend(visualizer_state_t* state); | |||
152 | void initialize_user_visualizer(visualizer_state_t* state); | 152 | void initialize_user_visualizer(visualizer_state_t* state); |
153 | // Called when the computer resumes from a suspend | 153 | // Called when the computer resumes from a suspend |
154 | void user_visualizer_resume(visualizer_state_t* state); | 154 | void user_visualizer_resume(visualizer_state_t* state); |
155 | |||
156 | #endif /* VISUALIZER_H */ | ||
diff --git a/quantum/visualizer/visualizer_keyframes.h b/quantum/visualizer/visualizer_keyframes.h index 9ef7653c5..c92ff1611 100644 --- a/quantum/visualizer/visualizer_keyframes.h +++ b/quantum/visualizer/visualizer_keyframes.h | |||
@@ -14,13 +14,10 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_ | 17 | #pragma once |
18 | #define QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_ | ||
19 | 18 | ||
20 | #include "visualizer.h" | 19 | #include "visualizer.h" |
21 | 20 | ||
22 | // Some predefined keyframe functions that can be used by the user code | 21 | // Some predefined keyframe functions that can be used by the user code |
23 | // Does nothing, useful for adding delays | 22 | // Does nothing, useful for adding delays |
24 | bool keyframe_no_operation(keyframe_animation_t* animation, visualizer_state_t* state); | 23 | bool keyframe_no_operation(keyframe_animation_t* animation, visualizer_state_t* state); |
25 | |||
26 | #endif /* QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_ */ | ||