Extract UsbCommand_SetLedPwmBrightness() into its own file.

This commit is contained in:
László Monda
2017-11-05 18:08:35 +01:00
parent 84ffe50dac
commit 45420a348b
4 changed files with 22 additions and 12 deletions
@@ -0,0 +1,10 @@
#include "usb_protocol_handler.h"
#include "slave_drivers/uhk_module_driver.h"
#include "led_pwm.h"
void UsbCommand_SetLedPwmBrightness(void)
{
uint8_t brightnessPercent = GenericHidInBuffer[1];
LedPwm_SetBrightness(brightnessPercent);
UhkModuleStates[UhkModuleDriverId_LeftKeyboardHalf].sourceVars.ledPwmBrightness = brightnessPercent;
}
@@ -0,0 +1,8 @@
#ifndef __USB_COMMAND_SET_LED_PWM_BRIGHTNESS_H__
#define __USB_COMMAND_SET_LED_PWM_BRIGHTNESS_H__
// Functions:
void UsbCommand_SetLedPwmBrightness(void);
#endif