add module ambient lighting (#142)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { IsBoolean, IsInt } from "class-validator";
|
||||
|
||||
import type { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
|
||||
export class AmbientLightingValidation
|
||||
implements
|
||||
Omit<
|
||||
Protobuf.ModuleConfig_AmbientLightingConfig,
|
||||
keyof Protobuf.native.Message
|
||||
>
|
||||
{
|
||||
@IsBoolean()
|
||||
ledState: boolean;
|
||||
|
||||
@IsInt()
|
||||
current: number;
|
||||
|
||||
@IsInt()
|
||||
red: number;
|
||||
|
||||
@IsInt()
|
||||
green: number;
|
||||
|
||||
@IsInt()
|
||||
blue: number;
|
||||
}
|
||||
Reference in New Issue
Block a user