Fixed set_pen()

pull/467/head
jon 2022-07-26 05:10:07 +01:00
rodzic 2f5e3235e6
commit 4a4c723c89
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -9,10 +9,10 @@ namespace pimoroni {
}
}
void PicoGraphics_PenRGB888::set_pen(uint c) {
color = {c, c, c};
color = RGB(c, c, c).to_rgb888();
}
void PicoGraphics_PenRGB888::set_pen(uint8_t r, uint8_t g, uint8_t b) {
color = {r, g, b};
color = RGB(r, g, b).to_rgb888();
}
int PicoGraphics_PenRGB888::create_pen(uint8_t r, uint8_t g, uint8_t b) {
return RGB(r, g, b).to_rgb888();