
Sample code for testing mbed LPC1114FN28 UART
main.cpp@0:f5fca6956958, 2014-04-27 (annotated)
- Committer:
- ytsuboi
- Date:
- Sun Apr 27 07:56:25 2014 +0000
- Revision:
- 0:f5fca6956958
Initial release
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ytsuboi | 0:f5fca6956958 | 1 | #include "mbed.h" |
ytsuboi | 0:f5fca6956958 | 2 | |
ytsuboi | 0:f5fca6956958 | 3 | Serial pc(dp16, dp15); // tx, rx |
ytsuboi | 0:f5fca6956958 | 4 | |
ytsuboi | 0:f5fca6956958 | 5 | int main() { |
ytsuboi | 0:f5fca6956958 | 6 | while(1){ |
ytsuboi | 0:f5fca6956958 | 7 | pc.printf("Hello World!\r\n"); |
ytsuboi | 0:f5fca6956958 | 8 | wait(1); |
ytsuboi | 0:f5fca6956958 | 9 | } |
ytsuboi | 0:f5fca6956958 | 10 | } |