budryerson / TFMini-Plus

Arduino library for the Benewake TFMini-Plus and TFMini-S LiDAR distance sensors.
66 stars 23 forks source link

What is this library called in the Arduino examples #39

Closed mudmin closed 2 years ago

mudmin commented 3 years ago

Sorry, this could be the dumbest thing I ever asked, but I see that you have an example sketch, yet it's not showing up under File->Examples in the IDE and I can't find your library after installing it. What is it called?

budryerson commented 3 years ago

It's called TFMP_example.ino. The examples folder also includes printf.h, a common print formatting header file that you should include in the same folder with the sketch. I can't imagine why it didn't show up. Did you try downloading the library as a zip file? Please let me know.

Bud Ryerson San Francisco

mudmin commented 3 years ago

I downloaded it through the library manager. The example is there if I navigate to C:\Users\PcName\Documents\Arduino\libraries\TFMPlus\example but it isn't showing up under the "examples" in the IDE itself. Thanks for the quick response!

budryerson commented 3 years ago

I deleted my TFMPlus library and installed it again using the Arduino IDE Library Manager. The resulting examplers folder contained both the example sketch and the printf.h file. I don't know what to tell you except to suggest that you delete the library and try re-installing it. If you do, please let me know whether that works for you. Thanks, Bud

mudmin commented 3 years ago

Hi. I'm sorry. I probably wasn't clear. I see there is an example sketch included in the library, however when I go to File->Examples->{libraryname} your library/example isn't there. I just did a tutorial on youtube showcasing your library, but I had to tell people to hunt around in the library folder to grab it.

I've only written one library for the IDE, but my example showed up automatically. Yours didn't for some reason.

budryerson commented 3 years ago

I was not aware of the 'Examples' selection under the 'File' drop-down menu in the Arduino IDE. Sure enough, not one example from any of my libraries shows up there. I must be doing something wrong. I will fix that... somehow.

Thank you for your gentle (and repeated) guidance. Obviously, I have much to learn. Please provide a link to your YouTube tutorial.

Bud Ryerson San Francisco

mudmin commented 2 years ago

I see you found my video :) Yeah. I have no idea how the whole example script thing works, but I just wanted to let you know that I REALLY appreciate your libraries. Those units are very cool, but there's not a lot of info out there on getting them working quickly. Thanks for all you do.

budryerson commented 2 years ago

I have corrected the library. Examples codes are now available in the Arduino IDE drop down menu as they should have been. Lesson learned. Thank you for your help.
Bud