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.
BDCSEG.cpp@0:78c21a02dfc9, 2017-08-19 (annotated)
- Committer:
- LCRodriguez
- Date:
- Sat Aug 19 21:51:52 2017 +0000
- Revision:
- 0:78c21a02dfc9
Conta7seg
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| LCRodriguez | 0:78c21a02dfc9 | 1 | #include "BCDSEG.h" |
| LCRodriguez | 0:78c21a02dfc9 | 2 | |
| LCRodriguez | 0:78c21a02dfc9 | 3 | int An[10]={0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x58,0x00,0x18}; |
| LCRodriguez | 0:78c21a02dfc9 | 4 | int And::entrada(PinName a,PinName b,PinName c,PinName d) |
| LCRodriguez | 0:78c21a02dfc9 | 5 | { |
| LCRodriguez | 0:78c21a02dfc9 | 6 | BusIn dip(a,b,c,d); |
| LCRodriguez | 0:78c21a02dfc9 | 7 | dipS=dip.read(); |
| LCRodriguez | 0:78c21a02dfc9 | 8 | return dipS; |
| LCRodriguez | 0:78c21a02dfc9 | 9 | } |
| LCRodriguez | 0:78c21a02dfc9 | 10 | void And::ve(PinName a,PinName b,PinName c,PinName d,PinName e,PinName f,PinName g) |
| LCRodriguez | 0:78c21a02dfc9 | 11 | { |
| LCRodriguez | 0:78c21a02dfc9 | 12 | a_=a;b_=b;c_=c;d_=d;e_=e;f_=f;g_=g; |
| LCRodriguez | 0:78c21a02dfc9 | 13 | |
| LCRodriguez | 0:78c21a02dfc9 | 14 | } |
| LCRodriguez | 0:78c21a02dfc9 | 15 | void And::bcd(int number) |
| LCRodriguez | 0:78c21a02dfc9 | 16 | { |
| LCRodriguez | 0:78c21a02dfc9 | 17 | BusOut display(g_,f_,e_,d_,c_,b_,a_); |
| LCRodriguez | 0:78c21a02dfc9 | 18 | display=An[number]; |
| LCRodriguez | 0:78c21a02dfc9 | 19 | } |