Skip to content

Commit 3661641

Browse files
committed
GH-40: QA
1 parent 9b33e7f commit 3661641

File tree

7 files changed

+23
-15
lines changed

7 files changed

+23
-15
lines changed

DHT22.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
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
@@ -27,6 +28,7 @@
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
@@ -37,6 +39,7 @@
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}

HC-SR04.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
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
@@ -40,6 +41,7 @@
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

Raspjamming - Admin.tex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
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}

TM1637Display.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
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
@@ -36,6 +37,7 @@
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

install_admin.tex

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
Folgende 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

@@ -72,7 +73,7 @@
7273
Am Ende der ersten Zeile in der Datei cmdline.txt muss der Text\\ \textbf{init=/usr/lib/raspi-config/init\_resize.sh} \\
7374
eingefü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
@@ -85,11 +86,8 @@
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
@@ -100,6 +98,11 @@
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
@@ -138,7 +141,7 @@
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

source/HC_SR04.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414

1515
# ... Or print distance on 7-segment display
1616
from 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)
1919
while 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)

source/TM1637_Temp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
from gpiozero import CPUTemperature
55
from time import sleep
66

7-
CLK = 10
8-
DIO = 9
7+
CLK = 23
8+
DIO = 24
99

1010
cpuTemp = CPUTemperature()
1111
tm = TM1637(clk=CLK, dio=DIO)
1212
# 0 ... off
1313
# 7 ... max
14-
tm.brightness(3)
14+
tm.brightness(5)
1515

1616
while True:
1717
tm.temperature(round(cpuTemp.temperature))

0 commit comments

Comments
 (0)