Hello World

Let's code, compile and run your first program.

Prerequisites:

  • Install and run Rubik's Futuro Cube Suitearrow-up-right, from now on, we mean: RFCSuite and connect CUBE via USB cable to PC.

  • If RFCSuite correctly communicates with the cube, the cube should turn black and the screen should look like this:

  • Now switch to View->SDK mode, you should see the SDK view and an available prompt given by Interactive shell

->

  • Just for fun type "colh 0x55124800" and hit enter - you should get the cube filled with the given color. For more information later, check Colors, palettes and drawing but for now let's get back to programming.

Rubik’s Futuro Suite contains a standard PAWN compiler and allows you to compile scripts automatically with preset recommended stack and optimization settings (these can be adjusted by experienced user).

  • Create a directory, where you will create your first program and download there API definition file called "futurocube.inc". This is something like a header in C language and there is always a link on the SDK pagearrow-up-right to the latest version.

  • In you favorite text editor create a file called hello.p (p extension is necessary for RFCSuite to find this file). Simply copy, paste and save there the next few lines:

Continue at Compile and Run Hello World

Last updated