summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--microwire.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/microwire.lua b/microwire.lua
index c6d97e8..cc98a68 100644
--- a/microwire.lua
+++ b/microwire.lua
@@ -50,9 +50,9 @@ function microwire_send_data( data )
-- finally raise LE pin for at least 25 ns,
-- note that it takes about 300 uS on ESP8266 before LE will be HIGH after spi.send
- gpio.write(microwire_LE_pin, gpio.HIGH)
- -- we immediately drop LE pin to low, Scope shows that the pin will be on for 80 uS
- gpio.write(microwire_LE_pin, gpio.LOW)
+ -- Note manual toggle like below is quite slow, the shortest duration is 160 uS
+ gpio.write(microwire_LE_pin, gpio.HIGH)
+ gpio.write(microwire_LE_pin, gpio.LOW)
end
microwire_setup_interface()