Microsoft MakeCode

Adding external sensor to the CPX and makecode

Hello! I am trying to connect an external color sensor (https://www.adafruit.com/product/1356) to the CPX using makecode, I know there is one built-in to the CPX but I need to it to be external for my project !

I know I need to somehow use the i2C blocks under Advanced -> pins in makecode but can someone point me to a working example project or offer any advice on how to use these, I know I need the block that is “ambientcolor” once the color has been detected but can I use this i2C block to get these values from an external sensor?

I am so confused! Thanks so much!