Skip to content
Snippets Groups Projects
Commit 51fb845d authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Tafelbilder 5.12.2024, aktualisiertes update-Skript

parent 3b52fdd0
Branches
No related tags found
No related merge requests found
20241205/pull-up-pull-down-0-widerstand-ist-zwecklos.png

22.8 KiB

README: Schaltzeichen: „Widerstand ist zwecklos!“
20241205/pull-up-pull-down-1-ohne-pull-up-pull-down.png

15.2 KiB

README: Ohne Pull-Up- oder Pull-Down-Widerstand ist der Schaltzustand bei geöffnetem Taster undefiniert.
20241205/pull-up-pull-down-2-mit-pull-up-pull-down.png

48.3 KiB

README: Pull-Down-, Pull-Up- und interner Pull-Up-Widerstand
File added
......@@ -23,7 +23,8 @@ Vortragsfolien und Beispiele:
* [07.11.2024: Einführung in C: Strukturen, Dateien und Fehlerbehandlung, Parameter des Hauptprogramms, String-Operationen](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241107/hp-20241107.pdf) [**(Beispiele)**](https://gitlab.cvh-server.de/pgerwinski/hp/tree/2024ws/20241107/)
* [14.11.2024: Bibliotheken: Präprozessor](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241114/hp-20241114.pdf) [**(Beispiele)**](https://gitlab.cvh-server.de/pgerwinski/hp/tree/2024ws/20241114/)
* [21.11.2024: Bibliotheken einbinden; Hardwarenahe Programmierung: I/O-Ports](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241121/hp-20241121.pdf) [**(Beispiele)**](https://gitlab.cvh-server.de/pgerwinski/hp/tree/2024ws/20241121/)
* [28.11.2024: Bibliotheken verwenden, Callbacks, make; Hardwarenahe Programmierung: Interrupts](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241128/hp-20241128.pdf) [**(Beispiele)**](https://gitlab.cvh-server.de/pgerwinski/hp/tree/2024ws/20241128/)
* [28.11.2024: Bibliotheken verwenden, Callbacks, make; Hardwarenahe Programmierung: I/O-Ports](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241128/hp-20241128.pdf) [**(Beispiele)**](https://gitlab.cvh-server.de/pgerwinski/hp/tree/2024ws/20241128/)
* [05.12.2024: Hardwarenahe Programmierung: Interrupts, volatile-Variable](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241205/hp-20241205.pdf) [**(Beispiele)**](https://gitlab.cvh-server.de/pgerwinski/hp/tree/2024ws/20241205/)
* [alle in 1 Datei](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/hp-slides-2024ws.pdf)
Übungsaufgaben:
......@@ -35,6 +36,7 @@ Vortragsfolien und Beispiele:
* [14.11.2024: 4: Text-Grafik-Bibliothek, Datum-Bibliothek, Ausgabe von Hexadezimal-Zahlen](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241114/hp-uebung-20241114.pdf)
* [21.11.2024: 5: Zahlensysteme, Mikrocontroller, LED-Blinkmuster](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241121/hp-uebung-20241121.pdf)
* [28.11.2024: 6: Länge von Strings, Iterationsfunktionen](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241128/hp-uebung-20241128.pdf)
* [05.12.2024: 7: Hexdumps](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241205/hp-uebung-20241205.pdf)
Musterlösungen:
---------------
......@@ -44,6 +46,13 @@ Musterlösungen:
* [14.11.2024: 4: Text-Grafik-Bibliothek, Datum-Bibliothek, Ausgabe von Hexadezimal-Zahlen](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241114/hp-musterloesung-20241114.pdf)
* [21.11.2024: 5: Zahlensysteme, Mikrocontroller, LED-Blinkmuster](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241121/hp-musterloesung-20241121.pdf)
* [28.11.2024: 6: Länge von Strings, Iterationsfunktionen](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241128/hp-musterloesung-20241128.pdf)
* [05.12.2024: 7: Hexdumps](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241205/hp-musterloesung-20241205.pdf)
Tafelbilder:
------------
* [05.12.2024: Schaltzeichen: „Widerstand ist zwecklos!“](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241205/pull-up-pull-down-0-widerstand-ist-zwecklos.png)
* [05.12.2024: Ohne Pull-Up- oder Pull-Down-Widerstand ist der Schaltzustand bei geöffnetem Taster undefiniert.](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241205/pull-up-pull-down-1-ohne-pull-up-pull-down.png)
* [05.12.2024: Pull-Down-, Pull-Up- und interner Pull-Up-Widerstand](https://gitlab.cvh-server.de/pgerwinski/hp/raw/2024ws/20241205/pull-up-pull-down-2-mit-pull-up-pull-down.png)
Praktikumsunterlagen:
---------------------
......
......@@ -90,9 +90,13 @@ collect ()
echo >> $readme
echo "$headline" >> $readme
echo "$underline" >> $readme
result=1
for f in "$@"; do
if [ -f "$f" ]; then
description=$(grep -m 1 "$pattern" "$f" | sed -e "s/^.*$pattern *//")
if [ -n "$description" ]; then
target_file=$(echo $f | sed -e "s/\.$source_suffix$/.$target_suffix/")
if [ -f "$target_file" ]; then
if $show_date; then
y=$(echo $f | cut -b 1-4)
m=$(echo $f | cut -b 5-6)
......@@ -101,17 +105,19 @@ collect ()
else
date=""
fi
url="$raw_base_url"$(echo $f | sed -e "s/\.$source_suffix$/.$target_suffix/")
url="$raw_base_url$target_file"
if $with_examples; then
example_url="$base_url"$(echo $f | sed -e "s,/[^/]*$,/,")
echo " * [$date$description]($url) [**(Beispiele)**]($example_url)" >> $readme
else
echo " * [$date$description]($url)" >> $readme
fi
else
return 1
result=0
fi
fi
fi
done
return $result
}
cat > $readme << EOF
......@@ -141,7 +147,7 @@ EOF
collect "Übungsaufgaben:" tex pdf $date_mask/hp-uebung-$date_mask.tex
collect "Musterlösungen:" tex pdf $date_mask/hp-musterloesung-$date_mask.tex || echo "(keine)" >> $readme
# collect "Tafelbilder:" txt jpg $date_mask/photo-$date_mask-$time_mask.txt || echo "(keine)" >> $readme
collect "Tafelbilder:" txt png $date_mask/*.txt || echo "(keine)" >> $readme
collect --no-date "Praktikumsunterlagen:" tex pdf $date_mask/hp-$sem-p[1-4].tex || echo "(keine)" >> $readme
collect --with-examples --no-date "Alte Klausuren:" tex pdf exams/$date_mask/*-klausur-$date_mask.tex >> $readme
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment