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:26de4389d8db, 2022-04-17 (annotated)
- Committer:
- osw
- Date:
- Sun Apr 17 14:06:50 2022 +0000
- Revision:
- 0:26de4389d8db
1st commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| osw | 0:26de4389d8db | 1 | #include "mbed.h" |
| osw | 0:26de4389d8db | 2 | |
| osw | 0:26de4389d8db | 3 | AnalogIn ain(p20); |
| osw | 0:26de4389d8db | 4 | Serial pc(USBTX, USBRX); |
| osw | 0:26de4389d8db | 5 | |
| osw | 0:26de4389d8db | 6 | int main(){ |
| osw | 0:26de4389d8db | 7 | float a; |
| osw | 0:26de4389d8db | 8 | while(1){ |
| osw | 0:26de4389d8db | 9 | a = ain * 100.0f; |
| osw | 0:26de4389d8db | 10 | pc.printf("%f\r\n",a); |
| osw | 0:26de4389d8db | 11 | } |
| osw | 0:26de4389d8db | 12 | } |