nicolás rodríguez
/
BCD_GUIA2PT2
Voltímetro ADC y BCD
Fork of BCD_GUIA2 by
BCDSEG.cpp
- Committer:
- nikor97r
- Date:
- 2017-08-12
- Revision:
- 0:246c93030d74
- Child:
- 1:b6f946fdfb2f
File content as of revision 0:246c93030d74:
#include "BCDSEG.h" int anodo[10] = {0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x58,0x00,0x18}; int anodoo::entrada (PinName A, PinName B, PinName C, PinName D) { BusIn dip(A,B,C,D); Sw = dip.read(); return Sw; } void anodoo::visual(PinName A, PinName B, PinName C, PinName D, PinName E, PinName F, PinName G) { _A=A; _B=B; _C=C; _D=D; _E=E; _F=F; _G=G; } void anodoo::bcd(int number) { BusOut display(_G,_F,_E,_D,_C,_B,_A); display=anodo[number]; }