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.
Due to the reasons discussed here we will be moving to on October 1 2016
This forum will be locked down and no one will be able to post/edit/create threads, etc. here from thereafter. Please create an account at the new site to continue discussion.
User avatar
Posts: 1672
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 6 guests