Bottom Page

Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 SMBUS Support
#1
I would like to transfer five integer values from Python to an Arduino using SMBus, but I have run into a lack of useful documentation on SMBus. The best I have found is at wiki:linux:python:smbus:doc, but that still leaves questions.

Many of the functions require a 'cmd' parameter and the only example that they show is: b.read_byte_data(0x2f,0x58) where 0x2f is the address and 0x58 is cmd. What command is a hex 0x58? Where can I find a list of the other commands in values in hex? Other SMBus functions call for a 'char cmd' - would they be the character equivalents of the hex values?
Quote
#2
Don't know if this will help, but here's some sample code
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  smbus contention handling PatM 1 943 Sep-21-2017, 07:13 PM
Last Post: PatM

Forum Jump:


Users browsing this thread: 1 Guest(s)