
According to this image toggling a GPIO takes 0.12ms - horribly much compared to any other platform. Why?
Explore... Chat... Share...

local mode, write, OUTPUT = gpio.mode, gpio.write, gpio.OUPUT
mode(7,OUTPUT)
for i=1 to 100000 do
write(7,1)
write(7,0)
end
SENT: local mode, write, OUTPUT = gpio.mode, gpio.write, gpio.OUPUT
SENT: mode(7,OUTPUT)
SENT: for i=1 to 100000 do
SENT: write(7,1)
SENT: write(7,0)
SENT: end
local mode, write, OUTPUT = gpio.mode, gpio.write, gpio.OUPUT
> mode(7,OUTPUT)
stdin:1: attempt to call global 'mode' (a nil value)
> for i=1 to 100000 do
stdin:1: ',' expected near 'to'
> write(7,1)
stdin:1: attempt to call global 'write' (a nil value)
> write(7,0)
stdin:1: attempt to call global 'write' (a nil value)
> end
stdin:1: '<eof>' expected near 'end'
> local mode, write, OUTPUT = gpio.mode, gpio.write, gpio.OUTPUT
mode(7,OUTPUT)
for i=1,100000 do
write(7,1)
write(7,0)
endIt takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]