Code it in MakeCode Maker — image 1 of 1

leds_MakeCode_4.png
details

To choose which pin you want to control with the block, click on the down arrow to open the drop-down menu.

To set the amount, type a number into the white oval, or use the slider that opens when you click on the oval. Setting it to zero turns the lights off.

By default, the analog write pin block is set to the maximum, which is 1023.

Back

Search