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:47728cea4555, 2016-11-30 (annotated)
- Committer:
- akshay28
- Date:
- Wed Nov 30 10:34:26 2016 +0000
- Revision:
- 0:47728cea4555
seven segment display
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
akshay28 | 0:47728cea4555 | 1 | #include "mbed.h" |
akshay28 | 0:47728cea4555 | 2 | |
akshay28 | 0:47728cea4555 | 3 | BusOut port(p5,p6,p7,p8,p9,p10,p11,p12); |
akshay28 | 0:47728cea4555 | 4 | |
akshay28 | 0:47728cea4555 | 5 | |
akshay28 | 0:47728cea4555 | 6 | main() |
akshay28 | 0:47728cea4555 | 7 | { |
akshay28 | 0:47728cea4555 | 8 | while(1) |
akshay28 | 0:47728cea4555 | 9 | |
akshay28 | 0:47728cea4555 | 10 | { |
akshay28 | 0:47728cea4555 | 11 | |
akshay28 | 0:47728cea4555 | 12 | port=0X40; |
akshay28 | 0:47728cea4555 | 13 | wait(0.5); |
akshay28 | 0:47728cea4555 | 14 | port=0X79; |
akshay28 | 0:47728cea4555 | 15 | wait(0.5); |
akshay28 | 0:47728cea4555 | 16 | port=0X24; |
akshay28 | 0:47728cea4555 | 17 | wait(0.5); |
akshay28 | 0:47728cea4555 | 18 | port=0X30; |
akshay28 | 0:47728cea4555 | 19 | wait(0.5); |
akshay28 | 0:47728cea4555 | 20 | port=0X19; |
akshay28 | 0:47728cea4555 | 21 | wait(0.5); |
akshay28 | 0:47728cea4555 | 22 | port=0X12; |
akshay28 | 0:47728cea4555 | 23 | wait(0.5); |
akshay28 | 0:47728cea4555 | 24 | port=0X02; |
akshay28 | 0:47728cea4555 | 25 | wait(0.5); |
akshay28 | 0:47728cea4555 | 26 | port=0Xf8; |
akshay28 | 0:47728cea4555 | 27 | wait(0.5); |
akshay28 | 0:47728cea4555 | 28 | port=0X00; |
akshay28 | 0:47728cea4555 | 29 | wait(0.5); |
akshay28 | 0:47728cea4555 | 30 | port=0X10; |
akshay28 | 0:47728cea4555 | 31 | wait(0.5); |
akshay28 | 0:47728cea4555 | 32 | port=0X08; |
akshay28 | 0:47728cea4555 | 33 | wait(0.5); |
akshay28 | 0:47728cea4555 | 34 | port=0X00; |
akshay28 | 0:47728cea4555 | 35 | wait(0.5); |
akshay28 | 0:47728cea4555 | 36 | port=0X46; |
akshay28 | 0:47728cea4555 | 37 | wait(0.5); |
akshay28 | 0:47728cea4555 | 38 | port=0X40; |
akshay28 | 0:47728cea4555 | 39 | wait(0.5); |
akshay28 | 0:47728cea4555 | 40 | port=0X06; |
akshay28 | 0:47728cea4555 | 41 | wait(0.5); |
akshay28 | 0:47728cea4555 | 42 | port=0X0e; |
akshay28 | 0:47728cea4555 | 43 | |
akshay28 | 0:47728cea4555 | 44 | } |
akshay28 | 0:47728cea4555 | 45 | } |