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.
Fork of ele350 by
Diff: Led.cpp
- Revision:
- 15:8c0d195355d2
- Parent:
- 14:5d3bd2e4ac91
- Child:
- 16:085b9b2a9343
diff -r 5d3bd2e4ac91 -r 8c0d195355d2 Led.cpp
--- a/Led.cpp Thu Nov 19 12:47:08 2015 +0000
+++ b/Led.cpp Thu Nov 19 13:06:59 2015 +0000
@@ -15,13 +15,13 @@
void Led::On() {
this->pin->write(1);
- this->isOn = true;
+ this->isSwitchedOn = true;
}
void Led::Off(){
this->pin->write(0);
- this->isOn = false;
+ this->isSwitchedOn = false;
}
- bool Led::getIsOn(){
- return this->isOn;
+ bool Led::getIsSwitchenOn(){
+ return this->isSwitchedOn;
}
