ʼģ飨I2Cͳʼֵ
apds.init()

ƴ
apds.enableGestureSensor(false)


У׼봫
apds.setProximityGain(PGAIN_2X)

о봫жϣ
apds.enableProximitySensor(false)

þ봫жϵֵΪʱֵΪʱֵ0-255ֵСֵ
apds.setProximityIntLowThreshold(PROX_INT_LOW)
apds.setProximityIntHighThreshold(PROX_INT_HIGH)

о봫жϣ
apds.enableProximitySensor(true)

ж
apds.clearProximityInt()

                                                                by dbc0301
                                                                2016109