started Neopixel structs

This commit is contained in:
Ikatono
2023-12-19 01:38:32 -06:00
parent 2185c25f12
commit 805925c92d
7 changed files with 200 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
#include "NeoPacket.h"
namespace NeoPacket
{
GreenPixel& GreenPixel::operator=(GreenPixel& other)
{
this->value = other.value;
return *this;
}
GreenPixel& GreenPixel::operator=(uint8_t val)
{
this->value = val;
return *this;
}
RedPixel& RedPixel::operator=(RedPixel& other)
{
this->value = other.value;
return *this;
}
RedPixel& RedPixel::operator=(uint8_t val)
{
this->value = val;
return *this;
}
BluePixel& BluePixel::operator=(BluePixel& other)
{
this->value = other.value;
return *this;
}
BluePixel& BluePixel::operator=(uint8_t val)
{
this->value = val;
return *this;
}
}