nicolás rodríguez
/
BCD_GUIA2
7 segmetobcd
main.cpp@0:246c93030d74, 2017-08-12 (annotated)
- Committer:
- nikor97r
- Date:
- Sat Aug 12 21:54:13 2017 +0000
- Revision:
- 0:246c93030d74
7 segmetobcd
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nikor97r | 0:246c93030d74 | 1 | #include "BCDSEG.h" |
nikor97r | 0:246c93030d74 | 2 | #include "mbed.h" |
nikor97r | 0:246c93030d74 | 3 | |
nikor97r | 0:246c93030d74 | 4 | int numero; |
nikor97r | 0:246c93030d74 | 5 | |
nikor97r | 0:246c93030d74 | 6 | int main() |
nikor97r | 0:246c93030d74 | 7 | { |
nikor97r | 0:246c93030d74 | 8 | anodoo peinado; |
nikor97r | 0:246c93030d74 | 9 | peinado.visual(D6,D7,D8,D9,D10,D11,D12); |
nikor97r | 0:246c93030d74 | 10 | while(1) |
nikor97r | 0:246c93030d74 | 11 | { |
nikor97r | 0:246c93030d74 | 12 | numero = peinado.entrada(D2,D3,D4,D5); |
nikor97r | 0:246c93030d74 | 13 | |
nikor97r | 0:246c93030d74 | 14 | |
nikor97r | 0:246c93030d74 | 15 | |
nikor97r | 0:246c93030d74 | 16 | peinado.bcd(numero); |
nikor97r | 0:246c93030d74 | 17 | wait(0.5); |
nikor97r | 0:246c93030d74 | 18 | |
nikor97r | 0:246c93030d74 | 19 | |
nikor97r | 0:246c93030d74 | 20 | |
nikor97r | 0:246c93030d74 | 21 | } |
nikor97r | 0:246c93030d74 | 22 | } |