hey everyone, im trying to send multiple variables from one arduino nano to another using i2c but i can find any basic working codes for that.
i want to send 4 pot values from here to there.
only one master and one slave.
hey everyone, im trying to send multiple variables from one arduino nano to another using i2c but i can find any basic working codes for that.
i want to send 4 pot values from here to there.
only one master and one slave.
Moved your topic to a more suitable section.
You may want to READ THIS for future reference.
It will help you get the best out of the forum.
Bob.
Store the pot values in an array of integers and send the array via I2C.
At the receiving end, store in a byte array and cast to integer.
This assumes that your pot values are integers as e.g. returned by analogRead.