This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#gpio 20,21 pullup mode set. | |
`gpio -g mode 20 up` | |
`gpio -g mode 21 up` | |
#LCD initialize | |
`i2cset -y 1 0x3c 0 1 2 0xf 1 i` | |
#check people count file | |
if [ -e /home/pi/count.txt ];then | |
count_people=`cat /home/pi/count.txt|tail -1` | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#gpio 20,21 pullup mode set. | |
`gpio -g mode 20 up` | |
`gpio -g mode 21 down` | |
`gpio -g mode 26 down` | |
`gpio -g mode 16 down` | |
`gpio -g mode 19 out` | |
`gpio -g write 19 1` | |
countA=0 | |
countB=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(module Pin_Arrays:pin_array_2x05 (layer F.Cu) (tedit 55D82C17) | |
(descr "Double rangee de contacts 2 x 5 pins") | |
(tags CONN) | |
(fp_text reference P1 (at 0.635 -3.81) (layer F.SilkS) | |
(effects (font (size 1 1) (thickness 0.15))) | |
) | |
(fp_text value CONN_01X10 (at 0 -3.81) (layer F.SilkS) hide | |
(effects (font (size 1 1) (thickness 0.15))) | |
) | |
(fp_line (start -6.35 -2.54) (end 6.35 -2.54) (layer F.SilkS) (width 0.15)) |