I need to know what is the ESP01 pure performance if one GPIO is low and high in loop.
With LUA language I measured approx. 6.6Khz only with this method:
node.setcpufreq(node.CPU160MHZ)
gpio.mode(4, gpio.OUTPUT)
tmr.wdclr()
for count = 1,102400 do
gpio.write(4,1)
gpio.write(4,0)
endAs you see CPU speed set to 160MHz but the result is very disappointing.
If I use micropython would the performance increased?
Or any suggestion?
I would make a square wave frequency doubler with ESP8266.
See details of the investigation on my blog:
http://esp8266freq.blogspot.hu/p/blog-page.html