Refactored serial arduino devices. Created custom structs for sending data to arduino devices.
This commit is contained in:
Executable
+25
@@ -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
|
||||
Reference in New Issue
Block a user