Live GPIO View
Stumbled across this project - it's pretty cool - a live view of the GPIO pins o the ESP32!
I stumbled across this very cool project the other day from The Last Outpost Workshop (do checkout his YouTube channel - it’s got some good content!).
It’s a really simple way to view the live state of the GPIO pins on an ESP32 module.
Setup is really simple (the GitHub repo has detailed instructions). It’s simply a case of including the header file - an important note is that this does have to come before any other headers files.
#include <gpio_viewer.h>
#include <Arduino.h>
GPIOViewer gpio_viewer;
void setup() {
Serial.begin(115200);
gpio_viewer.connectToWifi("SSID", "PASSWORD");
gpio_viewer.begin();
}
When the ESP32 starts up it will connect to WiFi and then print out a URL on the serial monitor. Just go to that URL in your browser and you’ll see the live state of the GPIO pins. Pretty cool!
There are of course some limitation. At present it can only do digital or PWM and can’t do any complex protocols. But, definitely something to keep an eye on as I’m sure the functionality will improve.