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

lgTxBusy seems to get stuck in busy state forver after 20-30 invocations of this code on raspberry pi 5 #23

Open
robertsi opened this issue Dec 25, 2023 · 3 comments

Comments

@robertsi
Copy link

float pulse_width = 0.5 + angle / 180 * 2;
int servoCycles = 18;
lgTxServo(_chip.getHandle(), gpio, pulse_width * 1000, 50, 0, servoCycles);
while (lgTxBusy(_chip.getHandle(), gpio, LG_TX_PWM)) lguSleep(0.01);

@joan2937
Copy link
Owner

Please supply a complete example with build instructions.

@robertsi
Copy link
Author

@joan2937
Copy link
Owner

Could you prepare a shorter example which shows the problem?

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

2 participants