Guide
1/12/2018 mbed Starter Kit Experiment Guide - learn.sparkfun.com
https://learn.sparkfun.com/tutorials/mbed-starter-kit-experiment-guide/all 5/65
Click “OK” and you will see your new program appear in your workspace.
Click on “main.cpp” in the pane on the left side to open up our C++ program.
The code imports the mbed.h library, configures the pin for the LPC1768’s onboard LED to output, and blinks the LED forever. It has been copied here for
reference.
#include "mbed.h"
DigitalOut myled(LED1);
int main() {
while(1) {
myled = 1;
wait(0.2);
myled = 0;
wait(0.2);
}
}
On the top bar, click “Compile.”
This will start the compile process and download the program as a binary file. Depending on your browser settings, this might be automatically downloaded. If
you are asked where to download the file, choose your default Downloads folder.
Open up an Explorer (or Finder on OS X) window and navigate to your Downloads folder. You will see your blinky program as a .bin file.
Copy the .bin file to your MBED drive.