Doly Blockly reference.

Browse Doly Blockly blocks by level and learn how to use them in your programs.

Types of Blocks

Doly’s Advanced workspace includes six main block types. Beginner and Standard workspaces show fewer types so you can build confidence step by step. Each type has a different shape, connector, or socket, making it easier to see how blocks fit together.

Start Block

Every Doly Blockly program begins here. Connect action blocks under Start to begin the program.

Action Blocks

These blocks connect in a sequence. Doly runs them from top to bottom.

Modifier Blocks

These blocks plug into another block to change settings such as speed, direction, fade, or servo speed.

Container Blocks

These blocks join the main sequence and hold action blocks inside. Examples include Repeat and If.

Event Blocks

These blocks attach to another block and hold follow-up actions that run when something happens, such as when a block completes.

Nested Blocks

These blocks fit inside specific blocks. They do not run by themselves, but help another block make a choice or build a step, such as Animation Color inside a Light Animation block.

Beginner Blocks

Friendly starter blocks for expressions, sounds, movement, arms, lights, and timing.

Eye

Eye

Eye blocks change Doly's expression.

Look Ahead Eyes

Makes Doly look forward.

Look Ahead Eyes preview Preview coming soon

Happy Eyes

Makes Doly look happy.

Happy Eyes preview Preview coming soon

Sparkling Eyes

Gives Doly an excited expression.

Sparkling Eyes preview Preview coming soon

Heated Eyes

Shows a strong or intense expression.

Heated Eyes preview Preview coming soon

Crazy About Eyes

Makes Doly look completely delighted.

Crazy About Eyes preview Preview coming soon

Growing Eyes

Makes Doly's eyes grow wide.

Growing Eyes preview Preview coming soon

Destroyed Eyes

Gives Doly an overwhelmed expression.

Destroyed Eyes preview Preview coming soon

Hopeless Eyes

Makes Doly look discouraged.

Hopeless Eyes preview Preview coming soon

Sound

Sound

Sound blocks let Doly make simple expressive sounds.

Smile Sound

Plays a small friendly sound.

Smile Sound preview Preview coming soon

Happy Sound

Plays a happy Doly sound.

Happy Sound preview Preview coming soon

Admire Sound

Plays an impressed sound.

Admire Sound preview Preview coming soon

Sad Sound

Plays a sad Doly sound.

Sad Sound preview Preview coming soon

Crying Sound

Plays Doly's crying sound.

Crying Sound preview Preview coming soon

Angry Sound

Plays an angry Doly sound.

Angry Sound preview Preview coming soon

Annoy Sound

Plays an annoyed Doly sound.

Annoy Sound preview Preview coming soon

Die Sound

Plays Doly's dramatic power-down sound.

Die Sound preview Preview coming soon

Shock Sound

Plays a surprised Doly sound.

Shock Sound preview Preview coming soon

Provoke Sound

Plays Doly's playful provoking sound.

Provoke Sound preview Preview coming soon

Drive

Drive

Drive blocks move or turn Doly by simple preset amounts.

Forward 1

Moves Doly forward a short distance.

Forward 1 preview Preview coming soon

Forward 2

Moves Doly forward a medium distance.

Forward 2 preview Preview coming soon

Forward 3

Moves Doly forward a longer distance.

Forward 3 preview Preview coming soon

Backward 1

Moves Doly backward a short distance.

Backward 1 preview Preview coming soon

Backward 2

Moves Doly backward a medium distance.

Backward 2 preview Preview coming soon

Backward 3

Moves Doly backward a longer distance.

Backward 3 preview Preview coming soon

Turn Right 45

Turns Doly right by a small angle.

Turn Right 45 preview Preview coming soon

Turn Right 90

Turns Doly right by a quarter turn.

Turn Right 90 preview Preview coming soon

Turn Right 180

Turns Doly right to face the opposite way.

Turn Right 180 preview Preview coming soon

Turn Right 360

Spins Doly one full turn to the right.

Turn Right 360 preview Preview coming soon

Turn Left 45

Turns Doly left by a small angle.

Turn Left 45 preview Preview coming soon

Turn Left 90

Turns Doly left by a quarter turn.

Turn Left 90 preview Preview coming soon

Turn Left 180

Turns Doly left to face the opposite way.

Turn Left 180 preview Preview coming soon

Turn Left 360

Spins Doly one full turn to the left.

Turn Left 360 preview Preview coming soon

Arm

Arm

Arm blocks move Doly's left or right arm to preset positions.

Left Arm 0

Moves Doly's left arm to its starting position.

Left Arm 0 preview Preview coming soon

Left Arm 45

Raises Doly's left arm a little.

Left Arm 45 preview Preview coming soon

Left Arm 90

Raises Doly's left arm halfway.

Left Arm 90 preview Preview coming soon

Left Arm 135

Raises Doly's left arm most of the way.

Left Arm 135 preview Preview coming soon

Left Arm 180

Moves Doly's left arm to a high position.

Left Arm 180 preview Preview coming soon

Right Arm 0

Moves Doly's right arm to its starting position.

Right Arm 0 preview Preview coming soon

Right Arm 45

Raises Doly's right arm a little.

Right Arm 45 preview Preview coming soon

Right Arm 90

Raises Doly's right arm halfway.

Right Arm 90 preview Preview coming soon

Right Arm 135

Raises Doly's right arm most of the way.

Right Arm 135 preview Preview coming soon

Right Arm 180

Moves Doly's right arm to a high position.

Right Arm 180 preview Preview coming soon

Lights

Lights

Light blocks change Doly's arm light color.

Lights Off

Turns Doly's lights off.

Lights Off preview Preview coming soon

White Light

Turns Doly's lights white.

White Light preview Preview coming soon

Red Light

Turns Doly's lights red.

Red Light preview Preview coming soon

Green Light

Turns Doly's lights green.

Green Light preview Preview coming soon

Blue Light

Turns Doly's lights blue.

Blue Light preview Preview coming soon

Yellow Light

Turns Doly's lights yellow.

Yellow Light preview Preview coming soon

Pink Light

Turns Doly's lights pink.

Pink Light preview Preview coming soon

Orange Light

Turns Doly's lights orange.

Orange Light preview Preview coming soon

Time

Time

Time blocks make Doly wait before the next action.

Wait 1

Waits for a second.

Wait 1 preview Preview coming soon

Wait 2

Waits for 2 seconds.

Wait 2 preview Preview coming soon

Wait 3

Waits for 3 seconds

Wait 3 preview Preview coming soon

Wait 4

Waits for 4 seconds.

Wait 4 preview Preview coming soon

Wait 5

Waits for 5 seconds.

Wait 5 preview Preview coming soon

Wait 10

Waits for 10 seconds.

Wait 10 preview Preview coming soon

Standard Blocks

Action blocks build Doly's routine. Modifier blocks plug into compatible actions for extra control.

Eye

Eye

Eye blocks control how Doly’s eyes look and move.

Eye Expression

Use this block to change Doly’s eye expression.

Eye Expression: Choose the mood group for Doly’s eyes. Type: Choose the exact animation inside that mood group. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away.

Eye Expression preview Preview coming soon

Sound

Sound

Sound blocks let Doly play sounds or speak words.

Sound

Use this block to play a sound.

Sound Type: Choose the sound category. Play: Choose the exact sound from that category. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away.

Sound preview Preview coming soon

Say

Use this block to make Doly speak.

Say: Write the words Doly should say. The text can be up to 255 characters. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away.

Say preview Preview coming soon

Drive

Drive

Drive blocks control how Doly moves, turns, and reaches positions.

Drive Distance

Use this block to move Doly by a set distance.

Drive: Set how far Doly should move. The distance is in millimeters (mm). 1 inch = 25.4 mm. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Drive Direction, Drive Speed

Drive Distance preview Preview coming soon

Rotate Left

Use this block to turn Doly left.

Rotate Left: Set how many degrees Doly should turn left. The angle can be 0 to 359 degrees. from center: Choose how Doly turns. Checked means Doly turns around its center by moving both tracks in opposite directions. Unchecked means one track stays stopped while the other track moves. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Drive Direction, Drive Speed

Rotate Left preview Preview coming soon

Rotate Right

Use this block to turn Doly right.

Rotate Right: Set how many degrees Doly should turn right. The angle can be 0 to 359 degrees. from center: Choose how Doly turns. Checked means Doly turns around its center by moving both tracks in opposite directions. Unchecked means one track stays stopped while the other track moves. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Drive Direction, Drive Speed

Rotate Right preview Preview coming soon

Direction

Use this modifier block to choose Doly’s drive direction.

Direction: Choose Forward or Reverse. Compatible Blocks: Drive Distance, Rotate Left, Rotate Right, Drive Speed Modifier Blocks: Drive Speed

Direction preview Preview coming soon

Speed

Use this modifier block to set Doly’s drive speed.

Speed: Set how fast Doly drives. The speed can be 1 to 100. Compatible Blocks: Drive Distance, Rotate Left, Rotate Right, Drive Direction Modifier Blocks: Drive Direction

Speed preview Preview coming soon

Arm

Arm

Arm blocks control Doly’s arm positions.

Arm Angle

Use this block to move Doly’s arm to a set angle.

Arm Angle: Set the arm position angle. The angle can be 0 to 225 degrees. Side: Choose which arm should move: Both, Left, or Right. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Arm Speed & Brake

Arm Angle preview Preview coming soon

Speed & Brake

Use this modifier block to control Doly’s arm speed and hold setting.

Speed: Set how fast the arm moves. The speed can be 1 to 100. Brake: Choose whether Doly should hold the arm at its final position. “Yes” keeps the arm locked in place. “No” lets it release after moving. Compatible Blocks: Arm Angle

Speed & Brake preview Preview coming soon

Lights

Lights

Light blocks control Doly’s arm light colors.

Light

Use this block to set Doly’s arm light color.

Light Color: Choose the light color. Side: Choose which light should change: Both, Left, or Right. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away.

Light preview Preview coming soon

Time

Time

Time blocks add pauses between actions.

Delay

Use this block to pause the routine.

Delay ms: Set how long Doly should wait before continuing. The time is in milliseconds (ms). The value can be 5 to 60000. 1000 ms = 1 second. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away.

Delay preview Preview coming soon

Loops

Loops

Loop blocks repeat a group of actions.

Repeat

Use this block to repeat actions.

Repeat: Set how many times the actions should run. The value can be 1 to 65535. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. do: Place the action blocks you want to repeat here.

Repeat preview Preview coming soon

Advanced Blocks

The full toolbox includes action parents, attached modifiers, and nested blocks. Servo and GPIO categories require connected physical hardware.

Eye

Eye

Eye blocks control how Doly’s eyes look and move.

Eye Expression

Use this block to change Doly’s eye expression.

Eye Expression: Choose the mood group for Doly’s eyes. Type: Choose the exact animation inside that mood group. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: On Complete

Eye Expression preview Preview coming soon

Eye Type

Use this block to change the appearance of Doly’s eye.

Eye Type: Choose the main eye type group. Style: Choose the style inside that eye type. Side: Choose which eye should change: Both, Left, or Right. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: On Complete

Eye Type preview Preview coming soon

Eye Position

Use this block to move Doly’s eye position.

X: Set the horizontal eye position. The value can be 0 to 240. Y: Set the vertical eye position. The value can be 0 to 240. Position: X 120 and Y 120 is the center of the eye display. X 0 and Y 0 is the top-left corner. Side: Choose which eye should move: Both, Left, or Right. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: On Complete

Eye Position preview Preview coming soon

Eye Background

Use this block to change Doly’s eye background.

Background Type: Choose the main background type. Style: Choose the style inside that background type. Side: Choose which eye background should change: Both, Left, or Right. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: On Complete

Eye Background preview Preview coming soon

Sound

Sound

Sound blocks let Doly play sounds or speak words.

Sound

Use this block to play a sound.

Sound Type: Choose the sound category. Play: Choose the exact sound from that category. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: On Complete

Sound preview Preview coming soon

Say

Use this block to make Doly speak.

Say: Write the words Doly should say. The text can be up to 255 characters. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: On Complete

Say preview Preview coming soon

Drive

Drive

Drive blocks control how Doly moves, turns, and reaches positions.

Drive Distance

Use this block to move Doly by a set distance.

Drive: Set how far Doly should move. The distance is in millimeters (mm). 1 inch = 25.4 mm. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Drive Direction, Drive Speed, Speed & Acceleration & Brake, Speed & Force Control, On Complete

Drive Distance preview Preview coming soon

Drive To Position

Use this block to move Doly to an X and Y position in a coordinate system.

X: Set the target X position in millimeters (mm). From the 0,0 origin, positive X points to the right. The value can be -32765 to 32765. Y: Set the target Y position in millimeters (mm). From the 0,0 origin, positive Y points forward. The value can be -32765 to 32765. Origin: Doly’s starting position is 0,0 when Blockly starts. If Doly is picked up and placed back on the surface, the origin resets to 0,0. 1 inch = 25.4 mm. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Drive Direction, Drive Speed, On Complete

Drive To Position preview Preview coming soon

Rotate Left

Use this block to turn Doly left.

Rotate Left: Set how many degrees Doly should turn left. The angle can be 0 to 359 degrees. from center: Choose how Doly turns. Checked means Doly turns around its center by moving both tracks in opposite directions. Unchecked means one track stays stopped while the other track moves. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Drive Direction, Drive Speed, Speed & Acceleration & Brake, Speed & Force Control, On Complete

Rotate Left preview Preview coming soon

Rotate Right

Use this block to turn Doly right.

Rotate Right: Set how many degrees Doly should turn right. The angle can be 0 to 359 degrees. from center: Choose how Doly turns. Checked means Doly turns around its center by moving both tracks in opposite directions. Unchecked means one track stays stopped while the other track moves. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Drive Direction, Drive Speed, Speed & Acceleration & Brake, Speed & Force Control, On Complete

Rotate Right preview Preview coming soon

Direction

Use this modifier block to choose Doly’s drive direction.

Direction: Choose Forward or Reverse. Compatible Blocks: Drive Distance, Drive To Position, Rotate Left, Rotate Right, Drive Speed, Speed & Acceleration & Brake Modifier Blocks: Drive Speed, On Complete

Direction preview Preview coming soon

Speed

Use this modifier block to set Doly’s drive speed.

Speed: Set how fast Doly drives. The speed can be 1 to 100. Compatible Blocks: Drive Distance, Drive To Position, Rotate Left, Rotate Right, Drive Direction Modifier Blocks: Drive Direction, On Complete

Speed preview Preview coming soon

Speed & Acceleration & Brake

Use this modifier block to control Doly’s drive speed, acceleration, and brake setting.

Speed: Set how fast Doly drives. The speed can be 1 to 100. Acceleration: Set how quickly Doly changes speed. The value can be 0 to 50. Brake: Choose whether Doly should brake when the movement is close to the end. Compatible Blocks: Drive Distance, Rotate Left, Rotate Right, Speed & Force Control Modifier Blocks: Drive Direction, On Complete

Speed & Acceleration & Brake preview Preview coming soon

Speed & Force Control

Use this modifier block to control drive correction and motor protection.

Speed Control: Helps Doly keep its movement correct by adjusting the motor speed on each track side. This is useful when one side has more traction or resistance than the other. Force Control: Helps protect the motors if Doly is blocked or stuck. When enabled, Doly checks motor feedback and stops the motors if it cannot move safely. Compatible Blocks: Drive Distance, Rotate Left, Rotate Right Modifier Blocks: Speed & Acceleration & Brake, On Complete

Speed & Force Control preview Preview coming soon

Arm

Arm

Arm blocks control Doly’s arm positions.

Arm Angle

Use this block to move Doly’s arm to a set angle.

Arm Angle: Set the arm position angle. The angle can be 0 to 225 degrees. Side: Choose which arm should move: Both, Left, or Right. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Arm Speed & Brake, On Complete

Arm Angle preview Preview coming soon

Speed & Brake

Use this modifier block to control Doly’s arm speed and hold setting.

Speed: Set how fast the arm moves. The speed can be 1 to 100. Brake: Choose whether Doly should hold the arm at its final position. “Yes” keeps the arm locked in place. “No” lets it release after moving. Compatible Blocks: Arm Angle Modifier Blocks: On Complete

Speed & Brake preview Preview coming soon

Lights

Lights

Light blocks control Doly’s arm light colors.

Light

Use this block to set Doly’s arm light color.

Light Color: Choose the light color. Side: Choose which light should change: Both, Left, or Right. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: On Complete

Light preview Preview coming soon

Light Animation

Use this block to create a light animation for Doly’s lights.

Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Left: Add Animation Color blocks for the left light. Right: Add Animation Color blocks for the right light. Nested Blocks: Animation Color Modifier Blocks: On Complete

Light Animation preview Preview coming soon

Animation Color

Use this nested block to add a color step to a light animation.

Color: Choose the light color for this step. Time: Set how long this color step lasts. The time is in milliseconds (ms). The value can be 10 to 10000. If a Light Fade modifier is connected, this time also controls how long the color change takes. Compatible Blocks: Light Animation Modifier Blocks: Light Fade

Animation Color preview Preview coming soon

Fade Color

Use this modifier block to fade a light color for light animation color blocks.

Fade Color: Choose the color this light step should fade to. Compatible Blocks: Animation Color

Fade Color preview Preview coming soon

Time

Time

Time blocks add pauses between actions.

Delay

Use this block to pause the routine.

Delay ms: Set how long Doly should wait before continuing. The time is in milliseconds (ms). The value can be 5 to 60000. 1000 ms = 1 second. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: On Complete

Delay preview Preview coming soon

Loops

Loops

Loop blocks repeat a group of actions.

Repeat

Use this block to repeat actions.

Repeat: Set how many times the actions should run. The value can be 1 to 65535. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. do: Place the action blocks you want to repeat here.

Repeat preview Preview coming soon

Servo

Servo

Servo blocks control external servos connected to Doly.

Servo Angle

Use this block to move an external servo connected to Doly via GPIO port.

Servo: Choose which servo port to control: pwm_0 or pwm_1. Angle: Set the target servo angle. The angle can be 0 to 240 degrees. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Servo SI, On Complete

Servo Angle preview Preview coming soon

Speed & Invert

Use this modifier block to control servo speed and direction.

Speed: Set how fast the servo moves. The speed can be 1 to 100. Invert: Choose whether the servo direction should be reversed. Compatible Blocks: Servo Modifier Blocks: On Complete

Speed & Invert preview Preview coming soon

Gpio

Gpio

GPIO blocks control and read Doly’s external I/O pins.

I/O Set

Use this block to set a GPIO pin to LOW or HIGH.

I/O #: Choose the GPIO pin number. The value can be 0 to 5. State: Choose the pin state: LOW or HIGH. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: On Complete

I/O Set preview Preview coming soon

I/O Wait

Use this block to wait until a GPIO pin becomes LOW or HIGH. To avoid unexpected behavior or deadlock, it will wait up to 65 seconds. If the pin state does not change within that time, the program will be terminated.

I/O #: Choose the GPIO pin number. The value can be 0 to 5. State: Choose the pin state Doly should wait for: LOW or HIGH. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: On Complete

I/O Wait preview Preview coming soon

I/O Condition

Use this nested block to check a GPIO pin state.

I/O #: Choose the GPIO pin number. The value can be 0 to 5. Comparator: Choose how to compare the pin state: = or ≠. State: Choose the pin state to check: LOW or HIGH. Compatible Blocks: If

I/O Condition preview Preview coming soon

Logic

Logic

Logic blocks let Doly choose actions based on a condition.

If

Use this block to run actions only when a condition is true.

If: Add a nested block that checks the condition. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. do: Place the action blocks that should run when the condition is true. Nested Blocks: GPIO If

If preview Preview coming soon

Events

Events

Event blocks are triggered after an event happens.

On Complete (Beta)

Use this modifier block to run actions after another block finishes.

Completed: Place the action blocks that should run after the connected block finishes. Compatible Blocks: Blocks that accept On Complete.

Example: Use On Complete when one action should happen after a block finishes, but another action should still start right away. For example, Doly can start driving and turn on a light instantly, while an On Complete block makes Doly play a sound only after the drive movement finishes.
On Complete (Beta) preview Preview coming soon

Blockly Limitations

Blockly’s limitations include potential performance issues with large projects, restrictions on complex context-sensitive block connections, and challenges in creating certain advanced features. Although Blockly helps demonstrate the basics of programming, it uses a very different underlying structure than real code, which can sometimes lead to logical errors. Some known limitations are listed below:

  • It is not possible to have two or more instances of the same block type active at the same time. If the code sequence is arranged incorrectly, starting a new block of the same type will cancel the previous one and start the new one instead. In some complex projects, this behavior can cause errors in the program flow.
  • In Action blocks, the Start option (with Start Instant and Previous Completed settings) determines how the current block starts in relation to the previous block. For example, if Previous Completed is selected, the block will start only after the immediately preceding block has finished, regardless of whether earlier blocks have finished.
  • A maximum of 65,535 blocks can be defined at the same time.