• Stars
    star
    1,430
  • Rank 32,906 (Top 0.7 %)
  • Language
    C++
  • License
    Other
  • Created almost 6 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ESP32 Display Controller (VGA, PAL/NTSC Color Composite, SSD1306, ST7789, ILI9341), PS/2 Mouse and Keyboard Controller, Graphics Library, Sound Engine, Game Engine and ANSI/VT Terminal

FabGL

ESP32 Display Controller (VGA, Color NTSC/PAL Composite, I2C and SPI displays), PS/2 Mouse and Keyboard Controller, Graphics Library, Sound Engine, Graphical User Interface (GUI), Game/Emulation Engine and ANSI/VT Terminal

Please look here for full API documentation

See also my youtube channel where you can find demos and tutorials

You can support development by purchasing my own development board and Serial Terminal. You may also support me donating hardware (boards, lab instruments, etc...).

=================================================================================

License terms:

Created by Fabrizio Di Vittorio ([email protected]) - http://www.fabgl.com

Copyright (c) 2019-2022 Fabrizio Di Vittorio.

All rights reserved.

This library and related software is available under GPL v3.

Please contact [email protected] if you need a commercial license.

Please don't remove copyright and/or original author from FabGL examples (ie from screens, dialogs, etc..), even from derived works which use examples as base.

=================================================================================

FabGL is mainly a Graphics Library for ESP32. It implements several display drivers (VGA output, PAL/NTSC Color Composite, I2C and SPI displays). FabGL can also get input from a PS/2 Keyboard and a Mouse. FabGL implements also: an Audio Engine (DAC and Sigma-Delta), a Graphical User Interface (GUI), a Game Engine and an ANSI/VT Terminal.

This library works with ESP32 revision 1 or upper. See Compatible Boards.

VGA output requires a external digital to analog converter (DAC): it can be done by three 270 Ohm resistors to have 8 colors, or by 6 resistors to have 64 colors. Composite output doesn't require external components (maybe a 5Mhz low pass filter).

There are several fixed and variable width fonts embedded.

Unlimited number of sprites are supported. However big sprites and a large amount of them reduces the frame rate and could generate flickering.

When there is enough memory (on low resolutions like 320x200), it is possible to allocate two screen buffers, so to implement double buffering. In this case primitives are always drawn on the back buffer.

Except for double buffering or when explicitly disabled, all drawings are performed on vertical retracing, so no flickering is visible. If the queue of primitives to draw is not processed before the vertical retracing ends, then it is interrupted and continued at next retracing.

There is a graphical user interface (GUI) with overlapping windows and mouse handling and a lot of widgets (buttons, editboxes, checkboxes, comboboxes, listboxes, etc..).

Finally, there is a sound engine, with multiple channels mixed to a mono output. Each channel can generate sine waveforms, square, etc... or custom sampled data.

Installation Tutorial - fabgl development board (click for video):

Everything Is AWESOME

Installation Tutorial - TTGO VGA32 (click for video):

Everything Is AWESOME

IBM PC Emulator (click for video):

Everything Is AWESOME

Space Invaders Example (click for video):

Everything Is AWESOME

Dev board connected to TFT ILI9341 240x320, TFT ST7789 240x240 and OLED SSD1306 128x64 (click for video):

Everything Is AWESOME

Serial Terminal escape sequences for graphics and sound (click for video):

Everything Is AWESOME

Serial Terminal for MBC2 Z80 Board (click for video):

Everything Is AWESOME

Graphical User Interface - GUI (click for video):

Everything Is AWESOME

Sound Engine (click for video):

Everything Is AWESOME

Altair 8800 emulator - CP/M text games (click for video):

Everything Is AWESOME

Commodore VIC20 emulator (click for video):

Everything Is AWESOME

Simple Terminal Out Example (click for video):

Everything Is AWESOME

Network Terminal Example (click for video):

Everything Is AWESOME

Modeline Studio Example (click for video):

Everything Is AWESOME

Loopback Terminal Example (click for video):

Everything Is AWESOME

Double Buffering Example (click for video):

Everything Is AWESOME

Collision Detection Example (click for video):

Everything Is AWESOME

Multitasking CP/M Plus Example (click for video):

Everything Is AWESOME

More Repositories

1

ESPWebFramework

Web framework for ESP8266
C++
144
star
2

sbus

Arduino library for SBUS (Futaba)
C++
61
star
3

MSP

Arduino MSP (MultiWii Serial Protocol) library
C++
48
star
4

avr_fdvlib

C++ Library for Atmel Atmega168/328/1280/2560. Supports general purpose algorithms, compression/decompression algorithms, datetime, ADC, interrupts, time scheduler, memory handlers, strings, vectors, Circular Buffers, Array, EEprom array, random numbers, onewire, FTP Server, W5100 controller, HTTP Server, HTTP Server with scripting, UDP Client, NTP Client, MAC/ARP/ICMP/IP/UDP stack, UART, SPI, TwoWire, AXE033, DS1307, DS18B20, DS2406, MQ7, MRF24J40, ENC28J60, SD Card, ESP8266, SIM900, softserial
C++
15
star
5

Amiga600GALFirmware

Amiga 600 with Gayle 1: VHDL implementation of PAL16L8B (XU1) with Lattice GAL16V8
VHDL
11
star
6

SAY

Bondwell 12/14, reverse engineering and improvements of SPEECH.COM
Assembly
9
star
7

FabZ80

Just another Z80 CP/M computer
C++
8
star
8

Roland-Fantom-0-Sound-Library

My sound library for the Roland Fantom-0
8
star
9

TatungEinsteinDiagnosticFirmware

Diagnostic ROM for the Tatung Einstein TC-01
Assembly
7
star
10

joyce-custom

My custom version of Amstrad PCW Joyce emulator
C
6
star
11

CPM3DateTimeTest

Tests CP/M Plus date time
C
5
star
12

SETKEYS.COM-files

Key definitions (SETKEYS.COM - CP/M Plus) for full screen editors
5
star
13

KorgWavestate-SoundLibrary

Korg Wavestate Sound Library
2
star
14

EXIFPhotoReorder

Reorder photos renaming using EXIF date. It also divides photos in folders using different criteria (extension, year, month, etc...).
2
star
15

FabMetronome

A Bluetooth-BLE MIDI metronome with ESP32
C++
1
star