Page 1 of 1

Attribute error: 'Adafruit_I2C' object has no attribute 'writeList'

Posted: Thu Jul 12, 2018 2:33 pm
by krish
Hi there,
I am using the motor bridge cape using BBB to run stepper motor. When I execute the test file, steppermotortest.py, I end up in the error "Attribute error: 'Adafruit_I2C' object has no attribute 'writeList'". Kindly help me in this issue.

Re: Attribute error: 'Adafruit_I2C' object has no attribute 'writeList'

Posted: Thu Jul 12, 2018 4:01 pm
by krish
Problem fixed. Thanks

Re: Attribute error: 'Adafruit_I2C' object has no attribute 'writeList'

Posted: Thu Jul 12, 2018 4:54 pm
by hong.jiang
1. install the adafruit_gpio
sudo apt-get update
sudo apt-get install build-essential python-pip python-dev python-smbus git
sudo pip install Adafruit-GPIO

2. install adafruit_bbio
sudo apt-get install build-essential python-dev python-pip -y
sudo pip install Adafruit_BBIO

3. change the MotorBridge.py as below

import Adafruit_GPIO.I2C as I2C
import Adafruit_BBIO.GPIO as GPIO
import time
Reset = "P9_23"
MotorBridge = I2C.Device(0x4b, 2)
GPIO.setup(Reset, GPIO.OUT)

4. Here is the output. I will update wiki soon.

debian@beaglebone:~/MotorBridgeCapeforBBG_BBB/tests$ python StepperMotortest.py
Hello From MotorBridge
Hello From MotorBridge
Hello From MotorBridge


thanks
Seeed techsupport team
Bill

Re: Attribute error: 'Adafruit_I2C' object has no attribute 'writeList'

Posted: Wed Jul 18, 2018 5:03 am
by silver1row
Hello Fellows and Ladies,

Is the new software, which is found on GitHub.com, for the Motor Bridge Cape (MotorBridge.py) used w/ only Python3 now?

Seth