Skip to content

Commit

Permalink
Explanatory comments
Browse files Browse the repository at this point in the history
Signed-off-by: Monica Constandachi <[email protected]>
  • Loading branch information
constmonica committed Nov 13, 2024
1 parent bfb5be1 commit 32294bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions examples/workshop/exercise_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@

# EXERCISE 2: Power the RGB LED

colors = ["red", "green", "blue"]
# ad74413r.channel["voltage0"].raw controls red
# ad74413r.channel["voltage1"].raw controls green
# ad74413r.channel["voltage2"].raw controls blue

# Set LED to red, green and blue color
# Set LED to red, green and blue color
# Your code goes here


Expand Down
2 changes: 1 addition & 1 deletion examples/workshop/exercise_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
red_channel_val = (resistance / 11000) * AD74413R_DAC_MAX_CODE

# Your code goes here
# Assign the value of potentiometer value to the adc channel
# Assign the value of potentiometer value to the adc channel (ad74413r.channel["voltage0"].raw)



0 comments on commit 32294bc

Please sign in to comment.