Ejemplo n.º 1
0
        public static void Main()
        {
            // write your code here
            //https://github.com/adafruit/Adafruit_APDS9960/tree/master/examples/color_sensor
            var apds = new APDS9960(Cpu.Pin.GPIO_Pin10);

            apds.EnableColorSensor(true);
        }
Ejemplo n.º 2
0
        public static void Main()
        {
            // write your code here
            var apds = new APDS9960(Cpu.Pin.GPIO_Pin4);

            apds.EnableProximity(true);
            apds.EnableGestures(true);
        }
Ejemplo n.º 3
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);
        }