download convert.py and place a file with arduino codes (i.e. ard.txt) in the same folder then run the script and it generates out.js which you can copy to makecode ...
###Direct connection### The Raspberry Pi is running at 3.3 Volts while the Arduino is running at 5 Volts. There are tutorials suggest using a level converter for the I2C communication. This is NOT ...