Added docs about movement sensor
parent
ad936a68c6
commit
01ada69bdc
28
README.org
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…
Reference in New Issue