started Neopixel structs
This commit is contained in:
42
hello_world/usb/wrappers/NeoPacket.cpp
Normal file
42
hello_world/usb/wrappers/NeoPacket.cpp
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user