Hello, how can I read this array field from i2c bus with phyton. I2c address is 0xf7 an the command is 0xd0 and the return value must be a array. Can I use long[] read_block_data(int addr,char cmd) but how do I specify the block/array size??? Thanks
Hi Newbi, i guess you are using the raspberry pi, therefore i would recommend that you should use following function instead: retVal = read_i2c_block_data(0xf7, 0xD0, 3) Kind regards
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.