add module ambient lighting (#142)

This commit is contained in:
Ben Lipsey
2023-11-05 18:03:57 +10:00
committed by GitHub
parent 68b207b67f
commit 3ec9f6d322
4 changed files with 101 additions and 3 deletions
@@ -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;
}