In this section, we will learn how to install the software needed to write programs for Orbicraft, write the simplest program and run it.
This algorithm will be valid in the future when performing more complex tasks with Orbicraft.
You can program in the main NotePad ++ window. As the first test program, we will write the traditional program for outputting the greeting message “Hello, world!”. You can copy it from the field below.
#include <stdio.h> void control(void){ puts("hello, world!"); }
• Save the file in the previously created folder Orbicraft_Test_Program.
File –> Save As –> select folder (C:\ - Orbicraft_Test_Program) –> enter file name (HelloWorld) –>select file type (C source file(*.c)) –> click Save.
* Connect devices with a network cable. You can connect devices through any connectors.
For convenience, the instructions for working with the Web interface are duplicated in the Web interface itself.Several programs can be downloaded simultaneously to the BCC.
To download and run the program, you must perform the following steps:
Step 1. Download the archive
Download the zip-archive created in NotePad ++.
(C:\ - Orbicraft_Test_Program – HelloWorld.zip) in the download area. In the comment field you must write the name of your program. Click the Submit button.
Step 2. Select a downloaded task from the list
Click on the link in the field “Task UUID” to activate the selected program. After this click, the program will be compiled. This may take some time.
Step 3. Run the program
In step 3, a link is displayed, click on it. A new browser window will open: here you can launch the program.
Step 4. Run the program
To run the program you need to click the button in the opened browser page. The program will be completed (in our case, the greeting “hello, world!” will appear) and will end. A second click on the same button will run the program again; you can run it in one page an unlimited number of times.
Step 5. Shutting down the program
To end the program, you can simply close the browser page, return to Step 2 to select another program that has already been downloaded, or to Step 1 to load a new one.