1. The basic "Hello World!" program
In this lesson we will learn the basics of how to make your first program on Pokitto.
The program will put a simple text "Hello World!" on the Pokitto screen.
We will be making the program in the super-simple mbed online tools!
2. Welcome to the "Mbed" ecosystem!
"Mbed" stands for "embedded". Embedded programming means programming the little chips called microcontrollers that are used in things like 3D-printers, robot vacuum cleaners, RC-drones etc. They are kind of "tiny computers" that can do awesome things.
Pokitto is an mbed device and can be programmed in the mbed ecosystem!
3. Getting yourself an Mbed account
Signing up as an Mbed user is free. Just go to the signup page at os.mbed.com to begin making yourself an Mbed account.
All of your coding and work will be done inside this account - you do not need to install anything on your own computer!
4. Adding the Pokitto chip (LPC11U68) as target to your account
Before you can write code for Pokitto, the Mbed online compiler needs to know what target device you are planning to use your program on.
For this step, make sure you are now logged in to the Mbed site!
- go to LPCXpresso11U68 home page
- press Add to your Mbed Compiler button
5. Open the "Hello World!" example program in the online compiler
Pokitto Community has its own "team" on Mbed. You can find our page here.
On that page, you will find the "HelloWorld" example program. Click the link.
Now you are on the "HelloWorld" program page. Click the "Import into Compiler" button. This will open up the "Hello World" example program in the online compiler.
When the window opens, just press "Import"
6. You are ready to program!
Now you are in the Mbed online compiler and the "Hello World" example program is open.
What you see in front of you is a quite simple but very capable online editor, that allows you to edit the code as text, create new programs, add, delete and rename files and folders inside your project.
In the middle is the main.cpp file that contains the main function of your program.
Now you can, for example, change the text "Hello World!" on line 9 to whatever you want. Just remember that text in the C++ language that Pokitto uses always needs to start with a single quotation mark (") and end in another quotation mark. Also, every line of code needs to end in a semicolon (;).
When you are ready, press the "Compile" button to create your program. It will come to you as a downloadable .bin (binary) file, that you can put on your Pokitto.
For video instructions, please look at: [Start]2.Writing your first Pokitto program in the mbed online ecosystem: