summaryrefslogtreecommitdiff
path: root/microwire.lua
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2019-12-18 12:43:13 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2019-12-18 12:43:13 -0500
commitce37223e98624e3a1ae52af455dddad86d444ebe (patch)
tree9c23e2523254166c3fcc47c881434f5816184110 /microwire.lua
parent93329d7a663117d31f8d983b67b101b858008638 (diff)
downloadnodeMCU_rf_source_lmx2487-ce37223e98624e3a1ae52af455dddad86d444ebe.tar.gz
nodeMCU_rf_source_lmx2487-ce37223e98624e3a1ae52af455dddad86d444ebe.zip
fixes in microwire
Diffstat (limited to 'microwire.lua')
-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()