Add dimmer funtion

locking for dimmer not yet implemented
Fix memory layout for dimm configs