This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] LM3530:Raspberry Pi / python-smbus 的 I2C 示例?

Guru**** 2024750 points
Other Parts Discussed in Thread: LM3530
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/1397673/lm3530-i2c-example-for-raspberry-pi-python-smbus

器件型号:LM3530

工具与软件:

您好、TI:

我需要在运行最新版本 Raspberry Pi 操作系统的 Raspberry Pi 上通过 I2C 来控制 LED 灯。 当前是否有用于控制 LM3530的 Python 示例?  我看到有一个相当旧的 Linux .c 驱动程序、但看起来不像它用于现代 Linux 发行版。   我可以阅读手册+ 旧的 C 代码、并使用 python-smbus 库亲自为 Pi 编写一些内容、但如果已经存在、我会有所帮助。  理想情况下、仅显示在 Python 中使用 python-smbus 库将灯光设置为关闭(0%)、开启50%和打开100%的示例。  Thx 在这里为您提供任何帮助!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Chris、您好!

    很遗憾、此器件没有此类示例。

    BR

    Patrick