Answers to the night light quiz.
This is the answer key for the night light quiz.
This function sets the brightness of the LED screen.
If the rectangle above represents the @boardname@, write the code to set all the LEDs to full brightness and to turn on all the LEDs.
led.setBrightness(255)
basic.showLeds(`
# # # # #
# # # # #
# # # # #
# # # # #
# # # # #
`)
If the rectangle above represents the @boardname@, write the code to set the screen brightness to 50% (128) and turns on all the LEDs.
led.setBrightness(128)
basic.showLeds(`
# # # # #
# # # # #
# # # # #
# # # # #
# # # # #
`)
If the rectangle above represents the @boardname@, write the code to turn off all the LEDs.
led.setBrightness(0)