Case 54: Happy Seesaw
Make a seesaw with Nezha 48 IN 1 Inventor's Kit.
Quick to Start
Build it as the assembly steps suggest:
Click “Advanced” in the MakeCode drawer to see more choices.
For programming the servo, we need to add a package. Click “Extensions” at the bottom of the drawer and search with “nezha” 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 picture suggests
You may also download it directly:
When there is an obstruction in front of it. the objects will be pushed down automatically.