Pay attention to the special properties of GPIO0 and GPIO2 of the ESP-01.
http://www.forward.com.au/pfod/ESP8266/GPIOpins/ESP8266_01_pin_magic.html
If you don't, the ESP-01 will not boot properly and you also will not be able to program it.
It is easier to just buy a ESP8266 module with more pins.