To create our Rogic code we use 3 main commands, which are:
- Delay: Using this command, on the one hand, we use it to indicate how long an action must advance or be executed, while on the other hand, we use it to select the waiting time to carry out the next step.
- DC motor: This command is responsible for turning on the ports of the motors that we want to select, telling them in which direction they should move (forward or reverse) and also giving them what speed they should go. We use port 1 and port 2 with a speed of 6.
- Voice: Through this command our robot emits a sound, which we use to let the user know that the work was a success, in our case we hypothetically let it be known that the medicine was applied correctly for the patient. broken bone.