diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2019-12-17 13:01:41 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2019-12-17 13:01:41 -0500 |
commit | 3c4207c4aa55644c35600d7bdc2fcbba2b757824 (patch) | |
tree | 1f3e14d952bdb8c7bd51c7b2cfee46520bbcd820 /microwire.lua | |
download | nodeMCU_rf_source_lmx2487-3c4207c4aa55644c35600d7bdc2fcbba2b757824.tar.gz nodeMCU_rf_source_lmx2487-3c4207c4aa55644c35600d7bdc2fcbba2b757824.zip |
init
Diffstat (limited to 'microwire.lua')
-rw-r--r-- | microwire.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/microwire.lua b/microwire.lua new file mode 100644 index 0000000..e177731 --- /dev/null +++ b/microwire.lua @@ -0,0 +1,14 @@ +-- functions to write registers over microwire interface +-- it resembles SPI but need exrta pin which sends Load Enable (LE) pulse +-- otherwise SPI sequence is sent into 24 bit FIFO buffer + +function setup_interface () + -- Pins assignment + local sda = TBA; -- microwire DATA pin + local scl = TBA; -- microwire Clock (CLK) pin + local sle = TBA; -- microwire Load Enable pin +end + +function microwire_write_data( data ) +end + |