Added correction for wrong side ledstrip
This commit is contained in:
@@ -91,13 +91,23 @@ void handleSerial()
|
|||||||
break;
|
break;
|
||||||
case 'z':
|
case 'z':
|
||||||
case 'Z':
|
case 'Z':
|
||||||
|
#ifndef LEDSTRIP_WRONG_DIRECTION
|
||||||
InputDispatcher::blinkLeftButton(true);
|
InputDispatcher::blinkLeftButton(true);
|
||||||
InputDispatcher::blinkLeftButton(false);
|
InputDispatcher::blinkLeftButton(false);
|
||||||
|
#else
|
||||||
|
InputDispatcher::blinkRightButton(true);
|
||||||
|
InputDispatcher::blinkRightButton(false);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
case 'U':
|
case 'U':
|
||||||
|
#ifndef LEDSTRIP_WRONG_DIRECTION
|
||||||
InputDispatcher::blinkRightButton(true);
|
InputDispatcher::blinkRightButton(true);
|
||||||
InputDispatcher::blinkRightButton(false);
|
InputDispatcher::blinkRightButton(false);
|
||||||
|
#else
|
||||||
|
InputDispatcher::blinkLeftButton(true);
|
||||||
|
InputDispatcher::blinkLeftButton(false);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user