Search in sources :

Example 1 with MLCD20x4Button

use of org.openhab.binding.tinkerforge.internal.model.MLCD20x4Button in project openhab1-addons by openhab.

the class MBrickletLCD20x4Impl method initSubDevices.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @generated NOT
     */
@Override
public void initSubDevices() {
    ModelFactory factory = ModelFactory.eINSTANCE;
    for (int i = 0; i < 4; i++) {
        MLCD20x4Button mButton = factory.createMLCD20x4Button();
        mButton.setUid(uid);
        String subId = "button" + String.valueOf(i);
        logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subId);
        mButton.setSubId(subId);
        mButton.init();
        mButton.setMbrick(this);
    }
    MLCD20x4Backlight backlight = factory.createMLCD20x4Backlight();
    backlight.setUid(uid);
    String subId = "backlight";
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subId);
    backlight.setSubId(subId);
    backlight.init();
    backlight.setMbrick(this);
}
Also used : MLCD20x4Button(org.openhab.binding.tinkerforge.internal.model.MLCD20x4Button) ModelFactory(org.openhab.binding.tinkerforge.internal.model.ModelFactory) MLCD20x4Backlight(org.openhab.binding.tinkerforge.internal.model.MLCD20x4Backlight)

Aggregations

MLCD20x4Backlight (org.openhab.binding.tinkerforge.internal.model.MLCD20x4Backlight)1 MLCD20x4Button (org.openhab.binding.tinkerforge.internal.model.MLCD20x4Button)1 ModelFactory (org.openhab.binding.tinkerforge.internal.model.ModelFactory)1