From ce37223e98624e3a1ae52af455dddad86d444ebe Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Wed, 18 Dec 2019 12:43:13 -0500 Subject: fixes in microwire --- microwire.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'microwire.lua') 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() -- cgit v1.2.3