use of org.openhab.binding.tinkerforge.internal.model.MLCD20x4Backlight 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);
}
Aggregations