Initial commit
This commit is contained in:
21
lib/Board/Color.h
Normal file
21
lib/Board/Color.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* @file Color.h
|
||||
* @brief This file contains the color struct
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
|
||||
// store a color
|
||||
struct Color{
|
||||
// create a constructor for this struct
|
||||
Color(uint8_t red, uint8_t green, uint8_t blue) :
|
||||
red(red),
|
||||
green(green),
|
||||
blue(blue)
|
||||
{}
|
||||
Color() = default;
|
||||
uint8_t red{0};
|
||||
uint8_t green{0};
|
||||
uint8_t blue{0};
|
||||
};
|
||||
Reference in New Issue
Block a user