Completed the board manager rewrite

This commit is contained in:
2024-08-22 21:07:32 -04:00
parent 48f83eee38
commit 3e4f0124db
17 changed files with 666 additions and 408 deletions

View File

@@ -1,22 +0,0 @@
#include "Cube.h"
Cube::Cube(uint8_t ADCPin, uint8_t ledPin)
: ADCPin(ADCPin),
ledPin(ledPin)
{
Color black(0,0,0);
this->SetColor(black);
}
Cube::Cube(uint8_t ADCPin, uint8_t ledPin, const Color &color)
: ADCPin(ADCPin),
ledPin(ledPin)
{
this->SetColor(color);
}
void Cube::SetColor(const Color &color){
this->color.red = color.red;
this->color.green = color.green;
this->color.blue = color.blue;
}

View File

@@ -5,17 +5,10 @@
#pragma once
#include "Color.h"
#include "Vector3D.h"
class Cube{
public:
Cube();
Cube();
void SetColor(const Color &color);
uint16_t lastADCReading{0};
Color color;
V3D color;
bool isOccupied{false};
};