GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pchmielewski1/esp32-c3fh4-rgb-test-sketch: This repository contains a public test sketch for the ESP32-C3FH4-RGB board with its built-in 5x5 NeoPixel-compatible RGB matrix.

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
THIRD_PARTY_NOTICES.md
THIRD_PARTY_NOTICES.md
 
 
platformio.ini
platformio.ini
 
 

Repository files navigation

ESP32-C3FH4-RGB Test Sketch

This repository contains a public test sketch for the ESP32-C3FH4-RGB board with its built-in 5x5 NeoPixel-compatible RGB matrix. You can clone it, build it with PlatformIO, and flash it directly to a compatible board.

The sketch is designed as a compact demo project: it boots with a short countdown, then rotates through multiple visual effects on the matrix.

Features

  • Arduino-based sketch for the ESP32-C3FH4-RGB
  • PlatformIO project ready for VS Code
  • 5x5 RGB matrix animation engine with scene rotation
  • built-in startup countdown: 3, 2, 1
  • eight included effects with no extra assets required
  • simple orientation handling through a single pixel mapping function

Target Hardware

The current code targets the ESP32-C3FH4-RGB board and is configured as follows:

  • Board: ESP32-C3FH4-RGB
  • MCU: ESP32-C3FH4
  • PlatformIO board profile: esp32-c3-devkitm-1
  • Framework: Arduino
  • LED count: 25
  • Matrix data pin: GPIO 8
  • Status LED pin: GPIO 10
  • Pixel format: GRB, 800 KHz
  • Default brightness: 48
  • Serial monitor speed: 115200

PlatformIO uses the generic esp32-c3-devkitm-1 target here because it is compatible with this sketch setup.

If your board uses different pins, LED order, or matrix orientation, adjust the constants and mapping logic in src/main.cpp.

Included Effects

The active effect order is defined in kAnimations[] in src/main.cpp.

Effect Description
ConfettiBurst Random sparkles and short color bursts across the matrix
TetrisFall Mini falling tetromino simulation on a 5x5 playfield
Matrix Vertical falling drops with colored tails
Heartbeat Pulsing heart rendered from a 5x5 mask
RainbowWave Moving rainbow wave with a brighter band
SpectrumCycle Smooth hue gradient cycling across the display
SnakeCascade Color-changing snake moving through the full matrix path
PlasmaBloom Abstract plasma-style animated color field

Startup Behavior

On boot, the sketch:

  1. initializes the LED matrix and serial interface,
  2. renders a short 3, 2, 1 countdown,
  3. starts the first enabled animation,
  4. automatically rotates through all enabled scenes.

Project Layout

  • platformio.ini PlatformIO environment definition for the ESP32-C3 target.
  • src/main.cpp Complete sketch source, animation engine, LED mapping, and effect implementations.
  • LICENSE License for the original code in this repository.
  • THIRD_PARTY_NOTICES.md Third-party dependency and license references.

Build and Flash

This project is intended for PlatformIO in VS Code.

  1. Install Visual Studio Code.
  2. Install the PlatformIO IDE extension.
  3. Open this repository as a folder in VS Code.
  4. Connect your ESP32-C3 board over USB.
  5. Build the project.
  6. Upload the firmware.
  7. Open the serial monitor at 115200 baud if needed.

The serial port is not hardcoded in platformio.ini, so PlatformIO can auto-detect it. If auto-detection does not work on your machine, set the upload and monitor port locally in your own PlatformIO configuration.

Customization

The most useful constants to tweak are in src/main.cpp:

  • kBrightness
  • kConfettiFrameDelayMs
  • kTetrisFrameDelayMs
  • kMatrixFrameDelayMs
  • kMaxFallingPieces
  • kSpawnChancePercent

To change matrix orientation, update xyToIndex() in src/main.cpp. The current mapping applies a 180-degree rotation relative to the animation logic.

To add a new effect:

  1. add a new entry to AnimationId,
  2. add an item to kAnimations[],
  3. add any required state,
  4. initialize it in initAnimation(),
  5. update it in updateAnimation().

Dependencies

This project relies on the following external software:

  • Adafruit NeoPixel library, resolved by PlatformIO from adafruit/Adafruit NeoPixel @ ^1.12.5
  • Arduino framework for ESP32, installed through the espressif32 PlatformIO platform

See THIRD_PARTY_NOTICES.md for upstream project links and license notes.

License

The original code in this repository is licensed under the MIT License. See LICENSE.

Third-party libraries and frameworks are distributed under their own licenses and are not relicensed by this repository.

Disclaimer

This is a small public test sketch intended for experimentation on compatible ESP32-C3 LED matrix boards. Flash and use it at your own risk, and always confirm the GPIO wiring and power requirements of your specific hardware before uploading.

Attribution

This repository uses the Adafruit NeoPixel library for LED output and the Arduino framework for ESP32 through PlatformIO. Full upstream references are listed in THIRD_PARTY_NOTICES.md.

About

This repository contains a public test sketch for the ESP32-C3FH4-RGB board with its built-in 5x5 NeoPixel-compatible RGB matrix.

Topics

esp32-c3fh4-rgbneomatrix

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.