Search in sources :

Example 1 with Tsl256xLightSensorDriverController

use of com.leinardi.android.things.deskclock.sensor.Tsl256xLightSensorDriverController in project androidthings-deskclock by leinardi.

the class AndroidThingsModule method provideLightSensorDriverController.

@Singleton
@Provides
LightSensorDriverController provideLightSensorDriverController(@Nullable Tsl256x tsl256x) {
    Tsl256xLightSensorDriverController controller = new Tsl256xLightSensorDriverController();
    controller.setDriver(tsl256x);
    return controller;
}
Also used : Tsl256xLightSensorDriverController(com.leinardi.android.things.deskclock.sensor.Tsl256xLightSensorDriverController) Singleton(javax.inject.Singleton) Provides(dagger.Provides)

Aggregations

Tsl256xLightSensorDriverController (com.leinardi.android.things.deskclock.sensor.Tsl256xLightSensorDriverController)1 Provides (dagger.Provides)1 Singleton (javax.inject.Singleton)1