Noob wiring/software help for esp8266

What code is running on the esp8266 which makes pin4 HIGH with output voltage on it?