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.
****If you like this, I think you'll like the premium Arduino training we offer. You can check it out here**** bit.ly/3lHyzcB
Thank you so much! Nobody else explains these programming concepts so clearly!
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! 😄
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.
Best and most helpful videos for this learning so far, greatly appreciated!
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... ;-))
+Rfster900 Glad it could help and thanks for watching!
I love the way you explain....very clear.....I have a Java background and didn't know much about arduino.....Good job!
you have alot arduino tutorial here, i'll subscribe and thank you so much for all the tutorial video!
Thanks a lot for this! This was awesome!
That was really an awesome tutorial on libraries!!
Thank you - Glad it helped!
thank you dude i hope you always give some intersting like this video!
Thank you for the video! This explanation on classes was on point!
Glad it was helpful!
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
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.
Great job!
Your explanation is enlightening!!! THANK YOU!!!!!!
Finaly a person who can explain!! Thanks
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...
P-J Johansson Thanks for the note - much appreciated! I hope you can find some of the other videos helpful too.
Nicely explained. This makes sense and clears up some coding examples I've looked at.
Glad it was helpful!
Great Tutorial ... Thank you
Very helpful in explaining class, the best I found.
Glad it was helpful!
Hi Michael,
Very interesting video, I wish you can do more about OOP with your unique style.
Very clear and informative.
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.
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.
+whitefields5595 Thanks for your kind words. I hope some of the other videos can be helpful too.
Thanks you very much!. Very clear explanation of the concepts
Glad it helped, thanks for watching.
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
really well explained
Excellent vids. Cheers!
Thanks Eric!
Thank you very much, you are a very good teacher !
Thank you! 😃
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?
thanks a lot!is there a tutorial on XBee modules with arduino?if not please upload
“my second kidney” 🤣🤣
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...
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.
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;
Nice tutorial , thanks
Thanks so much for watching!
Thank you very much Sir, its really helpful video
Great! Glad it was helpful.
thanks
sir how to read and copy a sketch from programmed Arduino.
nice explanation sir.
keep on doing sir
Thank you!
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.?
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
Thanks dude. Very useful
Glad it was helpful! Are there any specific Arduino topics you would like covered?
@@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)
@@mjucevic Thanks for this!
thanks man
+Oliver Utriainen Thanks for watching!
how can i solve the problem like, USB MIDI. NO SUCH FILE OR DIRECTORY pliase help me
perhaps you should have look in your site i m trying to login , but the site give me an error, so can't login
GREAT!!!
Thanks for watching@
Why is the syntax for a library sometimes in "" and sometimes ?
Great video..
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
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...
how can delete Zip Library???
Where is function's definition? How computer knows about "blink me""fedme()" . give me aswer about this ...
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::
Hi.
Please how we can know, how much and which functions some librarie have.
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?
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
I think I am just a good faker :)
keep fakin it I need it
My second Kidney hehehehhehe
So all (led,) should be (ledpin,) ???? I am a moderate noob just got my NANo it is so awesome!!! CHEERS BUDDY
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.
Open Source Hardware Group OK TY I appreciate the quick reply! Right on gonna run this one out on my nano ;) good day buddy
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
I'm mostly lost. I don't get it.
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
useful tutorial , thanx
mohab mohamed Thank you, I hope they can all be useful for you.