kriswiner / AMG8833

5 stars 2 forks source link

wire.h issue on arduino #1

Open mash-m opened 7 years ago

mash-m commented 7 years ago

Hi,

i´m trying to get your script running on a feather m0, but it seems that the wire.h had changed,

"'class TwoWire' has no member named 'transfer'"

i did´t found any usefull information about your method for reading and writing data via i2c (wire.transfer). maybe you can help me to reqrite the i2c read/write function in your scrip. basicaly i kown that there are now some other commands for wire.h:

https://www.arduino.cc/en/Reference/Wire

thanks, markus

kriswiner commented 7 years ago

Use whatever you usually use on the Feather for I2C read and write then.

On Tue, Jul 11, 2017 at 1:28 AM, mash-m notifications@github.com wrote:

Hi,

i´m trying to get your script running on a feather m0, but it seems that the wire.h had changed,

"'class TwoWire' has no member named 'transfer'"

i did´t found any usefull information about your method for reading and writing data via i2c (wire.transfer). maybe you can help me to reqrite the i2c read/write function in your scrip. basicaly i kown that there are now some other commands for wire.h:

https://www.arduino.cc/en/Reference/Wire

thanks, markus

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/AMG8833/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qsaqpB7Ng85KROvFxGXTJmAhfGrlks5sMzIegaJpZM4OT5Ix .

Koepel commented 6 years ago

I'm very curious where the "Wire.transfer()" comes from.

I have searched online and read this: https://github.com/kriswiner/Dragonfly/wiki/B.-Using-Wire-(I2C)-with-Dragonfly but I'm still in the dark.

kriswiner commented 6 years ago

It's part of the STM32L4 Arduino core.

On Wed, Mar 21, 2018 at 2:58 AM, Koepel notifications@github.com wrote:

I'm very curious where the "Wire.transfer()" comes from.

I have searched online and read this: https://github.com/kriswiner/ Dragonfly/wiki/B.-Using-Wire-(I2C)-with-Dragonfly but I'm still in the dark.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/AMG8833/issues/1#issuecomment-374884660, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1quF8Q_DkQt4rbYcgqiw-epstN0o7ks5tgiQ3gaJpZM4OT5Ix .

Koepel commented 6 years ago

Thanks. I see it is in the GrumpyOldPizza Wire library. But that is the only place I can find it.

kriswiner commented 6 years ago

That's the only place it should be...

On Wed, Mar 21, 2018 at 9:45 AM, Koepel notifications@github.com wrote:

Thanks. I see it is in the GrumpyOldPizza Wire library https://github.com/GrumpyOldPizza/arduino-STM32L4/tree/master/libraries/Wire/src. But that is the only place I can find it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/AMG8833/issues/1#issuecomment-375012493, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qhEsAOaM0mgmamih1mJLKcpius_pks5tgoPCgaJpZM4OT5Ix .