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 beetbox.py
Traceback (most recent call last):
File "beetbox.py", line 41, in <module>
mpr121.setup(0x5a)
File "/home/pi/Desktop/mpr121/mpr121.py", 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?
Cal
 
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 irc.freenode.net!
Image
User avatar
Yoriz
 
Posts: 1155
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 2 guests