예제 #1
0
        public int GetLightLevelInLux()
        {
            byte[] result     = _device.ReadBytes((byte)_pinConnection, 2);
            int    lightLevel = result[0] << 8 | result[1];

            return((int)(lightLevel / 1.2f));
        }