Just starting arduino
Im playing around with hello world
When I add a couple commands some work and a couple I get an error that the library has no member named ?
If im to include a library on any sketch how do I determine what one to use. Im assuming that because I have added the i2c board I have to find a library that has i2c in its name. Then I have to make sure it has all the commands that I want to use but not sure how to go about that. I have downloaded a library and looked inside the zip. Thought there might be a folder with the commands listed. Guess that would be to easy
Pat
Patty0465:
When I add a couple commands some work and a couple I get an error that the library has no member named ?
It's extremely unhelpful to paraphrase errors.
When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).
Patty0465:
If im to include a library on any sketch how do I determine what one to use.
If you're using a sketch someone else wrote then you need to look to see whether they were kind enough to document where to find the library. If they didn't then you'll need to go on a search based on the filename in the #include statement. Sometimes you will find multiple libraries have a file of that name. Sometimes multiple versions of the library will be available and you might need to use the specific version the author of the code wrote.
If you're writing your own code from scratch then you'll just need to use your web search skills to find some candidates and then evaluate which library looks best based on factors like popularity, whether it's actively maintained, whether it has documentation, etc.
Patty0465:
Then I have to make sure it has all the commands that I want to use but not sure how to go about that.
It depends on the library. Some will have excellent documentation. Some will have example sketches you can use as a reference. The source code will always be the definitive (though not most user friendly) documentation.
Patty0465:
I have downloaded a library and looked inside the zip.
Post a link to where you got the library from. Please use the chain links icon on the toolbar to make it clickable. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.