put/moved functions to DmDisplay library.