sparkfun / SparkFun_Serial_Controlled_Motor_Driver_Arduino_Library

This library for Arduino provides control functions for the Serial Controlled Motor Driver over I2C or SPI.
Other
6 stars 3 forks source link

wire.begin problem #2

Closed marshalltaylorSFE closed 5 years ago

marshalltaylorSFE commented 6 years ago

On samd21, wire.begin(address) is used to indicate slave device, remove address and test on platforms.

Amin173 commented 5 years ago

Hi Marshal, I am using the SparkFun_Serial_Controlled_Motor_Driver_Arduino_Library. I used it with Arduino UNO and it worked perfectly. But when I tried to run it with Sparkfun's SAMD21 Mini, I faced a problem with the myMotorDriver.begin() function. The code stops at this line and doesn't go to the next line. I checked the function definition but I couldn't find whats the problem. May you help me with this?

Bests,

loricrotser commented 5 years ago

Hi! I'd need more information on how you're using the SCMD but on the SamD21, wire.begin is used to indicate a slave device and so would impact your ability to move forward. I found your comment on the SparkFun forums - I'll poke there to see if we can't get more technical information.

-L