Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you help me please to use your code or the driver with i2c-0 instead i2c-1? #3

Open
FPSychotic opened this issue Nov 16, 2020 · 0 comments

Comments

@FPSychotic
Copy link

FPSychotic commented Nov 16, 2020

Hi as I don't know programming I'm no able to make work your control code with i2c-0, as the driver by default use i2c-1. I found this lines in the code of this file https://gitlab.com/bradanlane/ros-i2cpwmboard/-/blob/master/src/i2cpwm_controller.cpp but I have no idea what to do.
` /**
\private method to initialize private internal data structures at startup

@param devicename a string value indicating the linux I2C device

Example _init ("/dev/i2c-1"); // default I2C device on RPi2 and RPi3 = "/dev/i2c-1"
/
static void _init (const char
filename)
{
int res;
char mode1res;
int i;

/* initialize all of the global data objects */

`
I tried contact with the driver site, but the emails don't work and it looks a abandoned project, not sure, but a similar issue is open from long time and I thought maybe it is a easy thing that can be fixed with a small tip.

thanks and take care!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant