A wavefront analysing device, of the Hartmann or Shack-Hartmann type, comprises in particular a set of sampling elements arranged in an analysis plane, and forming as many micro-lenses for sampling the incident wavefront, and a diffraction plane wherein are analysed the Airy discs of the different micro-lenses illuminated by the incident wavefront. In some embodiments, modifying the dielectric region includes modifying a wetting angle of the dielectric region. A ground potential is applied to other word lines coupled to control gates of non-selected memory cells.