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.
main.cpp@0:4066e82f0e4c, 2019-02-26 (annotated)
- Committer:
- farahraei
- Date:
- Tue Feb 26 08:28:44 2019 +0000
- Revision:
- 0:4066e82f0e4c
- Child:
- 1:67a2c4f35f98
test de capteur de pression flexiforce
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| farahraei | 0:4066e82f0e4c | 1 | #include "mbed.h" |
| farahraei | 0:4066e82f0e4c | 2 | |
| farahraei | 0:4066e82f0e4c | 3 | //------------------------------------ |
| farahraei | 0:4066e82f0e4c | 4 | // Hyperterminal configuration |
| farahraei | 0:4066e82f0e4c | 5 | // 9600 bauds, 8-bit data, no parity |
| farahraei | 0:4066e82f0e4c | 6 | //------------------------------------ |
| farahraei | 0:4066e82f0e4c | 7 | |
| farahraei | 0:4066e82f0e4c | 8 | Serial pc(SERIAL_TX, SERIAL_RX); |
| farahraei | 0:4066e82f0e4c | 9 | |
| farahraei | 0:4066e82f0e4c | 10 | DigitalOut myled(LED1); |
| farahraei | 0:4066e82f0e4c | 11 | |
| farahraei | 0:4066e82f0e4c | 12 | int main() |
| farahraei | 0:4066e82f0e4c | 13 | { |
| farahraei | 0:4066e82f0e4c | 14 | int i = 1; |
| farahraei | 0:4066e82f0e4c | 15 | pc.printf("Hello World !\n"); |
| farahraei | 0:4066e82f0e4c | 16 | while(1) { |
| farahraei | 0:4066e82f0e4c | 17 | wait(1); |
| farahraei | 0:4066e82f0e4c | 18 | pc.printf("This program runs since %d seconds.\n", i++); |
| farahraei | 0:4066e82f0e4c | 19 | myled = !myled; |
| farahraei | 0:4066e82f0e4c | 20 | } |
| farahraei | 0:4066e82f0e4c | 21 | } |