Dimmer write by objc