SSD1680: corrected pen type

driver/ssd1680
thirdr 2025-05-01 16:19:37 +01:00 zatwierdzone przez Phil Howard
rodzic c0267e308d
commit 0df95f4217
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -4,7 +4,7 @@ namespace pimoroni {
PicoGraphics_Pen2Bit::PicoGraphics_Pen2Bit(uint16_t width, uint16_t height, void *frame_buffer, uint16_t layers)
: PicoGraphics(width, height, layers, frame_buffer) {
this->pen_type = PEN_3BIT;
this->pen_type = PEN_2BIT;
if(this->frame_buffer == nullptr) {
this->frame_buffer = (void *)(new uint8_t[buffer_size(width, height)]);
}