Code with MakeCode — image 1 of 1

projects_mc_onstart.jpg
details

If you add or remove modes, change numModes to reflect the total number of modes (including mode 0). We have three modes: 0 (fairy lights only), 1 (fairy lights plus CPX), and 2 (off), so we've set numModes to 2. It's a bit confusing, but computers like to count starting with 0!

To select a different start-up mode, change set mode to 0 to the number of the mode you want to appear first. 

You can also change the Circuit Playground brightness by choosing a number between 0 and 255.

Back

Search