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.
Dependents: m3Dpi MQTT-Thermostat-example Final_project_Tran Final_project_Tran ... more
effects/FixedColorEffect.cpp@4:a7a26506c62f, 2015-10-22 (annotated)
- Committer:
- sillevl
- Date:
- Thu Oct 22 17:17:13 2015 +0000
- Revision:
- 4:a7a26506c62f
- Parent:
- 3:edc6e64bfc65
code cleanup
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sillevl | 3:edc6e64bfc65 | 1 | |
sillevl | 3:edc6e64bfc65 | 2 | #include "FixedColorEffect.h" |
sillevl | 3:edc6e64bfc65 | 3 | |
sillevl | 4:a7a26506c62f | 4 | FixedColorEffect::FixedColorEffect(RGB* led, Color* color) : Effect(led) |
sillevl | 4:a7a26506c62f | 5 | { |
sillevl | 3:edc6e64bfc65 | 6 | this->color = color; |
sillevl | 3:edc6e64bfc65 | 7 | } |
sillevl | 3:edc6e64bfc65 | 8 | |
sillevl | 4:a7a26506c62f | 9 | FixedColorEffect::~FixedColorEffect() |
sillevl | 4:a7a26506c62f | 10 | { |
sillevl | 4:a7a26506c62f | 11 | delete color; |
sillevl | 4:a7a26506c62f | 12 | } |
sillevl | 4:a7a26506c62f | 13 | |
sillevl | 4:a7a26506c62f | 14 | void FixedColorEffect::run() |
sillevl | 4:a7a26506c62f | 15 | { |
sillevl | 4:a7a26506c62f | 16 | led->setColor(color); |
sillevl | 3:edc6e64bfc65 | 17 | } |