Daisy Ramirez / ADC

Dependencies:   ADC

Dependents:   termometro

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ADC.cpp Source File

ADC.cpp

00001 #include "ADC.h"
00002 
00003 double adc::adcx(PinName Sen)
00004 {
00005     _Sen=Sen;
00006     double ent;
00007     AnalogIn lec1(_Sen);
00008     ent = lec1.read_u16();
00009     wait(0.05);
00010     ent = ent * 0.000050354;
00011     return ent;
00012 }