Implement TestAction_DisableLedDriverPwm

This commit is contained in:
László Monda
2017-04-30 04:40:12 +02:00
parent 7f45f1fc0d
commit b7bdceaac4
2 changed files with 5 additions and 1 deletions

View File

@@ -77,7 +77,7 @@ bool BridgeSlaveLedDriverHandler(uint8_t ledDriverId) {
*ledDriverState = LedDriverState_Initialized;
break;
case LedDriverState_Initialized:
I2cAsyncWrite(I2C_ADDRESS_LED_DRIVER_LEFT, ledsBuffer, BUFFER_SIZE);
I2cAsyncWrite(ledDriverAddress, ledsBuffer, BUFFER_SIZE);
break;
}
return true;

View File

@@ -6,6 +6,7 @@
#include "current_keymap.h"
#include "test_states.h"
#include "peripherals/test_led.h"
#include "bridge_slaves/bridge_slave_led_driver.h"
static uint8_t activeLayer = LAYER_ID_BASE;
static uint8_t mouseWheelDivisorCounter = 0;
@@ -90,6 +91,9 @@ void processTestAction(key_action_t testAction) {
case TestAction_DisableKeyMatrixScan:
TestStates.disableKeyMatrixScan = true;
break;
case TestAction_DisableLedDriverPwm:
SetLeds(0);
break;
}
}