Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fader.cpp@0:127c030fa3ca, 2014-06-23 (annotated)
- Committer:
- ethanharstad
- Date:
- Mon Jun 23 20:10:51 2014 +0000
- Revision:
- 0:127c030fa3ca
First fader implementation
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ethanharstad | 0:127c030fa3ca | 1 | #include "Fader.h" |
| ethanharstad | 0:127c030fa3ca | 2 | |
| ethanharstad | 0:127c030fa3ca | 3 | Fader::Fader(PinName in, PinName out) : _in(in), _out(out) { |
| ethanharstad | 0:127c030fa3ca | 4 | _out.period(0.01); |
| ethanharstad | 0:127c030fa3ca | 5 | } |
| ethanharstad | 0:127c030fa3ca | 6 | |
| ethanharstad | 0:127c030fa3ca | 7 | void Fader::update() { |
| ethanharstad | 0:127c030fa3ca | 8 | _out = _in; |
| ethanharstad | 0:127c030fa3ca | 9 | } |