Si114x proximity sensors from Silicon Labs design guide. Link here This application note provides an outline for using the Si114x proximity detector and ambient-light sensor. General considerations of electrical and optical component selection, programming, and power consumption are explained so as to cover the majority of situations.
