Test du terminal en entrée (affichage, debug ...)
Dependencies: mbed
main.cpp@1:7f51926123a1, 2021-06-06 (annotated)
- Committer:
- gr91
- Date:
- Sun Jun 06 20:17:29 2021 +0000
- Revision:
- 1:7f51926123a1
- Parent:
- 0:551a0996336c
- Child:
- 2:3f6417fe959d
V0
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 | 1:7f51926123a1 | 9 | pc.printf("Test eu 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 | } |