driver rename
This commit is contained in:
parent
7a1efabe49
commit
281a00ddc0
35 changed files with 0 additions and 0 deletions
22
control/src/drv/dot.cpp
Normal file
22
control/src/drv/dot.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include "dot.h"
|
||||
|
||||
Dot::Dot(uint16_t x, uint16_t y, uint8_t curve) : x(x), y(y), curve(curve)
|
||||
{
|
||||
if(curve >= 64)
|
||||
throw std::range_error("Kurvenindex muss im Bereich [0, 63] liegen");
|
||||
}
|
||||
|
||||
uint16_t Dot::getX() const
|
||||
{
|
||||
return x;
|
||||
}
|
||||
|
||||
uint16_t Dot::getY() const
|
||||
{
|
||||
return y;
|
||||
}
|
||||
|
||||
uint8_t Dot::getCurve(void) const
|
||||
{
|
||||
return curve;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue