42#include "driver/gpio.h"
44#include "freertos/FreeRTOS.h"
45#include "freertos/queue.h"
55#define VGA8_LinesCount 4
101 void readScreen(
Rect const & rect,
RGB888 * destBuf);
116 void directSetPixel(
int x,
int y,
int value);
121 void setupDefaultPalette();
127 void setPixelAt(PixelDesc
const & pixelDesc,
Rect & updateRect);
130 void drawEllipse(
Size const & size,
Rect & updateRect);
133 void clear(
Rect & updateRect);
136 void VScroll(
int scroll,
Rect & updateRect);
139 void HScroll(
int scroll,
Rect & updateRect);
145 void invertRect(
Rect const & rect,
Rect & updateRect);
148 void copyRect(
Rect const & source,
Rect & updateRect);
151 void swapFGBG(
Rect const & rect,
Rect & updateRect);
154 void rawDrawBitmap_Native(
int destX,
int destY,
Bitmap const * bitmap,
int X1,
int Y1,
int XCount,
int YCount);
157 void rawDrawBitmap_Mask(
int destX,
int destY,
Bitmap const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
160 void rawDrawBitmap_RGBA2222(
int destX,
int destY,
Bitmap const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
163 void rawDrawBitmap_RGBA8888(
int destX,
int destY,
Bitmap const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
166 void rawFillRow(
int y,
int x1,
int x2,
RGB888 color);
167 void rawFillRow(
int y,
int x1,
int x2, uint8_t colorIndex);
169 void rawInvertRow(
int y,
int x1,
int x2);
171 void rawCopyRow(
int x1,
int x2,
int srcY,
int dstY);
173 void swapRows(
int yA,
int yB,
int x1,
int x2);
179 int getBitmapSavePixelSize() {
return 1; }
181 static void ISRHandler(
void * arg);
184 static VGA8Controller * s_instance;
186 volatile uint16_t * m_packedPaletteIndexPair_to_signals;
void setPaletteItem(int index, RGB888 const &color)
Determines color of specified palette item.
static VGA8Controller * instance()
Returns the singleton instance of VGA8Controller class.
Represents the VGA 8 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.