If you wanted to build an electronic dice, you might grab an Arduino and a nice OLED display to whip up something fancy. You ...
This library is to read the APDS9900 or APDS9901 sensor. The APDS9900/ADPS9901 has two main functions: measure ambient light (ALS), up to 16 bit. proximity detection, (no conversion to distance yet).