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.
Dependencies: mbed ultrasonic
main.cpp@2:8938c73c2aa8, 2015-03-10 (annotated)
- Committer:
- hebryn
- Date:
- Tue Mar 10 14:19:02 2015 +0000
- Revision:
- 2:8938c73c2aa8
- Parent:
- 1:21587a66f911
- Child:
- 3:b6f543e4508a
test
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| VegardMidt | 0:017111c9207d | 1 | #include "mbed.h" |
| VegardMidt | 0:017111c9207d | 2 | #include "ultrasonic.h" |
| hebryn | 1:21587a66f911 | 3 | |
| hebryn | 1:21587a66f911 | 4 | PwmOut TX(D9); |
| hebryn | 1:21587a66f911 | 5 | DigitalOut myled(LED1); |
| hebryn | 1:21587a66f911 | 6 | |
| hebryn | 1:21587a66f911 | 7 | int main() { |
| hebryn | 1:21587a66f911 | 8 | TX.period_us(25); |
| hebryn | 1:21587a66f911 | 9 | TX.write(50); |
| hebryn | 1:21587a66f911 | 10 | while(1) { |
| hebryn | 1:21587a66f911 | 11 | |
| hebryn | 1:21587a66f911 | 12 | } |
| hebryn | 1:21587a66f911 | 13 | } |
| hebryn | 2:8938c73c2aa8 | 14 | //DETTE ER EN TEST |