Use the hardware PwmOut to pulsate an LED (or something else), with selectable active high/low, customisable intensity function, gamma correction, and number of brightness levels.
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
10:1ade8e824939 | 2015-05-18 | huliyang | Debouncer: uint16_t _levels is enough for anyone; private Ticker. |
9:b40252f5fee7 | 2015-04-28 | huliyang | Reflow license text. |
8:ddedf56b2eb0 | 2015-04-27 | huliyang | Pulsator::fun(): parametrise over intensity function. |
7:7abc04b4c474 | 2015-04-26 | huliyang | float constants |
6:5eeb1acc1c50 | 2015-04-26 | huliyang | Pulsator: named parameter idiom; various fixes |
5:26cc18306d95 | 2015-04-24 | huliyang | Pulsator& Pulsator::operator=(bool): idempotentcy; ; * Also, query current state via Pulsator::operator bool() |
4:55b287904199 | 2015-04-24 | huliyang | Pulsator::step(): floating-point subtleties. |
3:a789d816b3a2 | 2015-04-24 | huliyang | Pulsator::enable(): schoolboy off-by-one error. |
2:e351afc2a3a8 | 2015-04-24 | huliyang | Clarify documentation. |
1:bcddb9898625 | 2015-04-24 | huliyang | Doxygenate |
0:dda7f6f55dc1 | 2015-04-24 | huliyang | init |