Abstract:
An electronic device may be provided with a display mounted in a housing. The display may have an array of pixels that form an active area and may have an inactive area that runs along an edge of the active area. An opaque layer may be formed on an inner surface of a display cover layer in the inactive area of the display or may be formed on another transparent layer in the electronic device. An optical component window may be formed from the opening and may be aligned with an ambient light sensor such as a color ambient light sensor. The color ambient light sensor may have an infrared-blocking filter to block infrared light such as infrared light emitted by an infrared- light-emitting diode in the device. A light diffuser layer, light guide, and other structures may also be included in the ambient light sensor.
Abstract:
Embodiments of the present disclosure provide an optical encoder for an electronic device. The optical encoder includes a spindle and an encoded pattern disposed around a circumference of the spindle. The encoded pattern may include one or more surface features that create a direction-dependent reflective region.