Alberto Piganti
/
blip_serial
miniBLIP usb serial hello world
Fork of USBSerial_HelloWorld by
main.cpp@10:dc64a826c87b, 2015-11-29 (annotated)
- Committer:
- pighixxx
- Date:
- Sun Nov 29 11:51:13 2015 +0000
- Revision:
- 10:dc64a826c87b
- Parent:
- 9:d88699a0905a
- Child:
- 11:4d863ea0d088
miniBLIP usb serial hello world
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
samux | 7:5e693654d5b4 | 1 | #include "mbed.h" |
samux | 7:5e693654d5b4 | 2 | #include "USBSerial.h" |
samux | 7:5e693654d5b4 | 3 | |
samux | 7:5e693654d5b4 | 4 | //Virtual serial port over USB |
samux | 7:5e693654d5b4 | 5 | USBSerial serial; |
samux | 7:5e693654d5b4 | 6 | |
samux | 7:5e693654d5b4 | 7 | int main(void) { |
pighixxx | 10:dc64a826c87b | 8 | serial.printf("miniBlip\r\n"); |
samux | 7:5e693654d5b4 | 9 | while(1) |
samux | 7:5e693654d5b4 | 10 | { |
pighixxx | 10:dc64a826c87b | 11 | serial.printf("Hello World\r\n"); |
samux | 9:d88699a0905a | 12 | wait(1); |
samux | 7:5e693654d5b4 | 13 | } |
samux | 7:5e693654d5b4 | 14 | } |