Browse Source

ändere Datentyp LED für ControlLED und getLED

Tobias Müller 5 years ago
parent
commit
cead4d3a4d
2 changed files with 4 additions and 4 deletions
  1. 2 2
      HSA_LCD_Shield.cpp
  2. 2 2
      HSA_LCD_Shield.h

+ 2 - 2
HSA_LCD_Shield.cpp

@@ -326,7 +326,7 @@ byte HSA_LCD_Shield::returnAddress(void){
 
 ////////////////////               Control LEDs             ////////////////////
 
-bool HSA_LCD_Shield::controlLED(char ledPin, bool state) {
+bool HSA_LCD_Shield::controlLED(byte ledPin, bool state) {
 
   // Checks, whether LED-Pins are configured
   if(this->__leds) {
@@ -351,7 +351,7 @@ bool HSA_LCD_Shield::controlLED(char ledPin, bool state) {
 
 ////////////////////               Get LED state            ////////////////////
 
-bool HSA_LCD_Shield::getLED(char ledPin) {
+bool HSA_LCD_Shield::getLED(byte ledPin) {
 
   // Exit function and return the value of chosen LED
   if(ledPin == LED_GREEN) return !digitalRead(this->__ledGreen);

+ 2 - 2
HSA_LCD_Shield.h

@@ -497,7 +497,7 @@ byte returnAddress(void);
  * @return true LED control success
  * @return false LED control not success
  */
-bool controlLED(char ledPin, bool state);
+bool controlLED(byte ledPin, bool state);
 
 ////////////////////               Get LED state            ////////////////////
 
@@ -509,7 +509,7 @@ bool controlLED(char ledPin, bool state);
  * @return false LED is off or LED is unknown
  * @return true LED in on
  */
-bool getLED(char ledPin);
+bool getLED(byte ledPin);
 
 ////////////////////          Get the pressed Button        ////////////////////