11 lines
85 B
Bash
Executable File
11 lines
85 B
Bash
Executable File
#!/bin/bash
|
|
|
|
PIN_PIR=3
|
|
|
|
# init
|
|
gpio mode $PIN_PIR input
|
|
|
|
# read
|
|
gpio read $PIN_PIR
|
|
|