This is what PedalBrainz are all about.
The Pedal Brainz | Left Brain is a light-controlled expression modulator that interfaces with hardware audio effects offering dynamic expression control. Controllable patterns of light result in the "virtual turning of knobs" when used in-conjunction with the available properties of a compatible effect pedal.
A programmable Adafruit Arduino (SAMD) is the thalamus at the center of a huge ever growing pulsating Brainz controlling the LEDs. Software can be updated and modified via USB in-order to load new patterns or to write your own using widely available LED flashing tutorials and resources.
The Pedal Brainz | Left Brain hardware platform includes three potentiometers that are used to control properties of the flashing patterns across Pins A0, A1, A2.
The main software can be found in the /LeftBrain/ directory: "PedalBrainz_LeftBrain_Software"
Additional Software Modez, Teamplates, and Examples are also available.
Documentation for updating the software can be found here: https://github.com/lostchocolatelab/PedalBrainz/blob/main/PedalBrainz_v2_QTPY_LeftBrain_Update_Instructions_Windows.pdf https://github.com/lostchocolatelab/PedalBrainz/blob/main/PedalBrainz_v2_QTPY_LeftBrain_Update_Instructions_Mac.pdf