nicolás rodríguez
/
BCD_GUIA2PT2
Voltímetro ADC y BCD
Fork of BCD_GUIA2 by
main.cpp
- Committer:
- nikor97r
- Date:
- 2017-08-19
- Revision:
- 1:b6f946fdfb2f
- Parent:
- 0:246c93030d74
File content as of revision 1:b6f946fdfb2f:
#include "BCDSEG.h" int numero; AnalogIn pot(A0); float p; int unid,dece; int main() { anodoo peinado; peinado.visual(D6,D7,D8,D9,D10,D11,D12); while(1) { p = (pot.read_u16()*0.00005); dece=p; unid=(p*10)-(dece*10); peinado.dual(D4,D5,unid,dece,100); } }