Programming with MakeCode — image 1 of 1

circuit_playground_Screen_Shot_2018-12-06_at_2.15.32_PM.png
details
  • When capacitive touch input A3 on the CPX is touched, we want to move the servo motor from 0 to 120 degrees, and back, 10 times fast to shake the snowman. Adding the 100ms of pause in between allows the servo to have enough time to move to each position.
Back

Search