Devlogs
Help Page
Posted June 01, 2022 by Kyroaku
#Help #tutorial #documentation
Table of content
- Programming
- Open programmer
- Types of code blocks
- Instructions
- Values
- Run program
- Blocks documentation
- Game modes
- Campaign
- Playground
- Processor
- Binary pins bindings
- Analog pins bindings
1. Programming
1.1. Open programmer
- Campaigns - click button in the top-right corner,
- Non-campaigns - click on the robot you want to program.
1.2. Types of code blocks
Different types of blocks have different colors and styles to help recognize them.
1.2.1. Instructions
Instruction blocks have flat color style and are executed one by one, just like a lines of code.
1.2.2. Values
- Value blocks or slots have gradient with different colors,
- value block can be put to the value slot of the same type (same color),
- value blocks can have value slots parameters (for example, a+b operation takes two values and returns sum).
1.3. Run program
- Put instructions inside the Program block,
- Click Program in the top-right corner of the programer,
- Close progammer,
- In the top-right corner click Run to start executing code and Stop to stop it
1.4. Blocks documentation
Possible values of instruction parameters depends on the robot or the component that reads value but usually it is value between -100 and 100, and represents percentage of the minimum/maximum possible values.
2. Game modes
2.1. Campaign
In campaign modes, the goal is to make robot reaches the green area. Easier levels has prepared set of instructions that are needed to complete the task.
2.2. Playground
In this mode, there is no any task to complete. You can program each robot, test it and play around with it.
2.3. Processor
This mode is similar to playground, there are no any tasks to complete. You can program the microcontroller to play around with it, learn how to use microcontroller's GPIOs.
Processor on the scene has component around it bound to the GPIOs:
2.3.1. Binary pins bindings
- 0 - Red LED
- 1 - Yellow LED
- 2 - Green LED
- 3 - Blue LED
- 4 - Button 1
- 5 - Button 2
- 6 - Button 3
- 7 - Button 4
2.3.2. Analog pins bindings
- 0 - Servo motor 1
- 1 - Servo motor 2