Read byte array from i2c adress

Gast #6293493
Lesenswert?

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
Gast #6300510
Lesenswert?

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

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren