*I used jumper wires because solid core wires we're unavailable but the process is the same! |
|
|
|
|
|
Test it out!
Try shaking the CPX and see what happens. If the CPX doesn't fall/rise enough or falls/rises too far, go back to MakeCode and edit the on shake
code block. Remember, the piece of code that says "Servo write pin A1 to (value between 0 and 180)" can be edited to change the speed of the servo.