Refactored serial arduino devices. Created custom structs for sending data to arduino devices.

This commit is contained in:
Paul Dino Jones
2024-03-05 04:51:49 +00:00
parent 150c53c14b
commit f1ad4f5f91
9 changed files with 138 additions and 15 deletions
+25
View File
@@ -0,0 +1,25 @@
#ifndef _SHIFTLIGHTSDATA_H
#define _SHIFTLIGHTSDATA_H
#include <stdint.h>
#include <stdbool.h>
typedef struct
{
char color_1_red;
char color_1_green;
char color_1_blue;
char color_2_red;
char color_2_green;
char color_2_blue;
char color_3_red;
char color_3_green;
char color_3_blue;
uint32_t maxrpm;
uint32_t rpm;
uint32_t pulses;
}
ShiftLightsData;
#endif