espbasic is created by Michael Molinari site: http://www.esp8266basic.com/ and youtube: https://www.youtube.com/user/SMB1Soft
esp 2.0 basic language reference https://docs.google.com/document/d/1NMZvnnjZ5XNzkykINgYS_Ql6mQ3nJEAzYudbmScdiIg/pub
Button "open" [setthepin]
Button "close" [resetthepin]
Wait
[setthepin]
Po 0 1
Wait
[resetthepin]
Po 0 0
Wait
For compile i used Arduino 1.8.10 with aditional board manager : http://arduino.esp8266.com/stable/package_esp8266com_index.json
copied from https://sites.google.com/site/esp12wifi/edit-esp-basic where also is https://github.com/costycnc/espbasic_modified/raw/master/flash_download_tools_v3.6.7.zip tools uploader
also you can download https://github.com/esp8266/Basic/raw/NewWebSockets/Flasher/ESP_Basic_Flasher.exe run it and change Build\1M\ESP8266Basic.cpp.bin with ESP8266Basic.cpp.bin from here
In this project is copied only first variant of espbasic in one file ... because ultimate espbasic give me some errors ... also this variant in one file is easy to understand
My site is www.costycnc.it and facebook group https://www.facebook.com/groups/2260525320891608