File tree Expand file tree Collapse file tree 7 files changed +23
-15
lines changed
Expand file tree Collapse file tree 7 files changed +23
-15
lines changed Original file line number Diff line number Diff line change 1616\textbf {C: }
1717
1818\begin {console }
19+ cd ~/Projekte
1920 git clone https://github.com/mstroh76/Sensors-WiringPi.git
2021 cd Sensors-WiringPi/DHT
2122 g++ -o DHT *.cpp -lwiringPi
2728\textbf {C\# : }
2829
2930\begin {console }
31+ cd ~/Projekte
3032 git clone https://github.com/chirndler/wiringpi.net.sensors.git
3133 cd wiringpi.net.sensors
3234 xbuild /p:Configuration=Release wiringpi.net.sensors.sln
3739\textbf {Python: }
3840% Projektverzeichnis?
3941\begin {console }
42+ cd ~/Projekte
4043 git clone https://github.com/jdupl/dhtxx-rpi-python3.git
4144 sudo cp dhtxx-rpi-python3/dhtxx.py /usr/local/lib/python3.5/dist-packages/
4245\end {console }
Original file line number Diff line number Diff line change 2929\textbf {C: }
3030
3131\begin {console }
32+ cd ~/Projekte
3233 git clone https://github.com/mstroh76/Sensors-WiringPi.git
3334 cd Sensors-WiringPi/HC-SR04
3435 g++ -o HC-SR04 *.cpp -lwiringPi
4041\textbf {C\# : }
4142
4243\begin {console }
44+ cd ~/Projekte
4345 git clone https://github.com/chirndler/wiringpi.net.sensors.git
4446 cd wiringpi.net.sensors
4547 xbuild /p:Configuration=Release wiringpi.net.sensors.sln
Original file line number Diff line number Diff line change 3232\title {Raspberry Pi Jam - Raspjamming\\ Installation/Vorbereitung/Microsoft Windows}
3333\author {\textbf {Autoren: }\\
3434 Martin Strohmayer\\
35- Christoph Wörgötter\\
36- Christof Hirndler\\
37- Manfred Wallner\\
3835 Janka Pfragner\\
3936}
4037\date {Version \versionnumber \\ \today \\ PDF Edition}
Original file line number Diff line number Diff line change 2626\textbf {C: }
2727
2828\begin {console }
29+ cd ~/Projekte
2930 git clone https://github.com/mstroh76/TM1637Display
3031 cd TM1637Display
3132 g++ -o TM1637Display *.cpp -lwiringPi
3637\textbf {C\# : }
3738
3839\begin {console }
40+ cd ~/Projekte
3941 git clone https://github.com/chirndler/wiringpi.net.sensors.git
4042 cd wiringpi.net.sensors
4143 xbuild /p:Configuration=Release wiringpi.net.sensors.sln
Original file line number Diff line number Diff line change 6262Folgende Anweisungen sorgen dafür, dass beim ersten Boot die root-Partition auf die maximale Kapazität der SD-Karte vergrößert wird.
6363
6464\begin {console }
65- sudo wget -O /etc/init.d/resize2fs_once https://github.com/RPi-Distro/pi-gen/raw/dev/stage2/01-sys-tweaks/files/resize2fs_once
65+ sudo wget -O /etc/init.d/resize2fs_once \
66+ https://github.com/RPi-Distro/pi-gen/raw/dev/stage2/01-sys-tweaks/files/resize2fs_once
6667 sudo chmod +x /etc/init.d/resize2fs_once
6768 sudo systemctl enable resize2fs_once
6869
7273Am Ende der ersten Zeile in der Datei cmdline.txt muss der Text\\ \textbf {init=/usr/lib/raspi-config/init\_ resize.sh } \\
7374eingefügt werden.
7475
75- Folgende Anweisungen sorgen dafür, dass beim ersten Boot ein neuer eigener SSH-Key erzeugt wird.
76+ Folgende Anweisungen sorgen dafür, dass beim ersten Boot ein neuer SSH-Key erzeugt wird.
7677
7778\begin {console }
7879 sudo touch /boot/ssh
8586% ssh_config
8687% sshd_config
8788
88- % fill with zero
89- % dd if=/dev/zero of=dummy
90- % rm dummy
9189
92- Folgende Anweisungen setzen Protokollierdaten zurück.
90+ Folgende Anweisungen setzen Protokollierdateien zurück.
9391
9492\begin {console }
9593 sudo -i
10098 history -c
10199\end {console }
102100
101+ % fill free space with zero
102+ % dd if=/dev/zero of=dummy
103+ % rm dummy
104+
105+
103106%
104107% /var/Log/ (alle Dateien 0 byte)
105108% wtmp
138141
139142\section {Image erzeugen }
140143
141- % https://github.com/RPi-Distro/pi-gen
144+ % Alternative: https://github.com/RPi-Distro/pi-gen
142145
143146\begin {console }
144147 sudo umount /dev/mmcblk0p1 /dev/mmcblk0p2
Original file line number Diff line number Diff line change 1414
1515# ... Or print distance on 7-segment display
1616from tm1637 import TM1637
17- tm = TM1637 (clk = 10 , dio = 9 )
18- tm .brightness (3 )
17+ tm = TM1637 (clk = 23 , dio = 24 )
18+ tm .brightness (5 )
1919while True :
2020 dist = str (round (ds .distance * 100 ))
21+ print (str (round (ds .distance * 100 )) + ' cm' )
2122 tm .write (tm .encode_string (' ' * (4 - len (dist ))+ dist ))
2223 sleep (1 )
Original file line number Diff line number Diff line change 44from gpiozero import CPUTemperature
55from time import sleep
66
7- CLK = 10
8- DIO = 9
7+ CLK = 23
8+ DIO = 24
99
1010cpuTemp = CPUTemperature ()
1111tm = TM1637 (clk = CLK , dio = DIO )
1212# 0 ... off
1313# 7 ... max
14- tm .brightness (3 )
14+ tm .brightness (5 )
1515
1616while True :
1717 tm .temperature (round (cpuTemp .temperature ))
You can’t perform that action at this time.
0 commit comments