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

Moderators: violet, seth.welday

Post Reply
krish
Pre-kindergarten
Pre-kindergarten
Posts: 6
Joined: Thu Jul 12, 2018 2:29 pm

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

Post by krish » Thu Jul 12, 2018 2:33 pm

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.

krish
Pre-kindergarten
Pre-kindergarten
Posts: 6
Joined: Thu Jul 12, 2018 2:29 pm

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

Post by krish » Thu Jul 12, 2018 4:01 pm

Problem fixed. Thanks

hong.jiang
Staff
Staff
Posts: 200
Joined: Tue Apr 17, 2018 11:03 am

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

Post by hong.jiang » Thu Jul 12, 2018 4:54 pm

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

silver1row
Pre-kindergarten
Pre-kindergarten
Posts: 33
Joined: Mon Apr 25, 2016 7:39 am
Contact:

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

Post by silver1row » Wed Jul 18, 2018 5:03 am

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

Post Reply