Check out this page for detailed instructions on setup: https://arcade.makecode.com/hardware/raspberry-pi/setup
There’s a test program you can install which will show you which pins to connect where. The video under the wiring section demonstrates how to use the test program.
Hope that helps!