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
Fork of BusInOut_HelloWorld by
main.cpp@0:91a6f3d1b2f0, 2013-02-12 (annotated)
- Committer:
- mbed_official
- Date:
- Tue Feb 12 11:26:02 2013 +0000
- Revision:
- 0:91a6f3d1b2f0
- Child:
- 1:075e57eccf3a
BusInOut HelloWorld
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mbed_official | 0:91a6f3d1b2f0 | 1 | #include "mbed.h" |
| mbed_official | 0:91a6f3d1b2f0 | 2 | |
| mbed_official | 0:91a6f3d1b2f0 | 3 | BusInOut pins(p5, p10, p7); |
| mbed_official | 0:91a6f3d1b2f0 | 4 | |
| mbed_official | 0:91a6f3d1b2f0 | 5 | int main() { |
| mbed_official | 0:91a6f3d1b2f0 | 6 | pins.output(); |
| mbed_official | 0:91a6f3d1b2f0 | 7 | pins = 0x3; |
| mbed_official | 0:91a6f3d1b2f0 | 8 | wait(1); |
| mbed_official | 0:91a6f3d1b2f0 | 9 | pins.input(); |
| mbed_official | 0:91a6f3d1b2f0 | 10 | wait(1); |
| mbed_official | 0:91a6f3d1b2f0 | 11 | if(pins == 0x6) { |
| mbed_official | 0:91a6f3d1b2f0 | 12 | printf("Hello!\n"); |
| mbed_official | 0:91a6f3d1b2f0 | 13 | } |
| mbed_official | 0:91a6f3d1b2f0 | 14 | } |
