HELP smbus problems

A forum for general discussion of the Python programming language.

HELP smbus problems

Postby Cal » Sat Dec 07, 2013 1:19 pm

root@raspberrypi:/home/pi/Desktop/mpr121# python
Traceback (most recent call last):
File "", line 41, in <module>
File "/home/pi/Desktop/mpr121/", line 72, in setup
bus.write_byte_data(address, ELE_CFG, 0x00)
TypeError: descriptor 'write_byte_data' requires a 'SMBus' object but received a 'int'

does anybody know how to solve this?
Posts: 6
Joined: Mon Dec 02, 2013 8:35 pm

Re: HELP smbus problems

Postby Yoriz » Sat Dec 07, 2013 7:04 pm

Give write_byte_data a 'SMBus' object instead of a 'int' like the error says.
New Users, Read This
Join the #python-forum IRC channel on!
User avatar
Posts: 1465
Joined: Fri Feb 08, 2013 1:35 am
Location: UK

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 3 guests