Chip-dat/74xx-dat/74HC595-dat/py-595-demo-2.py
... ...
@@ -18,6 +18,7 @@ def main():
18 18
gpio.setmode(gpio.BOARD)
19 19
# shifter = Shifter()
20 20
sh1 = pi74HC595(23, 22, 21, 2)
21
+
21 22
sh2 = pi74HC595(19, 18, 16, 2)
22 23
23 24
running = True
... ...
@@ -32,11 +33,15 @@ def main():
32 33
33 34
sh1.clear()
34 35
sh2.clear()
36
+ sleep(pause)
35 37
36 38
except KeyboardInterrupt:
37 39
running = False
38 40
39 41
gpio.cleanup() # Clean up GPIO pins on exit
40 42
43
+
44
+
45
+
41 46
if __name__ == "__main__":
42 47
main()
Tech-dat/SBC-dat/RPI-dat/RPI-setup-dat/RPI-setup-dat.md
... ...
@@ -1,6 +1,15 @@
1 1
2 2
# RPI-setup-dat
3 3
4
+
5
+## version check
6
+
7
+- "uname -m": is a Linux command that displays the machine architecture.
8
+- "armv7l": indicates a 32-bit ARM architecture, which is used in older Raspberry Pi models.
9
+- "aarch64": indicates a 64-bit ARM architecture, which is used in newer Raspberry Pi models like the Raspberry Pi 4.
10
+
11
+
12
+
4 13
## download OS image
5 14
6 15
- https://www.raspberrypi.com/software/
code-dat/RPI-python-dat/RPI-python-dat.md
... ...
@@ -21,7 +21,7 @@ apt-get install pip
21 21
- [[pigpio-dat]]
22 22
- pi74HC595
23 23
24
-- wiringpi
24
+- [[wiringpi-dat]]
25 25
- pip3 install woolseyworkshop-circuitpython-74hc165
26 26
27 27
circuitpython
code-dat/apt-get-dat/apt-get-dat.md
... ...
@@ -0,0 +1,6 @@
1
+
2
+# apt-get-dat.md
3
+
4
+purge
5
+
6
+ apt-get remove --purge wiringpi:armhf
... ...
\ No newline at end of file
code-dat/rpi-c-dat/rpi-c-dat.md
... ...
@@ -8,16 +8,28 @@
8 8
./2_5449615149826598388: error while loading shared libraries: libwiringPi.so: cannot open shared object file: No such file or directory
9 9
10 10
11
-## WiringPi
11
+## library
12 12
13
-https://github.com/WiringPi/WiringPi
14
-https://github.com/WiringPi/WiringPi
13
+- [[WiringPi-dat]]
14
+
15
+
16
+## compile
17
+
18
+compile
19
+
20
+ g++ rsr.cpp -o rsr2 -lwiringPi
21
+
22
+
23
+## errors
24
+
25
+wrong 32bit version installed:
26
+
27
+ gpio: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
28
+
29
+
30
+## ref
31
+
32
+- [[rpi-dat]]
15 33
16
-Unzip/use the portable prebuilt verison:
17 34
18
- # unzip the archive
19
- tar -xfv wiringpi_3.0.tar.gz
20
- Install the debian package:
21 35
22
- # install a dpkg
23
- sudo apt install ./wiringpi-3.0-1.deb
code-dat/wiringpi-dat/wiringpi-dat.md
... ...
@@ -0,0 +1,31 @@
1
+
2
+# wiringpi-dat
3
+
4
+https://github.com/WiringPi/WiringPi/releases
5
+
6
+## install method 1
7
+
8
+Unzip/use the portable prebuilt verison:
9
+
10
+ # unzip the archive
11
+ tar -xfv wiringpi_3.0.tar.gz
12
+
13
+Install the debian package:
14
+
15
+ # install a dpkg
16
+ sudo apt install ./wiringpi-3.0-1.deb
17
+ sudo apt install ./wiringpi_3.10_armhf.deb
18
+ sudo apt install ./wiringpi_3.10_arm64.deb
19
+## install method 2
20
+
21
+ wget https://project-downloads.drogon.net/wiringpi-latest.deb
22
+ sudo dpkg -i wiringpi-latest.deb
23
+
24
+## install method 3
25
+
26
+ sudo apt-get install wiringpi
27
+
28
+
29
+## ref
30
+
31
+- [[apt-get-dat]]
... ...
\ No newline at end of file
code-dat/wiringpi-dat/wiringpi_3.10_arm64.deb
... ...
Binary files /dev/null and b/code-dat/wiringpi-dat/wiringpi_3.10_arm64.deb differ
code-dat/wiringpi-dat/wiringpi_3.10_armhf.deb
... ...
Binary files /dev/null and b/code-dat/wiringpi-dat/wiringpi_3.10_armhf.deb differ