pi@raspberrypi ~ $ gcc opt3001.c -o OPT3001exe pi@raspberrypi ~ $ ./OPT3001exe buf[0]: 206 buf[1]: 10 ALS buf[0]: 3 ALS buf[1]: 242 MSB:3, LSB:242 exp:0, frac:1010 result: 1010 pi@raspberrypi ~ $ ./OPT3001exe buf[0]: 206 buf[1]: 10 ALS buf[0]: 3 ALS buf[1]: 223 MSB:3, LSB:223 exp:0, frac:991 result: 991 pi@raspberrypi ~ $ ./OPT3001exe buf[0]: 206 buf[1]: 10 ALS buf[0]: 3 ALS buf[1]: 237 MSB:3, LSB:237 exp:0, frac:1005 result: 1005 pi@raspberrypi ~ $ ./OPT3001exe buf[0]: 206 buf[1]: 10 ALS buf[0]: 3 ALS buf[1]: 225 MSB:3, LSB:225 exp:0, frac:993 result: 993 pi@raspberrypi ~ $ ./OPT3001exe buf[0]: 206 buf[1]: 10 ALS buf[0]: 3 ALS buf[1]: 243 MSB:3, LSB:243 exp:0, frac:1011 result: 1011 pi@raspberrypi ~ $ ./OPT3001exe buf[0]: 206 buf[1]: 10 ALS buf[0]: 4 ALS buf[1]: 2 MSB:4, LSB:2 exp:0, frac:1026 result: 1026