Convertion d'un programme Arduino Uno en programme Arduino Mega

Bonjour j'utilise une brique Lego Mindstorms EV3 pour donner des commandes et recevoir des données de mon Arduino Uno via le réseau I2c, les Broches I2C de mon Uno sont 4 et 5.

Mon programme fonctionne très bien sur le Uno mais lorsque je le compile pour Arduino Mega, il ne se passe plus rien, le moniteur Arduino ne m'affiche plus aucune commande provenant de mon EV3 comme si la communication I2C ne fonctionnait pas. J'ai pourtant utilisé les broches 20 et 21 pour la communication I2C de mon Arduino Mega, dans le logiciel de programmation j'ai sélectionné le modèle Arduino Mega avant de compiler et de téléverser le programme à mon Arduino.

Le programme a initialement été conçu pour Arduino Uno, I2C sur les broches 4 et 5, se peut il que l'Arduino ne puisse pas fonctionner avec le même programme recompilé, dois-je modifier des instructions pour que la communication I2C passe des pin 4 et 5 pour le Uno à 20 et 21 pour le Mega?

Quelqu'un peut m'aider à comprendre ce problème?

I will google translate before someone asks u to post in french section of this forum

Google Translate " Hello I use a Lego Mindstorms EV3 brick to give commands and receive data from my Arduino Uno via I2C network, I2C Pins My Uno are 4 and 5.

My program works fine on the Uno but when I compile the Arduino Mega, it happens nothing, the Arduino Monitor no longer shows me no order from my EV3 like I2C communication was not working. Yet I have used the pins 20 and 21 for the I2C communication of my Arduino Mega, in the programming software I selected the Arduino Mega model before compile and upload the program to my Arduino.

The program was originally designed for Arduino Uno, I2C on pins 4 and 5, it may be that the Arduino can not operate with the same program recompiled, do I modify instructions for the I2C communication is pine 4 and 5 to Uno 20 and 21 for the Mega?

Can someone help me understand this? "

Thank You for the traduction wkpedro, I found some litle error so I rewrote my request in inglish as follow:

Hello I use a Lego Mindstorms EV3 brick to give commands and receive data from my Arduino Uno via the I2C network, the I2C Pins on my Uno are 4 and 5.

My program works fine on the Uno but when I compile it for the Arduino Mega, nothing appens, the Arduino monitor does not show any of the commands received from the EV3,it is like I2C communication is not working at all. Yet I have used the pins 20 and 21 for the I2C communication on my Arduino Mega, in the programming software I selected the Arduino Mega model before compiling and uploaded the program to my Arduino.

The program was originally designed for Arduino Uno, I2C was using pins 4 and 5, is it possible the Arduino Mega can not operate with the same Arduino Uno program recompiled for Mega, do I have to modify instructions for the I2C communication on the Arduino Mega to get the communication working on pins 20 and 21?

Can someone help me understand this?

Thank you for any help you can provide!