You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB

//
// JL_LightManager.h
// JL_BLEKit
//
// Created by 李放 on 2021/12/16.
// Copyright © 2021 www.zh-jieli.com. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <JL_BLEKit/JL_FunctionBaseManager.h>
#import <JL_BLEKit/JL_TypeEnum.h>
#import <JL_BLEKit/JL_Tools.h>
NS_ASSUME_NONNULL_BEGIN
@interface JL_LightManager : JL_FunctionBaseManager
#pragma mark ---> 设置灯光
/**
*
* @param lightState
* @param lightMode
* @param red
* @param green 绿
* @param blue
* @param flashIndex index
* @param flashFreqIndex
* @param sceneIndex
* @param hue 0-360
* @param saturation 0-100
* @param lightness 0-100
*/
-(void)cmdSetState:(JL_LightState)lightState
Mode:(JL_LightMode)lightMode
Red:(uint8_t)red
Green:(uint8_t)green
Blue:(uint8_t)blue
FlashInex:(JL_LightFlashModeIndex)flashIndex
FlashFreq:(JL_LightFlashModeFrequency)flashFreqIndex
SceneIndex:(JL_LightSceneMode)sceneIndex
Hue:(uint16_t)hue
Saturation:(uint8_t)saturation
Lightness:(uint8_t)lightness;
@end
NS_ASSUME_NONNULL_END