2026-02-22: Intro: OS And C++ (Live Demo) ========================================= .. note:: This session was entirely live demonstrated by teacher. No need to repeat all the steps. * Login to Pi at home: ``ssh -p 2022 jfasch.bounceme.net`` .. code-block:: console $ ls -l /sys/class/hwmon/ $ ls -l /sys/class/hwmon/hwmon2/ * Show how to use that sensor from the commandline (:doc:`/trainings/material/soup/linux/hardware/w1/topic`) * Write a C program that reads the sensor value in a loop (a "data logger", so to say). (:doc:`/trainings/material/soup/linux/sysprog/syscalls/index`) * Transform the sensor into a dedicated type/class (:doc:`/trainings/material/soup/cxx/cxx03/020-data-encapsulation/index`) .. literalinclude:: code/intro.cpp :caption: :download:`code/intro.cpp` :language: c++