Python Forum
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?
Reply
#2
Don't know if this will help, but here's some sample code
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  smbus.SMBus i2c code which worked to v.3.7.3 does not on Python 3.11.2 NewbyTyro 2 1,037 May-12-2025, 03:51 PM
Last Post: NewbyTyro
  SMBUS 'no such file or directory' hcccs 2 8,243 Jan-31-2021, 04:47 PM
Last Post: hcccs
  smbus contention handling PatM 1 3,507 Sep-21-2017, 07:13 PM
Last Post: PatM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020
This forum uses Lukasz Tkacz MyBB addons.
Forum use Krzysztof "Supryk" Supryczynski addons.