An electronic device is disclosed comprising: a frame configured to be worn on a head of a user; a first light emitter mounted on the frame and configured to illuminate a first eye of the user, wherein an intensity and a spectrum of the first light emitter is adjustable; a second light emitter mounted on the frame and configured to illuminate a second eye of the user, wherein an intensity and a spectrum of the second light emitter is adjustable; a clock; a memory configured to store a target light profile comprising time-resolved data on an amount of light to be accumulated over time by the first and/or second eye of the user, wherein the time-resolved data comprises information about spectrum and intensity; and a controller configured to control the intensity and spectrum of the first and second light emitter based on the time and the target light profile.