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

No matching function LIDARLite_v4LED #27

Open
gerdaat opened this issue Feb 10, 2022 · 1 comment
Open

No matching function LIDARLite_v4LED #27

gerdaat opened this issue Feb 10, 2022 · 1 comment

Comments

@gerdaat
Copy link

gerdaat commented Feb 10, 2022

I tired to use all of the examples LIDARLite -> v4LED folders, and all of them have some form of the error message: "no macthing function for cal to 'LIDARLite_v4LED::write(Int, uint8_t*, int, int)'. Someone in the Arduino forum pointed out that the int parameters don't match.

@BradWiseman
Copy link

There is a good discussion of int vs uint8_t vs uint16_t here:
https://forum.arduino.cc/t/use-of-uint8_t-uint16_t-etc/512916

As you'll see discussed in that forum, "int" does not refer to the same length of variable, depending on the "natural" length of data on the host system. If it's an 8 bit system, then an int is 8 bits. If it's a 16 bit sytem, then an int is 16 bits. You get the idea... I won't repeat everything here because the discussion at the link is very well written by authors who are quite articulate on the subject.

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