Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp@0:c86e9047cf33, 2018-12-24 (annotated)
- Committer:
- taknokolat
- Date:
- Mon Dec 24 07:54:24 2018 +0000
- Revision:
- 0:c86e9047cf33
a
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| taknokolat | 0:c86e9047cf33 | 1 | #include "mbed.h" |
| taknokolat | 0:c86e9047cf33 | 2 | |
| taknokolat | 0:c86e9047cf33 | 3 | Serial g_Serial1(USBTX,USBRX,115200); |
| taknokolat | 0:c86e9047cf33 | 4 | //Serial g_serial2(PB_6, PB_7);skipper |
| taknokolat | 0:c86e9047cf33 | 5 | Serial g_serial2(PA_9, PA_10); |
| taknokolat | 0:c86e9047cf33 | 6 | int main() { |
| taknokolat | 0:c86e9047cf33 | 7 | g_serial2.baud(115200); |
| taknokolat | 0:c86e9047cf33 | 8 | |
| taknokolat | 0:c86e9047cf33 | 9 | while(1) { |
| taknokolat | 0:c86e9047cf33 | 10 | g_serial2.printf( "S"); |
| taknokolat | 0:c86e9047cf33 | 11 | g_serial2.printf( "N"); |
| taknokolat | 0:c86e9047cf33 | 12 | g_serial2.printf( "A"); |
| taknokolat | 0:c86e9047cf33 | 13 | g_serial2.printf( "A"); |
| taknokolat | 0:c86e9047cf33 | 14 | g_serial2.printf( "F"); |
| taknokolat | 0:c86e9047cf33 | 15 | |
| taknokolat | 0:c86e9047cf33 | 16 | //wait(1.0); |
| taknokolat | 0:c86e9047cf33 | 17 | g_Serial1.printf("a\r\n"); |
| taknokolat | 0:c86e9047cf33 | 18 | wait_ms(31); |
| taknokolat | 0:c86e9047cf33 | 19 | } |
| taknokolat | 0:c86e9047cf33 | 20 | } |