Goal: To display "Hello World" on the OLED display of the robot.
Connect the electric ray robot to your machine via data cable. On the left side of your screen, you will find a Hardware window as shown below. Select Hardware as "Electric Ray" and Port to the one to which the robot is connected.
On the left hand of your screen you will find the Action Window, which comprises of Action blocks. We program the robot using these action blocks. Point your mouse towards each block, to know its function. Click on the OLED display block as shown below.
The action block appears in the programming window. This action block is a function which turns on the display of the robot. On clicking the red triangle to the right side of the block, a new pop-up expands which shows all the blocks related to display block. Click on the first block which is used to display a string.
Click on the red triangle of the string block and select the last block "abc" which will help you type a string.
Type "Hello World" as shown below.
This completes the program to display "Hello World". Next step is to port your program on to the robot.
Before porting the program make sure that its power switch is turned ON. Click on the green play button at the top. This will compile the program and write it into your robot.
After a thank you message is displayed in the "Message Window", remove the robot from the USB port. Hello world will be displayed on the robot.
Activity: Display "Hello" and "World" in two separate lines.