规范格式问题

This commit is contained in:
2023-11-25 17:03:23 +08:00
parent ab84321fd6
commit cc3cbc04d9
4 changed files with 7 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
#ifndef _MISC_UTILS_H
#define _MISC_UTILS_H
#ifndef MISC_UTILS_H
#define MISC_UTILS_H
#include <stdint.h>
#include <stddef.h>
@@ -15,4 +15,4 @@
* 直到到达中心点,完成反转过程。
*/
void reverse_buf(uint32_t *start, size_t count);
#endif // _MISC_UTILS_H
#endif // MISC_UTILS_H

View File

@@ -1,5 +1,5 @@
#ifndef _RGB_DRIVER_H
#define _RGB_DRIVER_H
#ifndef RGB_DRIVER_H
#define RGB_DRIVER_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);
#endif // _RGB_DRIVER_H
#endif // RGB_DRIVER_H

View File

@@ -39,5 +39,4 @@ void write_to_inactive_cache(int address, int16_t data);
* current_hue作为当前色调值用于生成下一个颜色。
*/
void visualize_loudness_driver();
#endif // CACHE_OPERATIONS_H
// TODO: Refact this shit
#endif // CACHE_OPERATIONS_H

View File

@@ -89,7 +89,6 @@ uint32_t HSV_to_RGB(uint32_t *hue, uint32_t *sat, uint32_t *value)
return (g << 16) | (r << 8) | b;
}
// 逐步遍历RGB颜色空间实现呼吸灯效果
uint32_t cycleRGB(uint32_t color, GradientDirection *direction)
{