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

Need to pull AwaitInputChange function into the C interface #1736

Open
craiglindley opened this issue Dec 6, 2024 · 0 comments
Open

Need to pull AwaitInputChange function into the C interface #1736

craiglindley opened this issue Dec 6, 2024 · 0 comments

Comments

@craiglindley
Copy link

I have been struggling for 2 days trying to make this work and I am still not successful. I am using adafruit-hat-pwm. In led-matrix-c.h I added this line:

/** CAL Await GPIO pin change */
int led_matrix_await_input_change(struct RGBLedMatrix *matrix);

In led-matrix-c.cc I added these lines:

int led_matrix_await_input_change(struct RGBLedMatrix *matrix) {
return to_matrix(matrix)->AwaitInputChange(100);
}

Everything compiles and links OK but I never see activity on GPIO 19 which was said to be free by your input-example program.

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