linux - 我想利用 PCA9685 芯片在 beaglebone black 上驱动 Helm 机,我看到有一个 linux 驱动程序,但如何在 C/C++ 中使用。有什么例子吗?

标签 linux drivers beagleboneblack

所以我有一个黑色的 Beaglebone 和一个伺服/LED Controller http://www.adafruit.com/product/815 .我想通过运行在随附的 Debian Linux 上的 C/C++ 程序来控制它。

我看到内核“pwm_pca9685”中包含一个驱动程序,它确实在 /sys 目录中创建了一些项目,但似乎没有任何意义。

所以我知道至少我需要告诉模块芯片有什么 i2c 地址,那么我该怎么做,然后如何向芯片发送各种 pwm 命令?

最佳答案

所以我最终放弃了使用该驱动程序,因为我无法找到有关它的任何信息。相反,我使用了各种 ioctl 调用,例如 Adafruit 的这段代码中使用的:https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library/blob/master/Adafruit_PWMServoDriver.cpp

关于linux - 我想利用 PCA9685 芯片在 beaglebone black 上驱动 Helm 机,我看到有一个 linux 驱动程序,但如何在 C/C++ 中使用。有什么例子吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27319540/

相关文章:

相机设备的 Android 内核驱动程序

linux - 启动时从本地文件夹加载 Linux 内核模块

c - BeagleBone 黑色 : UART crashes the BBB after two successful read write calls

c - 为什么 ntimes 不在子进程中添加一个?

php - 有人可以告诉我 openssl_sign 示例有什么问题吗

linux - 将驱动程序添加到 Yocto 树莓派镜像

linux - 如何在 BeagleBone Black 上启用和使用 SPI

linux - 我怎样才能避免僵尸进程

linux - 查找并替换由分隔符分隔的字符串

Android 设备未出现在 Eclipse 中