mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-15 01:57:50 +00:00
Fixed LCR and Xylos transmitters
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user