Understanding an Arduino Library :: Video #2 :: Arduino Library Series

Sdílet
Vložit
  • čas přidán 4. 08. 2024
  • 🤩 FREE Arduino Crash Course 👇👇
    bit.ly/get_Arduino_skills
    **If you like this, I think you'll like the premium Arduino training we offer. Check it out here** bit.ly/3nSBPUs
    This tutorial walks through how to understand an Arduino library.

Komentáře • 85

  • @programmingelectronics
    @programmingelectronics  Před 3 lety +2

    ****If you like this, I think you'll like the premium Arduino training we offer. You can check it out here**** bit.ly/3lHyzcB

  • @sunpeter8260
    @sunpeter8260 Před rokem +1

    Thank you so much! Nobody else explains these programming concepts so clearly!

  • @mingyangwong1539
    @mingyangwong1539 Před 5 lety +8

    thank you for explaining libraries! it’s crystal clear now, you’ve helped me understand something that has troubled me since i started programming. take my like! 😄

  • @ronhoey2842
    @ronhoey2842 Před 6 lety +2

    Great tutorial. I have been looking far and wide for an explanation and you have made a great start on untying the tangle. Many thanks.

  • @shortlytall7926
    @shortlytall7926 Před 6 lety +2

    Best and most helpful videos for this learning so far, greatly appreciated!

  • @John-qe3ky
    @John-qe3ky Před 3 lety +1

    Very helpful in explaining class, the best I found.

  • @TheVeryCuriousMe
    @TheVeryCuriousMe Před 6 lety +1

    I love the way you explain....very clear.....I have a Java background and didn't know much about arduino.....Good job!

  • @safiyajd
    @safiyajd Před 3 lety +1

    Your explanation is enlightening!!! THANK YOU!!!!!!

  • @CaraAmar
    @CaraAmar Před 7 lety +3

    you have alot arduino tutorial here, i'll subscribe and thank you so much for all the tutorial video!

  • @tjoho83
    @tjoho83 Před 4 lety +1

    Finaly a person who can explain!! Thanks

  • @Rfster900
    @Rfster900 Před 8 lety +4

    Thank you. In one video you explained what I spent 3 previous day's of the remainder of my life to figure out (you'll understand better once you get to be my age...LoL) Keep on making those great tutorials... ;-))

  • @klangoxp
    @klangoxp Před 4 lety +1

    Thank you for the video! This explanation on classes was on point!

  • @karthikrajagopal6162
    @karthikrajagopal6162 Před 5 lety +2

    That was really an awesome tutorial on libraries!!

  • @Luis3alsa
    @Luis3alsa Před 3 lety +1

    Thanks a lot for this! This was awesome!

  • @p-jjohansson2519
    @p-jjohansson2519 Před 9 lety +1

    Thanks for a great tutorial....
    Explaining it all in a nice and easy way for all us folks that happen to have English as an second language ;)
    Keep up the good work.....
    Cheers from Sweden...

    • @programmingelectronics
      @programmingelectronics  Před 9 lety

      P-J Johansson Thanks for the note - much appreciated! I hope you can find some of the other videos helpful too.

  • @beehive808
    @beehive808 Před 10 lety +2

    Being a newbie Its going to take awhile to get my head around Libraries syntax, class, and destructor. I am it for the long haul, so keep the lessons coming.
    Ron

    • @programmingelectronics
      @programmingelectronics  Před 10 lety

      It is still taking me a while to wrap my head around them too. I generally keep a reference close by, like the libraries tutorial I mentioned on the Arduino Web page is a great resource.

  • @etzmannschnappuleck1181
    @etzmannschnappuleck1181 Před 6 lety +1

    Great job!

  • @iruz21
    @iruz21 Před 5 lety

    thank you dude i hope you always give some intersting like this video!

  • @bobowen7861
    @bobowen7861 Před 3 lety +1

    Nicely explained. This makes sense and clears up some coding examples I've looked at.

  • @MonoDH
    @MonoDH Před 8 lety +1

    Thanks you very much!. Very clear explanation of the concepts

  • @ShadowD71
    @ShadowD71 Před 6 lety +1

    Great Tutorial ... Thank you

  • @jzmartin11
    @jzmartin11 Před 3 lety +1

    really well explained

  • @malgailany
    @malgailany Před 10 lety +1

    Hi Michael,
    Very interesting video, I wish you can do more about OOP with your unique style.
    Very clear and informative.

    • @programmingelectronics
      @programmingelectronics  Před 10 lety

      Hi Mohammed, Thanks for the recommendation! I will have to look into this - I need some more experience myself in really understanding OOP. My only real exposure to it is with the Processing language.

  • @MkmeOrg
    @MkmeOrg Před 10 lety +3

    Excellent vids. Cheers!

  • @aldwindeleon7400
    @aldwindeleon7400 Před 4 lety +1

    Thank you very much, you are a very good teacher !

  • @UpcycleElectronics
    @UpcycleElectronics Před 5 lety +1

    Thank You Thank You Thank You!!!
    I'm banging my head against the wall trying to figure out how to use the temperature reading from a DS3231 library that I downloaded, wrote a bunch of code for in a project, and only afterwards discovered the temperature sensor option on the datasheet. Of course there are no temperature reading examples in this library and the temperature features are grouped into a different class than the time/date functions. At least the code seems to be included though.
    It's funny to me how "C incremented" can seem so unintuitive when compared to the most basic C despite the name. It should have been "C--" IMO, for "Unintuitive C."
    Main, if, when, for, while, etc., are all extremely intuitive to grasp but everything you showed here about classes requires contextual explanation and memorization.
    BTW I came across your upload for libraries part one after searching on the YT mobile app for ""Arduino Library C++"". Your upload was the 13th listing in results. I mostly clicked because of the clean thumbnail and the open source logo. It was the 3rd upload I watched since searching. This upload was suggested under your first 'library' upload as the second listing in content suggestions. This upload contains exactly what I was searching for. Hopefully explaining this kind of thing in a supporting comment helps to tune the SEO metrics of the AI as I think that's a thing already but could be wrong. Also I think it's fun to share these details from time to time with other CC's because there is no way to really verify all the channel metrics YT gives us.
    I'm just a non-monetized hobbyist with no plans to change that, and rarely upload. I couldn't care less about self promo. I also added these two uploads to my "IDE Arduino" playlist. All my lists and subs are publicly listed too and are ~98% other CC's stuff I found helpful and saved for later reference. Everything is highly indexed but others cannot sort the list alphabetically like I see and use it.
    Thanks again for the upload.
    -Jake

  • @whitefields5595
    @whitefields5595 Před 8 lety +1

    Thanks for this. You have a good style of presentation. This is a process that needs breaking down the way you have done it. You did not dive straight into writing a library, instead you chose to take this intermediate step. All too often programming tutorials try and get too smart too soon and the tutors show off. You realise that some of us need stepping through things.

    • @programmingelectronics
      @programmingelectronics  Před 8 lety

      +whitefields5595 Thanks for your kind words. I hope some of the other videos can be helpful too.

  • @partha95123
    @partha95123 Před 9 lety +1

    thanks a lot!is there a tutorial on XBee modules with arduino?if not please upload

  • @tamaraj1116
    @tamaraj1116 Před 8 lety

    If I'm using an external library (user-made), will I have to upload it to the AVR/Arduino so that the chip will run the sketch?

  • @mohabmetwally5749
    @mohabmetwally5749 Před 9 lety +2

    useful tutorial , thanx

  • @mingyangwong1539
    @mingyangwong1539 Před 5 lety +5

    “my second kidney” 🤣🤣

  • @punjabilog
    @punjabilog Před 4 lety +1

    Thank you very much Sir, its really helpful video

  • @duncanyoung8688
    @duncanyoung8688 Před 6 lety

    Hi bellow M25PXFlashMemory is the class am i right? Then the readStatus is the instance of the class is that right? why does it have :: the double dots? thanks
    byte M25PXFlashMemory::readStatus() {
    spi.select();
    spi.transfer(READ_STATUS_REGISTER);
    byte status = spi.transfer(0);
    spi.deselect();
    return status;

  • @raymondheath7668
    @raymondheath7668 Před 7 lety

    I have always had a problem with library's. I was hoping you would get into how to find out what functions a library has and what they do

  • @prakashharash8380
    @prakashharash8380 Před rokem

    thanks

  • @robstechchannel3687
    @robstechchannel3687 Před 9 lety +1

    Well... (...and maybe I am totally mssing out on sth. right here) isnt the most important part missing? I mean, when you make your class "ledBlinker", you set up the funtions "blinkMe()" and "fadeMe()", but you don't tell the computer what to do with them when they get called. So, there are arguments (pin and delayTime) but the arduino doesnt know what to do with them when you say "myLed.blinkMe()" ...or am I overlooking sth.?

  • @garyrowlands8537
    @garyrowlands8537 Před 7 lety +1

    Great video, just finnishes making my first library after watching your video and one other. Tried to get into your site but im waiting almost 36hrs now for the return email.... maybe you can get onto the web guys to sort the mail server :)
    Regards and thank you...

    • @programmingelectronics
      @programmingelectronics  Před 7 lety

      Thanks for the heads up Gary. If you want to send an email to contact at programmingelectronics dot com we can look into it for you.

  • @oliverutriainen2837
    @oliverutriainen2837 Před 8 lety +1

    thanks man

  • @SanjaySharma-pw6ww
    @SanjaySharma-pw6ww Před 2 lety +1

    nice explanation sir.
    keep on doing sir

  • @mjucevic
    @mjucevic Před 2 lety +1

    Thanks dude. Very useful

    • @programmingelectronics
      @programmingelectronics  Před 2 lety

      Glad it was helpful! Are there any specific Arduino topics you would like covered?

    • @mjucevic
      @mjucevic Před 2 lety +1

      @@programmingelectronics more advanced topics would be interesting. For example, streaming sensor data via bluetooth, or even better - gathering larger data blocks and then sending them. (To start BT for each read takes up time, hence reducing bandwidth)

    • @programmingelectronics
      @programmingelectronics  Před 2 lety

      @@mjucevic Thanks for this!

  • @beehive808
    @beehive808 Před 10 lety +1

    Great Video, I am like a dog with a new bone, I can’t get enough of this stuff.
    When I am in my sketch, and my library #include dose not turn orange in color, what do you think is wrong. Also if I have #include "zzzz.h" not turn blue in color, What do you think is wrong?
    Ron

    • @programmingelectronics
      @programmingelectronics  Před 10 lety

      Awesome question!!! I took me a few to figure out what was going with this one. In the keyword.txt file, the designation of the color (i.e. KEYWORD1), must follow the keyword with a TAB. I found this in my new favorite Arduino website page about libraries arduino.cc/en/Hacking/LibraryTutorial . So go into the keyword.txt file, and make sure only a TAB exist between the keyword and the designator. This fixed all my non-coloring keywords. Thanks bee Hive!
      I am will do video about the keyword file...

  • @dipakbhattacharjee1756

    sir how to read and copy a sketch from programmed Arduino.

  • @steamenggine6234
    @steamenggine6234 Před 7 lety

    GREAT!!!

  • @dnyautechnology2023
    @dnyautechnology2023 Před 5 lety

    how can i solve the problem like, USB MIDI. NO SUCH FILE OR DIRECTORY pliase help me

  • @technovan1133
    @technovan1133 Před 5 lety

    perhaps you should have look in your site i m trying to login , but the site give me an error, so can't login

  • @suniljandu3187
    @suniljandu3187 Před 5 lety

    Where is function's definition? How computer knows about "blink me""fedme()" . give me aswer about this ...

  • @duncanyoung8688
    @duncanyoung8688 Před 6 lety

    Is below like an array of instances of the class.
    class M25PXFlashMemory {
    public:
    M25PXFlashMemory(byte, byte, byte, byte);
    byte readStatus();
    bool isBusy();
    bool isWritable();
    void programByte(uint32_t addr,byte b);
    void programBytes(uint32_t addr, byte * buf, int len);
    byte readByte(uint32_t addr);
    void readBytes(uint32_t addr, byte * buf, int len);
    void readOTP(uint32_t addr, byte * buf, int len);
    void programOTP(uint32_t addr, byte * buf, int len);
    void freezeOTP();
    void eraseSubsector(uint32_t addr);
    void bulkErase();
    void enableWrite();
    void disableWrite();
    void sendAddress(uint32_t addr);
    void programPage(uint32_t addr, byte * buf, int len);
    void readPage(uint32_t addr, byte * buf, int len);
    private:
    SoftwareSPI spi;
    };
    #endif
    Or is it just the functions,when i watched the video of using librarys i didnt see you use the double dots in the class::

  • @shaidahamakareemmohammed6184

    how can delete Zip Library???

  • @MrEdoben
    @MrEdoben Před rokem

    Hi.
    Please how we can know, how much and which functions some librarie have.

    • @DSBenny
      @DSBenny Před měsícem

      You know, that exact question brought me here. I'm also tryin to figure out once you installed a library, how do you know how to use it. Except for looking at examples. Did you find your answer?

  • @snaprollinpitts
    @snaprollinpitts Před 10 lety

    Hey Mike, do you teach this stuff at the college level, because you obviously know your stuff. thanks for taking the time to teach us. mike

  • @masterfastermasterfaster
    @masterfastermasterfaster Před 7 lety +1

    My second Kidney hehehehhehe

  • @MyWillyboi
    @MyWillyboi Před 10 lety +1

    So all (led,) should be (ledpin,) ???? I am a moderate noob just got my NANo it is so awesome!!! CHEERS BUDDY

    • @programmingelectronics
      @programmingelectronics  Před 10 lety

      That's right - it was a typo in the program - ledPin was the variable I declared at the start - and was what I meant to reference through out the rest of the sketch.

    • @MyWillyboi
      @MyWillyboi Před 10 lety

      Open Source Hardware Group OK TY I appreciate the quick reply! Right on gonna run this one out on my nano ;) good day buddy

  • @felixlam7339
    @felixlam7339 Před 7 lety

    hi there . Can you Help me ? I am new to use arduino software . Can
    you show me how to upgrade storm controller on arduino software (here 's a link to the storm controller firmware: coralux.net/?wpsc-product=storm-led-controller) .
    I watched a video on youtube about upgrade storm controller on
    arduinosoftware and I followed steps to steps the video show me but I
    never completes Can you advise . Thanks

  • @maximusdesimus1943
    @maximusdesimus1943 Před 3 lety

    I'm mostly lost. I don't get it.

  • @donemedal3146
    @donemedal3146 Před 6 lety

    Feel like you need to explain more... you referred to it like a cookie cutter... well how does it work like a cookie cutter, what parts do what. Never explained what a constructor was or did and how it did what it needed to do

  • @nancywangeci8189
    @nancywangeci8189 Před 2 lety +1

    Nice tutorial , thanks