|
FabGL2 2.0.0
ESP32 Display Controller and Graphics Library for ESP-IDF
|
www.FabGL.com - 2019-2026 by Fabrizio Di Vittorio (fdivi.nosp@m.tto2.nosp@m.013@g.nosp@m.mail.nosp@m..com)
FabGL is a graphics library for the ESP32, distributed as an ESP-IDF component (FabGL2 requires ESP-IDF 6.1 or newer).
It provides display drivers for VGA output and for PAL/NTSC color composite video.
It also handles PS/2 keyboards and mice: communication on the PS/2 ports is performed by the ULP coprocessor, leaving both main CPU cores free for the application.
In addition, FabGL includes an audio engine, a Graphical User Interface (GUI), a game engine, an ANSI/VT terminal and emulators of several CPUs and peripherals.
The library supports ESP32 revision 1 and later.
VGA output requires a simple digital-to-analog converter (DAC): three 270 Ohm resistors provide 8 colors, while six resistors provide 64 colors.
Several fixed and variable width fonts are embedded.
The number of sprites is unlimited. However, large sprites or a large number of them reduce the frame rate and may cause flickering.
When enough memory is available (for example at low resolutions such as 320x200), two screen buffers can be allocated to implement double buffering.
In this case drawing primitives always operate on the back buffer.
Unless double buffering is used or this behavior is explicitly disabled, all drawing operations are performed during the vertical retrace, so no flickering is visible.
If the queue of drawing primitives is not completely processed before the vertical retrace ends, processing is suspended and resumed at the next vertical retrace.
The graphical user interface (GUI) supports overlapping windows, mouse handling and many widgets (buttons, edit boxes, checkboxes, combo boxes, list boxes, etc.).
Finally, the sound engine mixes multiple channels into a mono output. Each channel can generate sine, square and other waveforms, or play custom sampled data.
Like VGA output, audio output is generated using DMA: the CPU only mixes the channels and prepares the waveforms.
New to FabGL? Start from the User Guide: it explains how the library is organized and shows how to use each subsystem, from the first program to GUI applications. The "Topics" section groups the classes by subsystem.
Main classes of the FabGL library:
Device emulation classes:
Other classes:
See VGA output schema for a sample VGA connection circuit.
See PS/2 ports schema for sample PS/2 connection circuits.
See Configuring the audio port for a sample audio connection circuit.
Created by Fabrizio Di Vittorio (fdivi.nosp@m.tto2.nosp@m.013@g.nosp@m.mail.nosp@m..com) - http://www.fabgl.com Copyright (c) 2019-2026 Fabrizio Di Vittorio. All rights reserved.
FabGL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
FabGL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with FabGL. If not, see http://www.gnu.org/licenses/.