-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTM1637Display.tex
85 lines (66 loc) · 1.88 KB
/
TM1637Display.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
\begin{figure}[ht]
\centering
\includegraphics[scale=0.25]{images/TM1637_Steckplatine.png}
% \caption{}
\label{TM1637}
\end{figure}
\begin{figure}[ht]
\centering
\includegraphics[scale=0.25]{images/TM1637_Schaltplan.png}
% \caption{}
\label{TM1637}
\end{figure}
\ExerciseBox{
Gib Zahlen und Texte aus [Beispiele]\\
Gib die aktuelle CPU Temperatur aus [Beispiel Python]\\
Gib die aktuelle Temperatur vom DHT-Sensor aus [Beispiel Blockly-gPIo]\\
Gib die gemittelte aktuelle CPU Last in Prozent aus\\
Realisiere eine Laufschrift}
\subsubsection{C}
\begin{console}
cd ~/Projekte
git clone https://github.com/mstroh76/TM1637Display
cd TM1637Display
g++ -o TM1637Display *.cpp -lwiringPi
./TM1637Display
geany project.geany &
\end{console}
\subsubsection{C\#}
\begin{console}
cd ~/Projekte
git clone https://github.com/chirndler/wiringpi.net.sensors.git
cd wiringpi.net.sensors
xbuild /p:Configuration=Release wiringpi.net.sensors.sln
cd bin/Release/
sudo mono wiringpi.net.sensors.sample.exe 3
\end{console}
\clearpage
\subsubsection{Python}
\begin{console}
sudo pip3 install wiringpi
git clone https://github.com/depklyon/raspberrypi-python-tm1637.git
cd raspberrypi-python-tm1637
sudo python3 setup.py install
\end{console}
\lstset{language=Python, caption=,
label=TM1637Program, frame=single, basicstyle=\ttfamily
\footnotesize, breakatwhitespace=false, showstringspaces=false,
showtabs=false, tabsize=2 }
\lstinputlisting{source/TM1637_Temp.py}
\begin{console}
python3 TM1637_Temp.py
\end{console}
\subsubsection{Blockly-gPIo}
\begin{figure}[ht]
%\centering
\includegraphics[scale=0.44]{images/Blockly-gPIo_TM1637_EN.png}
% \caption{}
\label{Blockly-gPIo_TM1637}
\end{figure}
\hspace{20mm}
\begin{figure}[ht]
%\centering
\includegraphics[scale=0.44]{images/Blockly-gPIo_TM1637_DE.png}
% \caption{}
\label{Blockly-gPIo_TM1637_DE}
\end{figure}