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:56c7d6542a32, 2022-05-22 (annotated)
- Committer:
- hughbellinger
- Date:
- Sun May 22 20:11:48 2022 +0000
- Revision:
- 0:56c7d6542a32
1
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| hughbellinger | 0:56c7d6542a32 | 1 | Common Annode |
| hughbellinger | 0:56c7d6542a32 | 2 | #include "mbed.h" |
| hughbellinger | 0:56c7d6542a32 | 3 | BusOut a(p15,p16,p17,p18,p19,p20,p21,p22); |
| hughbellinger | 0:56c7d6542a32 | 4 | int main() |
| hughbellinger | 0:56c7d6542a32 | 5 | { |
| hughbellinger | 0:56c7d6542a32 | 6 | a=0xC0; |
| hughbellinger | 0:56c7d6542a32 | 7 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 8 | a=0xF9; |
| hughbellinger | 0:56c7d6542a32 | 9 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 10 | a=0x5A4; |
| hughbellinger | 0:56c7d6542a32 | 11 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 12 | a=0xB0; |
| hughbellinger | 0:56c7d6542a32 | 13 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 14 | a=0x99; |
| hughbellinger | 0:56c7d6542a32 | 15 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 16 | a=0x92; |
| hughbellinger | 0:56c7d6542a32 | 17 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 18 | a=0x82; |
| hughbellinger | 0:56c7d6542a32 | 19 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 20 | a=0xF8; |
| hughbellinger | 0:56c7d6542a32 | 21 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 22 | a=0x80; |
| hughbellinger | 0:56c7d6542a32 | 23 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 24 | a=0x90; |
| hughbellinger | 0:56c7d6542a32 | 25 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 26 | } |
| hughbellinger | 0:56c7d6542a32 | 27 | |
| hughbellinger | 0:56c7d6542a32 | 28 | |
| hughbellinger | 0:56c7d6542a32 | 29 | Common Cathode |
| hughbellinger | 0:56c7d6542a32 | 30 | #include "mbed.h" |
| hughbellinger | 0:56c7d6542a32 | 31 | BusOut a(p15,p16,p17,p18,p19,p20,p21,p22); |
| hughbellinger | 0:56c7d6542a32 | 32 | int main() |
| hughbellinger | 0:56c7d6542a32 | 33 | { |
| hughbellinger | 0:56c7d6542a32 | 34 | a=0x3F; |
| hughbellinger | 0:56c7d6542a32 | 35 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 36 | a=0x06; |
| hughbellinger | 0:56c7d6542a32 | 37 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 38 | a=0x5B; |
| hughbellinger | 0:56c7d6542a32 | 39 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 40 | a=0x4F; |
| hughbellinger | 0:56c7d6542a32 | 41 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 42 | a=0x66; |
| hughbellinger | 0:56c7d6542a32 | 43 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 44 | a=0x6D; |
| hughbellinger | 0:56c7d6542a32 | 45 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 46 | a=0x7D; |
| hughbellinger | 0:56c7d6542a32 | 47 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 48 | a=0x07; |
| hughbellinger | 0:56c7d6542a32 | 49 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 50 | a=0x7F; |
| hughbellinger | 0:56c7d6542a32 | 51 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 52 | a=0x6F; |
| hughbellinger | 0:56c7d6542a32 | 53 | wait(1); |
| hughbellinger | 0:56c7d6542a32 | 54 | } |