You can connect the [Servo Driver] block of mbuild to Halocode, and make more creations.
1. servo driver (1) sets angle to (90)°
Sets the rotation angle of the specified servo driver to the specified value.
Example
When the button of Halocode is pressed, the rotation angle of servo driver 1 will be set to 90°.
2. servo driver (1) increases angle by (20)°
Changes the rotation angle of the specified servo driver by the specified value.
Example
When the button of Halocode is pressed, the rotation angle of servo driver 1 will increase by 20°.
3. servo driver (1) back to zero position
Turns the specified servo driver back to zero position.
Example
When the button of Halocode is pressed, servo driver 1 will go back to zero position.
4. servo driver (1) current angle(°)
Reports the rotation angle of the specified servo driver.
Example
When the button of Halocode is pressed, if the rotation angle of servo driver 1 is greater than 90°, the LED ring of Halocode will light up red.
Comments
Please sign in to leave a comment.