42#include "driver/gpio.h"
44#include "freertos/FreeRTOS.h"
45#include "freertos/queue.h"
56#define VGA2_LinesCount 4
102 void readScreen(
Rect const & rect,
RGB888 * destBuf);
120 void setupDefaultPalette();
126 void setPixelAt(PixelDesc
const & pixelDesc,
Rect & updateRect);
129 void drawEllipse(
Size const & size,
Rect & updateRect);
132 void clear(
Rect & updateRect);
135 void VScroll(
int scroll,
Rect & updateRect);
138 void HScroll(
int scroll,
Rect & updateRect);
144 void invertRect(
Rect const & rect,
Rect & updateRect);
147 void copyRect(
Rect const & source,
Rect & updateRect);
150 void swapFGBG(
Rect const & rect,
Rect & updateRect);
153 void rawDrawBitmap_Native(
int destX,
int destY,
Bitmap const * bitmap,
int X1,
int Y1,
int XCount,
int YCount);
156 void rawDrawBitmap_Mask(
int destX,
int destY,
Bitmap const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
159 void rawDrawBitmap_RGBA2222(
int destX,
int destY,
Bitmap const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
162 void rawDrawBitmap_RGBA8888(
int destX,
int destY,
Bitmap const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
165 void rawFillRow(
int y,
int x1,
int x2,
RGB888 color);
166 void rawFillRow(
int y,
int x1,
int x2, uint8_t colorIndex);
168 void rawInvertRow(
int y,
int x1,
int x2);
170 void rawCopyRow(
int x1,
int x2,
int srcY,
int dstY);
172 void swapRows(
int yA,
int yB,
int x1,
int x2);
178 int getBitmapSavePixelSize() {
return 1; }
180 static void ISRHandler(
void * arg);
184 static VGA2Controller * s_instance;
186 volatile uint64_t * m_packedPaletteIndexOctet_to_signals;
void setPaletteItem(int index, RGB888 const &color)
Determines color of specified palette item.
static VGA2Controller * instance()
Returns the singleton instance of VGA2Controller class.
Represents the VGA 2 colors bitmapped controller.
Represents the base class for paletted bitmapped controllers like VGA16Controller,...
This file contains fabgl::BitmappedDisplayController definition.
This file contains FabGL library configuration settings, like number of supported colors,...
This file contains some utility classes and functions.
Represents a glyph position, size and binary data.
Represents a 24 bit RGB color.
Represents a bidimensional size.
This file contains fabgl::GPIOStream definition.
Specifies various glyph painting options.
This file contains fabgl::VGAPalettedController definition.