Added docs about movement sensor

master
Elis Axelsson 5 years ago
parent ad936a68c6
commit 01ada69bdc
  1. 28
      README.org

@ -11,15 +11,31 @@ picocom /dev/ttyUSB0 -b115200
#+END_SRC
* Small card
** Set up distance measuring
** Distance measuring
*** HCSR04 Pins
Trig -- D0
Echo -- D3
Vcc -- 5V
GND -- GND
*** Set up distance measuring
#+begin_src python
import tablecode.main
tablecode.main.distance(16, 0)
#+end_src
** HCSR04 Pins
Trig -- D0
Echo -- D3
Vcc -- 5V
GND -- GND
** Movement sensor
*** Sensor pins
5V -- 5V
GND -- GND
OUT -- D0
*** Set up movement sensor
#+begin_src python
import machine
pin = machine.Pin(0, mode=machine.Pin.IN, pull=None)
print(pin.value())
#+end_src

Loading…
Cancel
Save