Control LED brightness with analog in

Dependents:   jrh52_a3

Fader.cpp

Committer:
ethanharstad
Date:
2014-06-23
Revision:
0:127c030fa3ca

File content as of revision 0:127c030fa3ca:

#include "Fader.h"

Fader::Fader(PinName in, PinName out) : _in(in), _out(out) {
    _out.period(0.01);
}

void Fader::update() {
    _out = _in;
}