Skip to content
Snippets Groups Projects
Commit 2ad15f63 authored by Ioana-Maria RADOVICI's avatar Ioana-Maria RADOVICI Committed by Alexandru RADOVICI
Browse files

Added reminder LED and button wiring.

parent 9dac2159
No related branches found
No related tags found
No related merge requests found
...@@ -478,6 +478,8 @@ loop { ...@@ -478,6 +478,8 @@ loop {
:::info :::info
If you need to remember the layout of the board, check the [Lab Board](./02#the-lab-board) section from the previous lab. If you need to remember the layout of the board, check the [Lab Board](./02#the-lab-board) section from the previous lab.
Remember that LEDs are wired so they light up on `Level::Low` and turn off on `Level::Low` and buttons return `Level::Low` when pressed and `Level::High` when not pressed.
::: :::
:::danger :::danger
...@@ -489,6 +491,8 @@ Please make sure the lab professor verifies your circuit before it is powered up ...@@ -489,6 +491,8 @@ Please make sure the lab professor verifies your circuit before it is powered up
- Make the LED change intensity from 0% to 100% in 10% increments every 1 second. (**1p**) - Make the LED change intensity from 0% to 100% in 10% increments every 1 second. (**1p**)
:::info :::info
You should use the lab skeleton provided in the [Lab Repository](https://github.com/UPB-PMRust/lab-2025) as a starting point for your implementation. You should use the lab skeleton provided in the [Lab Repository](https://github.com/UPB-PMRust/lab-2025) as a starting point for your implementation.
Embassy will reset all the peripherals when the `main` function exists, that means `PWM` and `ADC` will stop. Make sure the `main` function never exits so you can see how the circuit behaves.
::: :::
2. Write a program using Embassy to control the led intensity using a potentiometer. The potentiometer is connected to an ADC-capable GPIO pin. The LED should change intensity based on the potentiometer's position. (**2p**) 2. Write a program using Embassy to control the led intensity using a potentiometer. The potentiometer is connected to an ADC-capable GPIO pin. The LED should change intensity based on the potentiometer's position. (**2p**)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment