Marvin Villamizar
/
DECO_7_BCD_DYNAMIC
asdasd
main.cpp@0:751d972986e7, 2018-07-06 (annotated)
- Committer:
- dimmu8410
- Date:
- Fri Jul 06 19:22:42 2018 +0000
- Revision:
- 0:751d972986e7
asdasd
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dimmu8410 | 0:751d972986e7 | 1 | #include "BCDSEG.h" |
dimmu8410 | 0:751d972986e7 | 2 | |
dimmu8410 | 0:751d972986e7 | 3 | Serial pc(USBTX,USBRX); |
dimmu8410 | 0:751d972986e7 | 4 | //DigitalOut Eone(D4); |
dimmu8410 | 0:751d972986e7 | 5 | //DigitalOut Etwo(D5); |
dimmu8410 | 0:751d972986e7 | 6 | //void duo(int uni, int dec); |
dimmu8410 | 0:751d972986e7 | 7 | int numero; |
dimmu8410 | 0:751d972986e7 | 8 | int main() { |
dimmu8410 | 0:751d972986e7 | 9 | anodo leidy; |
dimmu8410 | 0:751d972986e7 | 10 | leidy.visual(D6,D7,D8,D9,D10,D11,D12);// EN EL DISPLAY EL ORDEN ES (G,F,E,D,C,B,A); |
dimmu8410 | 0:751d972986e7 | 11 | while(1) |
dimmu8410 | 0:751d972986e7 | 12 | { |
dimmu8410 | 0:751d972986e7 | 13 | for(int d=0;d<6;d++) |
dimmu8410 | 0:751d972986e7 | 14 | { |
dimmu8410 | 0:751d972986e7 | 15 | for(int f=0;f<10;f++) |
dimmu8410 | 0:751d972986e7 | 16 | { |
dimmu8410 | 0:751d972986e7 | 17 | leidy.dual(D4,D5,f,d,2000); |
dimmu8410 | 0:751d972986e7 | 18 | } |
dimmu8410 | 0:751d972986e7 | 19 | } |
dimmu8410 | 0:751d972986e7 | 20 | |
dimmu8410 | 0:751d972986e7 | 21 | |
dimmu8410 | 0:751d972986e7 | 22 | } |
dimmu8410 | 0:751d972986e7 | 23 | } |
dimmu8410 | 0:751d972986e7 | 24 | void duo(int uni, int dec) |
dimmu8410 | 0:751d972986e7 | 25 | { |
dimmu8410 | 0:751d972986e7 | 26 | |
dimmu8410 | 0:751d972986e7 | 27 | } |