forked from PAWPAW/lib_rgb
规范格式问题
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#ifndef _MISC_UTILS_H
|
#ifndef MISC_UTILS_H
|
||||||
#define _MISC_UTILS_H
|
#define MISC_UTILS_H
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@
|
|||||||
* 直到到达中心点,完成反转过程。
|
* 直到到达中心点,完成反转过程。
|
||||||
*/
|
*/
|
||||||
void reverse_buf(uint32_t *start, size_t count);
|
void reverse_buf(uint32_t *start, size_t count);
|
||||||
#endif // _MISC_UTILS_H
|
#endif // MISC_UTILS_H
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef _RGB_DRIVER_H
|
#ifndef RGB_DRIVER_H
|
||||||
#define _RGB_DRIVER_H
|
#define RGB_DRIVER_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
@@ -29,4 +29,4 @@ void output_24bit_value_serially(uint32_t value);
|
|||||||
*/
|
*/
|
||||||
void output_rgb_array(uint32_t buf[], uint32_t num_rgbs);
|
void output_rgb_array(uint32_t buf[], uint32_t num_rgbs);
|
||||||
|
|
||||||
#endif // _RGB_DRIVER_H
|
#endif // RGB_DRIVER_H
|
||||||
|
|||||||
@@ -39,5 +39,4 @@ void write_to_inactive_cache(int address, int16_t data);
|
|||||||
* current_hue作为当前色调值,用于生成下一个颜色。
|
* current_hue作为当前色调值,用于生成下一个颜色。
|
||||||
*/
|
*/
|
||||||
void visualize_loudness_driver();
|
void visualize_loudness_driver();
|
||||||
#endif // CACHE_OPERATIONS_H
|
#endif // CACHE_OPERATIONS_H
|
||||||
// TODO: Refact this shit
|
|
||||||
@@ -89,7 +89,6 @@ uint32_t HSV_to_RGB(uint32_t *hue, uint32_t *sat, uint32_t *value)
|
|||||||
return (g << 16) | (r << 8) | b;
|
return (g << 16) | (r << 8) | b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 逐步遍历RGB颜色空间,实现呼吸灯效果
|
// 逐步遍历RGB颜色空间,实现呼吸灯效果
|
||||||
uint32_t cycleRGB(uint32_t color, GradientDirection *direction)
|
uint32_t cycleRGB(uint32_t color, GradientDirection *direction)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user