JIAWEI ZHANG / Mbed 2 deprecated ele350ku

Dependencies:   mbed

Dependents:   Exercise8_1-2-3

Fork of ele350 by JIAWEI ZHANG

Revision:
15:8c0d195355d2
Parent:
14:5d3bd2e4ac91
Child:
16:085b9b2a9343
--- 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;
 }