UNPKG

rxpoweredup

Version:

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

14 lines (13 loc) 869 B
import { HUB_ACTIONS_FEATURE_FACTORY, HUB_PROPERTY_FEATURE_FACTORY, MOTORS_FEATURE_FACTORY, PORTS_FEATURE_FACTORY, RGB_LIGHT_FEATURE_FACTORY } from '../hub'; import { HubPropertiesFeatureFactory } from './hub-properties'; import { MotorsFeatureFactory } from './motors'; import { PortsFeatureFactory } from './ports'; import { HubActionsFeatureFactory } from './hub-actions'; import { RgbLightFeatureFactory } from './rgb-light-feature'; export function registerFeaturesServices(container) { container.register(HUB_PROPERTY_FEATURE_FACTORY, HubPropertiesFeatureFactory); container.register(MOTORS_FEATURE_FACTORY, MotorsFeatureFactory); container.register(PORTS_FEATURE_FACTORY, PortsFeatureFactory); container.register(HUB_ACTIONS_FEATURE_FACTORY, HubActionsFeatureFactory); container.register(RGB_LIGHT_FEATURE_FACTORY, RgbLightFeatureFactory); }