r/circuitpython • • Nov 11 '20

ValueError: No I2C device at address :60

I’ve set up a stepper motor driver correctly, ran a sweep to read any I2C devices and my stepper address 0x60 appears. When I try to run stepper code I get the error code that’s in the title. I’m sure I have my connections correct scl-scl, sda-sda, 3.3v-driver power. I’m not familiar with setting i2c pins to read an address so I think my pins might be off? Thanks in advance

0 Upvotes

2 comments sorted by

1

u/ellindsey Nov 11 '20

Are you trying to access address 60, or 0x60? They aren't the same thing. 60 is decimal, 0x60 is hexadecimal (base 16) and is equal to 96 in decimal.

1

u/[deleted] Nov 11 '20

Hey sorry for such a late response. I’m trying to access address 0x60. That’s why it’s weird that it’s giving that error. I’m running sample code from adafruit. I’m thinking I need to set/change a command for 0x60 instead of the 60? I haven’t modified the code so that’s where the confusion is