As @krambriw said, ESP devices are inexpensive and can do a lot of things.
The ESP32-S2 Mini is very inexpensive and has lots of I/O pins, analog as well as PWM.
Oh and yes - it is WiFi enabled. Recently I've been programming my devices using MictoPython.