secondly, i have to begin some I2C transmissions with the Arduino board, and i have no idea how am i supposed to do that. i have been looking at youtube tutorials and stuff for the past days and all of them are using another device with the arduino board.
in my case, i have to send I2C transmissions on the same board i have and make the LEDs on there light through I2C transmission. after this is done, we are gonna move on to adding and ISSI board perhaps, but for now i have to send I2C transmissions on the same board.
anyone know a good source where i could find code regarding this?
is it possible to have some kind code to send I2C transmissions on the same single aruino board and light the LED's on the board as a way to show the transmission code works?
great, do you know how would i be able to approach this? if there are any references to code examples doing that perhaps?
the only thing i could find is transmission code between two arduinos.
Delta_G:
I don't know how that would work on I2C since it uses the same wire to both transmit and receive data. I don't see how you would possibly sample the line at the same time you are transmitting on it.
What is the purpose of this experiment?
well its to figure out how I2C transmission works and the code for it before we move on and connect it to an ISSI board (IS31FL3732) with two arrays of 72 LEDs, for a total of 144 LEDs.
masterofcatastrophe:
yup. and to know that the transmission worked, the LED's should light
You can't really do that... You cannot have an I2C transaction without both a master and a slave device. I2C uses the same wire for both directions, and requires the slave device to acknowledge each byte... I don't see how you would do this and have the result behave enough like a real I2C device to be a useful test.
Why not just print the data you're going to send over I2C to serial, so you can verify manually that it's sending the data you think it is? If you're using a known working I2C library like Wire, you can have some degree of confidence that it's not mangling the data. Which is good, since I don't have a good way to do that.
I've written libraries or modules for a number of I2C devices - I've never felt I needed something that listened to the data on the I2C bus.
well ima have to play with the ISSI LED driver eventually so i already have another device lol. i just thought i could first talk through I2C with the arduino itself in itself, and make those LED lights on it light