![](/media/cache/group/mebd_thumbnail.jpg.50x50_q85.jpg)
F303がUART2で文字列を送信する予定だった・
Dependencies: mbed
main.cpp@0:be0621ef749a, 2022-05-03 (annotated)
- Committer:
- MatsumotoKouki
- Date:
- Tue May 03 06:34:01 2022 +0000
- Revision:
- 0:be0621ef749a
F303 send UART;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MatsumotoKouki | 0:be0621ef749a | 1 | #include "mbed.h" |
MatsumotoKouki | 0:be0621ef749a | 2 | |
MatsumotoKouki | 0:be0621ef749a | 3 | Serial F303(PA_2,PA_3); |
MatsumotoKouki | 0:be0621ef749a | 4 | |
MatsumotoKouki | 0:be0621ef749a | 5 | int main(){ |
MatsumotoKouki | 0:be0621ef749a | 6 | F303.baud(9600); |
MatsumotoKouki | 0:be0621ef749a | 7 | for(int i=14;i<113;i++){ |
MatsumotoKouki | 0:be0621ef749a | 8 | F303.printf("%c\r\n",i); |
MatsumotoKouki | 0:be0621ef749a | 9 | wait(2); |
MatsumotoKouki | 0:be0621ef749a | 10 | } |
MatsumotoKouki | 0:be0621ef749a | 11 | printf("finished\r\n"); |
MatsumotoKouki | 0:be0621ef749a | 12 | return 0; |
MatsumotoKouki | 0:be0621ef749a | 13 | } |