I2c between arduino (slave) and raspberry pi (master)

I doubt somehow that your code compiles; did you post the complete code? I can't find the declarations of e.g. tosend and disp.

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project :wink: See About the Installation & Troubleshooting category.