I'm trying to send I2C signals from Analog Discovery 2 to an I2C device.
I read an article I2C Protocol Viewer and the example worked. Next I modified the example code to fit my need. I found 'Write' function can't handle data more than 113 bytes.
Here the code that doesn't work:
DATA = []
for (i = 0; i < 113; i++) {
DATA[i] = i
}
Write(1, DATA)
If I change 113 to 112, it works.
I want to read the specification of the Write function. In addition to that, I want to know other functions or APIs that can be used in this script in order to develop more complicated scripts.
Question
Kota Uchida
I'm trying to send I2C signals from Analog Discovery 2 to an I2C device.
I read an article I2C Protocol Viewer and the example worked. Next I modified the example code to fit my need. I found 'Write' function can't handle data more than 113 bytes.
Here the code that doesn't work:
DATA = [] for (i = 0; i < 113; i++) { DATA[i] = i } Write(1, DATA)
If I change 113 to 112, it works.
I want to read the specification of the Write function. In addition to that, I want to know other functions or APIs that can be used in this script in order to develop more complicated scripts.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now