Exemple #1
0
        public static void Main()
        {
            // write your code here
            var apds = new APDS9960(Cpu.Pin.GPIO_Pin4);

            apds.EnableProximity(true);
            apds.EnableGestures(true);
        }
Exemple #2
0
        public static void Main()
        {
            // write your code here
            var apds = new APDS9960(Cpu.Pin.GPIO_Pin10);

            apds.EnableProximity(true);
            apds.SetProximityInterruptThreshhold(0, 175);
            apds.EnableProximityInterrupt(true);
        }