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:74befa7c834e, 2016-09-02 (annotated)
- Committer:
- yu10078999
- Date:
- Fri Sep 02 06:31:37 2016 +0000
- Revision:
- 0:74befa7c834e
- Child:
- 1:3b2422723265
0
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| yu10078999 | 0:74befa7c834e | 1 | #include "mbed.h" |
| yu10078999 | 0:74befa7c834e | 2 | BusOut seg(D0,D5,D4,D3,D2,D6,D7); |
| yu10078999 | 0:74befa7c834e | 3 | |
| yu10078999 | 0:74befa7c834e | 4 | int main() { |
| yu10078999 | 0:74befa7c834e | 5 | const int number[10]= { |
| yu10078999 | 0:74befa7c834e | 6 | 0x7E, |
| yu10078999 | 0:74befa7c834e | 7 | 0x30, |
| yu10078999 | 0:74befa7c834e | 8 | 0x6D, |
| yu10078999 | 0:74befa7c834e | 9 | 0x79, |
| yu10078999 | 0:74befa7c834e | 10 | 0x33, |
| yu10078999 | 0:74befa7c834e | 11 | 0x5B, |
| yu10078999 | 0:74befa7c834e | 12 | 0x1F, |
| yu10078999 | 0:74befa7c834e | 13 | 0x70, |
| yu10078999 | 0:74befa7c834e | 14 | 0x7F, |
| yu10078999 | 0:74befa7c834e | 15 | 0x73 |
| yu10078999 | 0:74befa7c834e | 16 | }; |
| yu10078999 | 0:74befa7c834e | 17 | while(1) { |
| yu10078999 | 0:74befa7c834e | 18 | for(int i=0;i<=9;i++){ |
| yu10078999 | 0:74befa7c834e | 19 | seg=number[i]; |
| yu10078999 | 0:74befa7c834e | 20 | wait(0.5); |
| yu10078999 | 0:74befa7c834e | 21 | } |
| yu10078999 | 0:74befa7c834e | 22 | } |
| yu10078999 | 0:74befa7c834e | 23 | } |