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

Поділитися
Вставка
  • Опубліковано 2 сер 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.

КОМЕНТАРІ • 85

  • @programmingelectronics
    @programmingelectronics  3 роки тому +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 Рік тому +1

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

  • @mingyangwong1539
    @mingyangwong1539 5 років тому +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 6 років тому +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 6 років тому +2

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

  • @Rfster900
    @Rfster900 8 років тому +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... ;-))

  • @TheVeryCuriousMe
    @TheVeryCuriousMe 6 років тому +1

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

  • @CaraAmar
    @CaraAmar 7 років тому +3

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

  • @Luis3alsa
    @Luis3alsa 3 роки тому +1

    Thanks a lot for this! This was awesome!

  • @karthikrajagopal6162
    @karthikrajagopal6162 5 років тому +2

    That was really an awesome tutorial on libraries!!

  • @iruz21
    @iruz21 5 років тому

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

  • @klangoxp
    @klangoxp 4 роки тому +1

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

  • @beehive808
    @beehive808 10 років тому +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  10 років тому

      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 6 років тому +1

    Great job!

  • @safiyajd
    @safiyajd 3 роки тому +1

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

  • @tjoho83
    @tjoho83 4 роки тому +1

    Finaly a person who can explain!! Thanks

  • @p-jjohansson2519
    @p-jjohansson2519 9 років тому +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  9 років тому

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

  • @bobowen7861
    @bobowen7861 3 роки тому +1

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

  • @ShadowD71
    @ShadowD71 6 років тому +1

    Great Tutorial ... Thank you

  • @John-qe3ky
    @John-qe3ky 3 роки тому +1

    Very helpful in explaining class, the best I found.

  • @malgailany
    @malgailany 10 років тому +1

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

    • @programmingelectronics
      @programmingelectronics  10 років тому

      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.

  • @whitefields5595
    @whitefields5595 8 років тому +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  8 років тому

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

  • @MonoDH
    @MonoDH 8 років тому +1

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

  • @UpcycleElectronics
    @UpcycleElectronics 5 років тому +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

  • @jzmartin11
    @jzmartin11 3 роки тому +1

    really well explained

  • @MkmeOrg
    @MkmeOrg 10 років тому +3

    Excellent vids. Cheers!

  • @aldwindeleon7400
    @aldwindeleon7400 4 роки тому +1

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

  • @tamaraj1116
    @tamaraj1116 8 років тому

    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?

  • @partha95123
    @partha95123 9 років тому +1

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

  • @mingyangwong1539
    @mingyangwong1539 5 років тому +5

    “my second kidney” 🤣🤣

  • @garyrowlands8537
    @garyrowlands8537 7 років тому +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  7 років тому

      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.

  • @duncanyoung8688
    @duncanyoung8688 6 років тому

    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;

  • @nancywangeci8189
    @nancywangeci8189 2 роки тому +1

    Nice tutorial , thanks

  • @punjabilog
    @punjabilog 4 роки тому +1

    Thank you very much Sir, its really helpful video

  • @prakashharash8380
    @prakashharash8380 Рік тому

    thanks

  • @dipakbhattacharjee1756
    @dipakbhattacharjee1756 7 років тому

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

  • @SanjaySharma-pw6ww
    @SanjaySharma-pw6ww 2 роки тому +1

    nice explanation sir.
    keep on doing sir

  • @robstechchannel3687
    @robstechchannel3687 9 років тому +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.?

  • @raymondheath7668
    @raymondheath7668 7 років тому

    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

  • @mjucevic
    @mjucevic 2 роки тому +1

    Thanks dude. Very useful

    • @programmingelectronics
      @programmingelectronics  2 роки тому

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

    • @mjucevic
      @mjucevic 2 роки тому +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  2 роки тому

      @@mjucevic Thanks for this!

  • @oliverutriainen2837
    @oliverutriainen2837 8 років тому +1

    thanks man

  • @dnyautechnology2023
    @dnyautechnology2023 5 років тому

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

  • @technovan1133
    @technovan1133 5 років тому

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

  • @steamenggine6234
    @steamenggine6234 7 років тому

    GREAT!!!

  • @beehive808
    @beehive808 10 років тому +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  10 років тому

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

  • @shaidahamakareemmohammed6184
    @shaidahamakareemmohammed6184 4 роки тому

    how can delete Zip Library???

  • @suniljandu3187
    @suniljandu3187 5 років тому

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

  • @duncanyoung8688
    @duncanyoung8688 6 років тому

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

  • @MrEdoben
    @MrEdoben Рік тому

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

    • @DSBenny
      @DSBenny Місяць тому

      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 10 років тому

    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 7 років тому +1

    My second Kidney hehehehhehe

  • @MyWillyboi
    @MyWillyboi 10 років тому +1

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

    • @programmingelectronics
      @programmingelectronics  10 років тому

      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 10 років тому

      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 7 років тому

    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 3 роки тому

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

  • @donemedal3146
    @donemedal3146 6 років тому

    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

  • @mohabmetwally5749
    @mohabmetwally5749 9 років тому +2

    useful tutorial , thanx