A method of controlling a programmable ophthalmic lens device comprising a programmable ophthalmic lens, an optical function controller, and a memory, the programmable ophthalmic lens having an optical function and extending between at least one eye of the wearer and the real world scene when the device is used by the wearer, and the optical function controller being arranged to control the optical function of the programmable ophthalmic lens, the method comprising: - a viewing condition data receiving step during which viewing condition data relating to the viewing condition of the wearer are received by the optical function controller and stored over time, the viewing condition of the wearer comprising at least elements relating to the posture of the wearer, - an optical function data determining step during which an optical design adapted to the wearer is determined based on the evolution over time of the viewing condition data, determining the optical design consisting in calculating an optical design or customizing an existing optical design based on the evolution over time of the viewing condition data, the optical function data comprising at least dioptric function data relating to a dioptric function based at least on the ophthalmic correction adapted to the wearer and the viewing condition data, the optical design adapted to the wearer being determined using a computer program stored in the memory of the programmable lens device and/or determined by a distant entity configured to receive viewing condition data, - an optical function data receiving step during which optical function data relating to the optical function of the programmable ophthalmic lens is received by the optical function controller, - an optical function modifying step during which the optical function of the programmable electronic ophthalmic lens device is modified by the optical function controller based on the optical function data. - a viewing condition data receiving step during which viewing condition data relating to the viewing condition of the wearer are received by the optical function controller and stored over time, the viewing condition of the wearer comprising at least elements relating to the posture of the wearer, - an optical function data determining step during which an optical design adapted to the wearer is determined based on the evolution over time of the viewing condition data, determining the optical design consisting in calculating an optical design or customizing an existing optical design based on the evolution over time of the viewing condition data, the optical function data comprising at least dioptric function data relating to a dioptric function based at least on the ophthalmic correction adapted to the wearer and the viewing condition data, the optical design adapted to the wearer being determined using a computer program stored in the memory of the programmable lens device and/or determined by a distant entity configured to receive viewing condition data, - an optical function data receiving step during which optical function data relating to the optical function of the programmable ophthalmic lens is received by the optical function controller, - an optical function modifying step during which the optical function of the programmable electronic ophthalmic lens device is modified by the optical function controller based on the optical function data.