e2
This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -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": [
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
#ifndef COLOR_UTILS_H
|
||||
#define COLOR_UTILS_H
|
||||
|
||||
#include <math.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct Color {
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#include "color_utils.h"
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
Color hex_to_color(int hex) {
|
||||
|
||||
Reference in New Issue
Block a user