Skip to content

Releases

FabGL2 2.0.0

Choose a tag to compare

@fdivitto fdivitto released this 30 Nov 20:09

FabGL2 is the successor of FabGL 1.x: the same graphics, audio, GUI and retro-computing library for the ESP32, rewritten as a native ESP-IDF component. It requires ESP-IDF v6.1 or newer and no longer depends on Arduino.

Installation

FabGL2 is published on the ESP Component Registry:

idf.py add-dependency "fdivitto/fabgl^2.0.0"

or start from one of the examples:

idf.py create-project-from-example "fdivitto/fabgl:HardwareTest"

What's new

Platform

  • Pure ESP-IDF component (components/fabgl), current IDF drivers only (no legacy drivers), only components shipped with ESP-IDF.
  • IDF-native replacements for the Arduino classes the library used: fabgl::Preferences (NVS), fabgl::UARTStream, fabgl::TCPClient, fabgl::HTTPRequest (streaming, redirects, resume with HTTP Range, HTTPS with the certificate bundle).
  • Every example is a standalone ESP-IDF project with its own README, sdkconfig.defaults and, where needed, partition table.

Audio

  • PolySynth: 8-voice polyphonic synthesizer with band-limited oscillators, ADSR, a 4-pole resonant ladder low-pass filter with envelope, LFO and arpeggiator.
  • DrumMachine: sample-based drum machine engine with a 32-step sequencer running inside the sound interrupt (swing, songs, pattern queue, live recording with quantization).
  • SoundGenerator::setOversampling(): 16-bit mixing with oversampling and noise shaping, for clean decaying sounds on the 8-bit DAC.

MIDI

  • fabgl::BLEMIDI: MIDI input over Bluetooth LE (NimBLE), used by the Synth example.

GUI

  • New controls: knob, toggle switch, level bar, led bar, stepper, tile selector, graph, piano keyboard, fader, pad, segment display, step grid.
  • uiDarkTheme: a ready-made dark flat theme with selectable accent color.
  • Smoother repaints: optional hold of the drawing while a control repaints, mouse pointer kept visible while drawing.

Emulation

  • Intel 8086 core rewritten from scratch, about 2.2x faster; PC emulator with a new launcher, faster SD card access (Windows 3.0 boots in under a minute instead of about ten), reliable resumable disk image downloads and Hercules graphics on a 50 Hz modeline.
  • VIC-20 emulator with a redesigned configuration screen and HTTPS game downloads.

New examples

  • Synth: polyphonic synthesizer with 64 presets, played from the PS/2 keyboard or a Bluetooth MIDI keyboard.
  • DrumMachine: drum machine in the LinnDrum / LM Drum style with 8 kits, 32 patterns and song mode.
  • GraphicalUserInterface, Audio, FileBrowser, HardwareTest, VIC20 and PCEmulator restyled with the dark theme; screenshots in the READMEs and in the docs.

Breaking changes

  • Arduino IDE, Arduino core and the PlatformIO "arduino" framework are no longer supported: see MIGRATION.md for the API replacements.
  • Removed: SSD1306, ILI9341 and ST7789 display drivers and their examples, VideoMode::I2C / VideoMode::SPI, NativePixelFormat::Mono / RGB565BE.
  • Header names and namespaces are unchanged (#include "fabgl.h", fabgl::...).

Hardware

Classic ESP32 with a VGA output (for example TTGO VGA32 or ESP32-SBC-FabGL), PS/2 keyboard and mouse, optional SD card and PSRAM. Some examples need PSRAM (PCEmulator) or a 4 MB flash partition layout (DrumMachine).

FabGL2 is released under the GPL v3. For a commercial license, please contact fdivitto2013@gmail.com.