This is the firmware for the base version of the OpenSTEM Ranging Board hardware.

Dependencies:   Servo USBDevice mbed

Fork of USBSerial_HelloWorld by Samuel Mokrani

main.cpp

Committer:
samux
Date:
2012-12-20
Revision:
8:90f8322a65f8
Parent:
7:5e693654d5b4
Child:
9:d88699a0905a

File content as of revision 8:90f8322a65f8:

#include "mbed.h"
#include "USBSerial.h"
 
//Virtual serial port over USB
USBSerial serial;
DigitalOut l1(LED1);
 
int main(void) {
    int i = 0;
    
    while(1)
    {
        serial.printf("I am a virtual serial port: %d\r\n", i++);
        wait(0.1);
        l1 = !l1;
    }
}