UNPKG

rxpoweredup

Version:

A Typescript RxJS-based library for controlling LEGO Powered UP hubs & peripherals.

12 lines (11 loc) 789 B
import { Observable } from 'rxjs'; import { ColorDescriptor, IOutboundMessenger, IRgbLightFeature, PortCommandExecutionStatus } from '../../hub'; import { IRgbLightCommandsFactory } from './i-rgb-light-commands-factory'; import { IPortInputFormatSetupMessageFactory } from '../i-port-input-format-setup-message-factory'; export declare class RgbLightFeature implements IRgbLightFeature { private readonly messenger; private readonly ledCommandsFactory; private readonly portInputSetupMessageFactory; constructor(messenger: IOutboundMessenger, ledCommandsFactory: IRgbLightCommandsFactory, portInputSetupMessageFactory: IPortInputFormatSetupMessageFactory); setRgbColor(portId: number, color: ColorDescriptor, modeId?: number): Observable<PortCommandExecutionStatus>; }