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.

Комментарии • 27

  • @davidharms3562
    @davidharms3562 Год назад

    Video is 8 years old and still relevant and incredibly useful. Thank you!

  • @HariWiguna
    @HariWiguna 9 лет назад +24

    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!

  • @jbbotha
    @jbbotha 5 лет назад +1

    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.

  • @pahvalrehljkov
    @pahvalrehljkov 5 лет назад +2

    great video, i played it at 1.25 speed for peace of my mind...

  • @ricardomiranda7737
    @ricardomiranda7737 7 лет назад

    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.

  • @benaloney
    @benaloney 9 лет назад

    This will really clean up my code.
    Thanks so much for this explanation!

  • @noxiousbyproduct
    @noxiousbyproduct 4 года назад

    really enjoyed the session, excellent tutorial!

  • @govindamukherjee8148
    @govindamukherjee8148 5 лет назад

    Code works fine. Excellent in depth Explanation. Thanks.

  • @milanlazic6640
    @milanlazic6640 9 лет назад +1

    Awesome explanation, thanks for the effort...

  • @BuildEver
    @BuildEver 6 лет назад

    Excellent tutorial!

  • @coreysheerer8199
    @coreysheerer8199 9 лет назад +1

    Awesome discussion

  • @mfx1
    @mfx1 4 года назад

    It's also good practice to use the following in the header file :-
    #if defined(ARDUINO) && ARDUINO >= 100
    #include
    #else
    #include
    #endif

  • @tcox881
    @tcox881 3 года назад

    Thanks for the great resource

  • @alsahiq.n.4989
    @alsahiq.n.4989 5 лет назад

    Thank you , I like this Tutorial

  • @jorgeandresgarciamontiel2420
    @jorgeandresgarciamontiel2420 5 лет назад

    Dude you are the best!

  • @electronicfactory4672
    @electronicfactory4672 7 лет назад

    Thank you......
    This is very help full to me..
    But can you also guide me making libraries for Energia..

  • @christmasdreams1
    @christmasdreams1 8 лет назад

    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!

  • @biplavoraon9702
    @biplavoraon9702 7 лет назад +3

    How did you create .cpp file?

  • @sidibaliout5991
    @sidibaliout5991 6 лет назад

    Amazing !!!
    I wonder if you know how to call one library member inside another library? Both libraries are written from scratch.

  • @Dharmendrasavaliya012
    @Dharmendrasavaliya012 7 лет назад

    Hello sir,
    Is it possible to initialize global variable from EEPROM in Header file ?

  • @younessrhir834
    @younessrhir834 7 лет назад

    hi i want to creat my own library for my stepper

  • @Ed19601
    @Ed19601 9 лет назад +1

    is there a prequel? i get the feeling i am entering a claasroom halfway?

    • @Makecourse
      @Makecourse  9 лет назад

      Yes there are two: One about using functions and then one about object oriented programming.

    • @Ed19601
      @Ed19601 9 лет назад

      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 :-)

  • @Theabselute
    @Theabselute 8 лет назад +1

    is there anywhere i can download the source code for this episode ?

  • @bignosethethird
    @bignosethethird 5 лет назад

    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...

  • @sifterbox
    @sifterbox 7 лет назад

    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.