Skip to content

Commit 8a3ba3f

Browse files
Modify LED control instructions in index.mdx (#660)
* Modify LED control instructions in index.mdx Updated instructions to set the LED to LOW and added a note about using a loop. * Clearer explanation Co-authored-by: Alexandru Radovici <msg4alex@gmail.com> --------- Co-authored-by: Alexandru Radovici <msg4alex@gmail.com>
1 parent 873b876 commit 8a3ba3f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

website/lab/02/index.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,12 @@ display-inlay-hints = true
820820
:::
821821

822822

823-
2. Write a program using Embassy that set on HIGH the LED connected to IO/D8 (PC7). (**1p**)
823+
2. Write a program using Embassy that set on LOW the LED connected to IO/D8 (PC7). (**1p**)
824+
825+
:::note
826+
827+
Please make sure you to put a `loop {}` at the end of the `main` function, otherwise Embassy will reset the
828+
pins at the end of the function and you will not see the LED turn on.
824829

825830
:::danger
826831

0 commit comments

Comments
 (0)