Bambino-210 Manual/Getting Started
From Manuals
| Line 26: | Line 26: | ||
[[Image:mbed-new-file.png|center|alt=mbed New File]] | [[Image:mbed-new-file.png|center|alt=mbed New File]] | ||
| + | |||
[[Image:mbed-name-file.png|center|alt=mbed File Name]] | [[Image:mbed-name-file.png|center|alt=mbed File Name]] | ||
| Line 43: | Line 44: | ||
} | } | ||
} | } | ||
| + | |||
| + | Finally add the mbed-src library to the program. | ||
| + | |||
| + | [[Image:mbed-new-lib.png|center|alt=mbed New File]] | ||
| + | |||
| + | |||
| + | [[Image:mbed-add-lib.png|center|alt=mbed File Name]] | ||
| + | ===Compile Program=== | ||
| + | ===Download and Run Program=== | ||
---- | ---- | ||
[[Bambino-210_Manual/Offline Toolchains|NEXT: Offline Toolchains]] | [[Bambino-210_Manual/Offline Toolchains|NEXT: Offline Toolchains]] | ||
[[Bambino-210_Manual/Introduction|PREVIOUS: Introduction]] | [[Bambino-210_Manual/Introduction|PREVIOUS: Introduction]] | ||
Revision as of 00:27, 21 January 2015
Contents |
Getting Started
This section explains how to develop programs for the Micromint Bambino using the mbed online compiler. Using an online compiler is a great way to get started with mbed development. No local program installations are required on your system. The editor, compiler and linker are maintained by the mbed team and accessible via any Internet connection. The next chapter will cover offline toolchains for projects that require use of a compiler and debugger installed on your system.
Activate mbed.org Account
To use the online compiler you first need a developer account at mbed.org. If you have not done so, please visit mbed.org, click on "Signup" and follow the steps to create an account. If you already have an account, login using your mbed username.
Add Micromint Bambino Platforms
The Micromint Bambino has two USB ports: USB0 for use by your mbed applications and USB1 for mbed development. When you connect your system to USB1 it will recognize the board as a removable flash drive to copy your programs and a serial port that can be used for program output. To add the board to the online compiler, click on the mbed.htm file in the removable flash drive detected by your system.
Equivalent links are included below.
Create Program
Enter the online compiler by selecting the "Compiler" button on the development site. Right click on "My Programs" and select "New Program...".
Select a name for your program. Use "blinky" as our initial program name for a simple application that blinks an LED.
Then create your first program file. Right click on "blinky" and select "New File...". Use "main.cpp" as your main program file.
Paste the following content to your program file.
#include "mbed.h"
DigitalOut myled(LED2);
int main() {
while(1) {
myled = 1;
wait(0.8);
myled = 0;
wait(0.8);
}
}
Finally add the mbed-src library to the program.







