Tutorial: Making Libraries with the Arduino IDE
HTML-код
- Опубликовано: 8 янв 2014
- This tutorial was developed for the MAKE course at the University of South Florida (www.makecourse.com). The tutorial discusses the main features of the Arduino compilers, and it shows how to make libraries. The use of #include statements is explored. The reason for splitting header and code into two different library files (.h and .cpp) is explained.
Video is 8 years old and still relevant and incredibly useful. Thank you!
I like how you intentionally show the error, explain the reasoning behind the error, and then shows how to fix it. Thank you for sharing this!
Well done! I've watched so many tutorial videos regarding this subject and they only served to confuse me, but you are the first one that explained it properly. Thank you.
great video, i played it at 1.25 speed for peace of my mind...
Nice! Been looking to see if I can use object/class oriented programming in Arduino and this instruction knocks it out of the park. Thank you.
This will really clean up my code.
Thanks so much for this explanation!
really enjoyed the session, excellent tutorial!
Code works fine. Excellent in depth Explanation. Thanks.
Awesome explanation, thanks for the effort...
Excellent tutorial!
Awesome discussion
It's also good practice to use the following in the header file :-
#if defined(ARDUINO) && ARDUINO >= 100
#include
#else
#include
#endif
Thanks for the great resource
Thank you , I like this Tutorial
Dude you are the best!
Thank you......
This is very help full to me..
But can you also guide me making libraries for Energia..
Objects like motors operate with certain parameters - speed( & rate of change of) and direction. Yet servo programs are unable to define the speed of a servo without special libraries and no-one ever talks about this very important attribute. As far as I know, there is only one library "VarSpeedServo.h" written in 2011 that allows for setting servo speed, but not acceleration. A "for loop" can of course deal with speed, but with acceleration it gets messy and longwinded! Could you please point me where I can find this information, or perhaps touch on the subject in a future tutorial? Thank you!
How did you create .cpp file?
Amazing !!!
I wonder if you know how to call one library member inside another library? Both libraries are written from scratch.
Hello sir,
Is it possible to initialize global variable from EEPROM in Header file ?
hi i want to creat my own library for my stepper
is there a prequel? i get the feeling i am entering a claasroom halfway?
Yes there are two: One about using functions and then one about object oriented programming.
tnx
. In the mean time I manged to write some libraries, was put on the right track by this and some other videos.
Turned out to be easier than I thought :-)
is there anywhere i can download the source code for this episode ?
TIP: Use your O/S file manager to drag&drop your local library .h and .cpp files into your current Arduino IDE's open project. This even gives you code highlighting on compilation errors. Yes, the Arduino IDE is not great...
the way you put your subscribe buttons so you cant get rid of one and you have to click on subscribe is dirty and damn you I wont watch it.