The invention relates to a digital pen with an elongate pen part () which has a front pen portion () with a writing element for writing on a surface such as paper or a touchscreen, and a pen portion () which is arranged further back in relation to the front pen portion () and in which—in whole or…