![](/media/cache/profiles/avatarGR_79eyiBn.png.50x50_q85.png)
Test du terminal en entrée (affichage, debug ...)
main.cpp@2:3f6417fe959d, 2021-06-06 (annotated)
- Committer:
- gr91
- Date:
- Sun Jun 06 20:34:00 2021 +0000
- Revision:
- 2:3f6417fe959d
- Parent:
- 1:7f51926123a1
v1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gr91 | 0:551a0996336c | 1 | #include "mbed.h" |
gr91 | 0:551a0996336c | 2 | |
gr91 | 1:7f51926123a1 | 3 | Serial pc(SERIAL_TX, SERIAL_RX); |
gr91 | 1:7f51926123a1 | 4 | |
gr91 | 0:551a0996336c | 5 | |
gr91 | 0:551a0996336c | 6 | int main() |
gr91 | 0:551a0996336c | 7 | { |
gr91 | 1:7f51926123a1 | 8 | int i=0; |
gr91 | 2:3f6417fe959d | 9 | pc.printf("Test du terminal \n\r"); // Write terminal |
gr91 | 0:551a0996336c | 10 | while(1) { |
gr91 | 1:7f51926123a1 | 11 | pc.printf("compteur = %D \n\r",i++); // Write terminal |
gr91 | 1:7f51926123a1 | 12 | wait(1); |
gr91 | 0:551a0996336c | 13 | } |
gr91 | 0:551a0996336c | 14 | } |