Remove some unused sync I2C calls.

This commit is contained in:
László Monda
2017-03-18 02:02:56 +01:00
parent bb9a39d999
commit afab1db73c
3 changed files with 1 additions and 8 deletions

View File

@@ -8,6 +8,6 @@ uint8_t LedDisplayBrightness = 0xff;
void LedDisplay_SetLayerLed(uint8_t layerId) {
for (uint8_t i = 0; i < LAYER_COUNT; i++) {
LedDriver_WriteRegister(I2C_ADDRESS_LED_DRIVER_LEFT, LAYER_LED_FIRST + (i * LAYER_LED_DISTANCE), LedDisplayBrightness * (layerId == i + 1));
// LedDriver_WriteRegister(I2C_ADDRESS_LED_DRIVER_LEFT, LAYER_LED_FIRST + (i * LAYER_LED_DISTANCE), LedDisplayBrightness * (layerId == i + 1));
}
}

View File

@@ -1,12 +1,6 @@
#include "led_driver.h"
#include "i2c_addresses.h"
void LedDriver_WriteRegister(uint8_t i2cAddress, uint8_t reg, uint8_t val)
{
uint8_t buffer[] = {reg, val};
I2cWrite(I2C_MAIN_BUS_BASEADDR, i2cAddress, buffer, sizeof(buffer));
}
void LedDriver_InitAllLeds(char isEnabled)
{
CLOCK_EnableClock(LED_DRIVER_SDB_CLOCK);

View File

@@ -44,7 +44,6 @@
// Functions:
extern void LedDriver_WriteRegister(uint8_t i2cAddress, uint8_t reg, uint8_t val);
extern void LedDriver_InitAllLeds(char isEnabled);
#endif