HM Yoong
/
Teensy_MBED_BLINKY
Test out DigitalOut on Teensy 3.1
main.cpp
- Committer:
- yoonghm
- Date:
- 2015-07-26
- Revision:
- 1:e452bc59d245
- Parent:
- 0:8495741fab9c
File content as of revision 1:e452bc59d245:
// MBED_BLINKY with Teensy 3.1 // You need to update the latest USBDevice library #include "mbed.h" #include "USBSerial.h" DigitalOut myled(LED1); // Onboard LED USBSerial pc; // Virtual serial port over USB int main() { while(1) { pc.printf("Hello World\r\n"); myled = 1; wait(0.2); myled = 0; wait(0.2); } }