To calibrate the color sensor. You can specify the calibration time for each color, the longer it takes to calibrate, the more accurate it will be (theoretically).
Connect the sensor to a micro:bit. Set up the pins and place the sensor in white paper then start running the block.
Return the RGB value (0 - 255) for selected color.
Read more at https://makecode.microbit.org/packages/build-your-own
MIT
GitHub: BLstem/pxt-tcs3200-color-sensor
(The metadata above is needed for package search.)