This commit is contained in:
Passthem
2025-04-14 16:24:32 +08:00
parent dc2d2c0c6d
commit 5bd4c9ab10
4 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,8 @@
"app.h": "c",
"time.h": "c",
"math.h": "c",
"color_utils.h": "c"
"color_utils.h": "c",
"stdint.h": "c"
},
"C_Cpp.errorSquiggles": "enabled",
"C_Cpp.default.includePath": [

View File

@ -1,7 +1,6 @@
#ifndef COLOR_UTILS_H
#define COLOR_UTILS_H
#include <math.h>
#include <stdint.h>
typedef struct Color {

View File

@ -1,8 +1,7 @@
#ifndef SPI_UTILS_H
#define SPI_UTILS_H
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
#include <stdint.h>
int init_device(const char* device);
int send_buffer(int fd, uint8_t* buffer, const int data_size);

View File

@ -1,4 +1,5 @@
#include "color_utils.h"
#include <math.h>
#include <string.h>
Color hex_to_color(int hex) {