From 341b84e29a3d2c5f468e5ee8ab4537e8945df01d Mon Sep 17 00:00:00 2001 From: fastium Date: Sat, 6 Jun 2026 22:29:13 +0200 Subject: [PATCH] docs(MP): add daemon introduction --- doc/mini-project.typ | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/mini-project.typ b/doc/mini-project.typ index ed46ad9..a0038b9 100644 --- a/doc/mini-project.typ +++ b/doc/mini-project.typ @@ -98,6 +98,9 @@ It uses some callbacks for every actions in the module: We seperates the setter and the getter of the period to avoid some issue. Because if we set a wrong value or in automatic mode, the value would be wrong for getting it. In the way we did it, the read value will be the current. == Daemon + +The deamon has the core in `app`. It handles the `sysfs` functions needed by the different features. It provides them for the OLED screen, buttons, LEDS and @ipc server. + === gpio We develop the gpio part as near as possible with a pseudo class for the led and a pseudo class for the button. The led class is quite simple and help to have a good understanding of this principle. As shown in @fig:led-class-header, we create a structure for the led. A `LED_init` function is used to create a LED object by returning a pointer to this structure. Function to this class start with the same prefix `LED_` and take a pointer to the structure as parameter.