Case 67: The Blocks Emitter
71. Case 67: The Blocks Emitter#
71.2. Case Building#
The structure is built as shown in the figure:
After the construction is completed, as shown in the following figure：
71.3. MakeCode Programming#
Click “Advanced” in the MakeCode drawer to see more choices.
For programming the potentiometer, we need to add an extension library. Search with “PlanetX” in the dialog box to download this library.
For programming the Nezha expansion board, we need to add an expansion library. Search with “Nezha” in the dialog box to download it.
Notice: If you met a tip indicating that some codebases would be deleted due to incompatibility, you may continue as the tips say or create a new project in the menu.
Write the program as the picture suggests#
You may also download it directly:
The potentiometer allows you to control the firing frequency of the blocks emitter.