asdasd

Dependencies:   mbed

Committer:
dimmu8410
Date:
Fri Jul 06 19:22:08 2018 +0000
Revision:
0:eaea37aa3d70
asd

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dimmu8410 0:eaea37aa3d70 1 #include "BCDSEG.h"
dimmu8410 0:eaea37aa3d70 2 int anod[16]={0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x58,0x00,0x18,0x08,0x03,0x0b,0x23,0x4f,0x20};
dimmu8410 0:eaea37aa3d70 3 int anodo::entrada(PinName a,PinName b,PinName c,PinName d)
dimmu8410 0:eaea37aa3d70 4 {
dimmu8410 0:eaea37aa3d70 5 BusIn dip(a,b,c,d);
dimmu8410 0:eaea37aa3d70 6 dipSw=dip.read();
dimmu8410 0:eaea37aa3d70 7 return dipSw;
dimmu8410 0:eaea37aa3d70 8 }
dimmu8410 0:eaea37aa3d70 9 void anodo::visual(PinName a,PinName b,PinName c,PinName d,PinName e,PinName f,PinName g)
dimmu8410 0:eaea37aa3d70 10 {
dimmu8410 0:eaea37aa3d70 11 _a=a;_b=b;_c=c;_d=d;_e=e;_f=f;_g=g;
dimmu8410 0:eaea37aa3d70 12
dimmu8410 0:eaea37aa3d70 13 }
dimmu8410 0:eaea37aa3d70 14 void anodo::bcd(int number)
dimmu8410 0:eaea37aa3d70 15 {
dimmu8410 0:eaea37aa3d70 16 BusOut display(_g,_f,_e,_d,_c,_b,_a);
dimmu8410 0:eaea37aa3d70 17 display=anod[number];
dimmu8410 0:eaea37aa3d70 18 }