Need help with a Seeeduino...

So I’ve got this seeeduino v4.2 (with 3 grove connectors) and 2 things I want to connect to the grove connectors (a push button and an electro magnet.



My issue now is that it seems like A4 and A5 (the 2 I2C grove connectors) are tied to each other. If I press the button, the electromagnet turns on. The code I wrote should hold the electromagnet on for 5 seconds once the button is released.



So I tried moving the electromagnet to the UART grove connector… and it is just constantly on, regardless of button press.



So I tried just the button and using the button function where the button turns on the light. It didn’t matter if the button was connected to A4 or A5, it still turned on the light when depressed.



Am I doing something wrong? Or can you only use 1 of these grove connectors?



Thanks!

Hi reddingtonisasgoodasdembe ,



Can you share the code and the connection diagram? So I can understand more about the issues.