From a5cdb8e882e889d506ffdce83f995128d36c061b Mon Sep 17 00:00:00 2001 From: Ioana-Maria RADOVICI <ioana_maria.culic@upb.ro> Date: Wed, 19 Mar 2025 09:31:42 +0000 Subject: [PATCH 1/2] Added warning for LED wiring. --- website/lab/02/index.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/lab/02/index.mdx b/website/lab/02/index.mdx index b0a9aa4..a06c11c 100644 --- a/website/lab/02/index.mdx +++ b/website/lab/02/index.mdx @@ -287,6 +287,7 @@ pin.set_high(); pin.set_low(); ``` + :::tip While the device initialization is specific to every hardware device (the example uses the @@ -410,6 +411,12 @@ uses one pin for control. Each LED connector has one single hole on the board, marked with `RED`, `GREEN`, `BLUE` and `YELLOW` respectively. These are located in the **Connectors** section of the board. +:::warning + +The LEDs are connected so they will light up if the pin is set to LOW and turn off if the pin is set to HIGH. + +::: + The four switches that the lab board provides are signaled with labels `SW4`, `SW5`, `SW6` and `SW7` in the connectors section. -- GitLab From eed4ec9f8f0447bbedcc51a4d29031023eca08cc Mon Sep 17 00:00:00 2001 From: Ioana-Maria RADOVICI <ioana_maria.culic@upb.ro> Date: Wed, 19 Mar 2025 10:56:35 +0000 Subject: [PATCH 2/2] Apply 1 suggestion(s) to 1 file(s) Co-authored-by: Alexandru RADOVICI <alexandru.radovici@upb.ro> --- website/lab/02/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/lab/02/index.mdx b/website/lab/02/index.mdx index a06c11c..bf35053 100644 --- a/website/lab/02/index.mdx +++ b/website/lab/02/index.mdx @@ -413,7 +413,7 @@ section of the board. :::warning -The LEDs are connected so they will light up if the pin is set to LOW and turn off if the pin is set to HIGH. +The LEDs are connected so they will light up if the pin is set to `Level::Low` and turn off if the pin is set to `Level::High`. ::: -- GitLab