Fixed LCR and Xylos transmitters

This commit is contained in:
furrtek
2016-05-09 20:42:20 +02:00
parent d55a420dfd
commit d40016ffda
39 changed files with 1614 additions and 151 deletions

View File

@@ -30,12 +30,18 @@ using Coord = int16_t;
using Dim = int16_t;
struct Color {
uint16_t v;
uint16_t v; // rrrrrGGGGGGbbbbb
constexpr Color(
) : v { 0 }
{
}
constexpr Color(
uint16_t v
) : v { v }
{
}
constexpr Color(
uint8_t r,
@@ -49,6 +55,10 @@ struct Color {
)}
{
}
Color operator-() const {
return (v ^ 0xffff);
}
static constexpr Color black() {
return { 0, 0, 0 };
@@ -75,7 +85,7 @@ struct Color {
}
static constexpr Color cyan() {
return { 0, 128, 255 };
return { 0, 255, 255 };
}
static constexpr Color white() {