GPIO is much more advanced on the ESP32, but this is a starting point. It gets examples/blinky1 to work.