Goal: Learn the syntax for the setLED()
function.
Success Criteria :
setLED()
functionInstruction:
When using setLED()
, we need to specify the LED we want to turn on, and if it should be on (True
) or off (False
).
Here is an example of turning an LED on: m1.setLED(1, 2, True)
Use the image below to help you figure out the position of each LED.
We refer to True
and False
as Boolean values. Boolean values can only be True
or False
.
Task:
You must be logged in to post a comment.