No video

Using tabs to organize code with the Arduino IDE

🤩 FREE Arduino Crash Course 👇👇
bit.ly/get_Ard...
✅ Sign up to get $100 on NextPCB: www.nextpcb.co...
✅ $0 for 1-4 layers PCBs: www.nextpcb.co...
✅ PCB Assembly capabilities info:
www.nextpcb.co...
**Want to learn more? Check out our courses!**
bit.ly/3vJ80um
Arduino Sketch Build Process Website:
arduino.github...
**Get the code, transcript, challenges, etc for this lesson on our website**
bit.ly/3EFdfix
**We designed this circuit board for beginners!**
Kit-On-A-Shield: amzn.to/3lfWClU
SHOP OUR FAVORITE STUFF! (affiliate links)
---------------------------------------------------
We use Rev Captions for our subtitles
bit.ly/39trLeB
Arduino UNO R3:
Amazon: amzn.to/37eP4ra
Budget Arduino Kits:
Amazon:amzn.to/3C0VqsH
Multimeter Options:
Amazon: amzn.to/3rRo3E0
Helping Hands:
Amazon: amzn.to/3C8IYXZ
Soldering Stations:
Amazon: amzn.to/2VawmP4
AFFILIATES & REFERRALS
---------------------------------------------------
►Audible Plus Free trial: amzn.to/3j5IGrV
►Get LastPass: lastpass.wo8g....
►Join Honey- Save Money bit.ly/3xmj7rH
►Download Glasswire for Free:bit.ly/3iv1fql
FOLLOW US ELSEWHERE
---------------------------------------------------
Facebook: / programmingelectronics...
Twitter: / progelecacademy
Website: www.programmin...
________________________________
Did you know in the Arduino IDE that you can organize your code using different tabs? In this lesson, you’re gonna learn how to add these tabs, how they get organized in the Arduino sketch folder and how to use them in order to better organize your code. Stay tuned. Before we get started, if you wouldn’t mind subscribing to the channel, it really helps us bring you the best content. It doesn’t cost you anything but a click and it allows us to keep doing this. All right, so here we are in the Arduino IDE. I’ve got a program open. It’s called Tabbatha and I have got a sketch written out. So, let me just familiarize you with the sketch so you kind of get an idea what’s going on. So I’ve got some neopixels. Those are individually addressable LEDs. It’s like an individually addressable LED strip. You’ve probably seen ’em around. Really cool looking. And I’ve using this library called fastLED to control them. And I’ve got some variables here that set up the number of pins and which data pin I’m using and and a array to store the different LEDs that I’m in. Okay, and then I have some functions that do some different things. So one is setting them all the LEDs red. Then one sets ’em all blue, one sets ’em all green but it uses this little fadeall function in here that kind of makes it interesting. And I also have that function right here, fadeall. So I’ve got four functions and then below that I have my setup in my loop. So in setup, you know just start serial communication and then I’m just initializing some stuff for that fastLED library. Nothing crazy going on in setup. And then loop, all I’m doing is I’m calling these three functions: setRed, setBlue and setGreen. Okay, so what I wanna do is I wanna you know there’s a lot kind of, I don’t know, going on in here. Maybe I wanna like reduce the clutter in here and let’s say I wanna put each one of these functions in its own file, in its own tab. All right, so all of the files that you create in Arduino are gonna live in the Arduino Sketchbook folder. And you can figure out where your Sketchbook folder is by going to if you’re on a Mac, you’d go to Arduino Preferences or if you’re on a PC, I think it’s File Preferences. And the first thing they show is your Sketchbook location. So the location of my Sketchbook folder is under my name, my documents, and then in a folder Arduino. And then I have saved Tabbatha somewhere inside this folder. So I’m gonna go ahead and open that up. All right, so here is the folder Tabbatha and you’ll notice I’ve got a .eno
CONTINUED...
bit.ly/3EFdfix
**About Us:**
This Arduino lesson was created by Programming Electronics Academy. We are an online education company that seeks to help people learn about electronics and programming through the ubiquitous Arduino development board.
**We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.**

Пікірлер: 164

  • @burnermaster5375
    @burnermaster53752 жыл бұрын

    You had me at FastLED LOL. And now I'm clear on tabs, prototypes and preprocessing. Another great tutorial, thank you!

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks so much - Glad it helped and thanks for the note!

  • @slucas601
    @slucas6012 жыл бұрын

    I chuckled to my self when you pulled out that 'TabbaDabba'. Thanks for helping us stay a little more organized.

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks for the note Shawn! I try not to take myself too seriously and have some fun occasionally :)

  • @PixelSchnitzel
    @PixelSchnitzel3 ай бұрын

    I've been banging my head on the keyboard for a couple days trying to figure this out. I watched several videos that didn't help. THANK YOU!!! It's so much simpler than I thought.

  • @programmingelectronics

    @programmingelectronics

    3 ай бұрын

    Glad it helped! Thanks for the note and thanks for watching!

  • @keith726able
    @keith726able2 жыл бұрын

    I like it! This will make long sketches more manageable and easier to debug. I have an old non-Arduino program that I will rewrite as a sketch - it's 400 lines long. I'll use tabs.

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Very cool Keith! I feel like I rediscover this feature every so often and then get excited to use it again :)

  • @yashaswikulshreshtha1588

    @yashaswikulshreshtha1588

    2 жыл бұрын

    @@programmingelectronics Hey I was wondering if you could tell if I can use Pre Processors to eliminate inter-dependencies of files which have classes in it. I would really appreciate if you can tell me something about it. Thank you so much for making these videos, it has really helped a lot.

  • @jon_raymond
    @jon_raymond2 жыл бұрын

    Great and clear video! For my tabs I normally prefix them with 01, 02, 03 so I can sort them with the flow that I want instead of alphabetically.

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Great tip Jon - Thanks for sharing!

  • @tangocharlie5509

    @tangocharlie5509

    2 жыл бұрын

    Test_WemosD1mini:501:6: error: expected unqualified-id before numeric constant 501 | void 3countSTARTUP(); 1 or 01 prefix trigger an error, good tips but it doesn't seem to work on IDE1.8.19....! Must use letter prefix like: void A_myfunction();

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    @Tango charlie I _think_ the issue you are having is that you cannot start function names with a number. Otherwise you'll be fine.

  • @yashaswikulshreshtha1588

    @yashaswikulshreshtha1588

    2 жыл бұрын

    @@programmingelectronics Hey, I am wondering why is that we cannot use numbers in functions /names? Because I guess today compilers are advanced enough to differentiate between functions and stuff right?

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    @@yashaswikulshreshtha1588 That is a great question! I am not sure of the answer.

  • @waldo9487
    @waldo94872 жыл бұрын

    This is so easy to understand. I can program Visual Basic but I'm a newbie to Arduino, and this allows me to modularise my code like VB.

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Great! Glad it was helpful!

  • @EFoxVN
    @EFoxVN Жыл бұрын

    Thanks a lot for this! I have been coding Arduino for a while, and I didn't know about this! I guess this is what they call modular programming. It helps a lot to break things up in smaller, digestible pieces.

  • @bernym4047
    @bernym4047 Жыл бұрын

    A large sketch will require lots of scrolling. This is a neat solution and makes life easier. Thanks.

  • @programmingelectronics

    @programmingelectronics

    Жыл бұрын

    Totally agree Berny!

  • @rcraig8667
    @rcraig86678 ай бұрын

    Very helpful as i am just getting to splitting up larger files and searching the Arduino was not producing applicable results. Your video was clear and consise..

  • @programmingelectronics

    @programmingelectronics

    8 ай бұрын

    Great to hear! Thanks for watching!

  • @brucesmith9144
    @brucesmith91442 жыл бұрын

    Cool demonstration. This is a better approach to writing functions for your sketches. It will minimize scrolling to writing code blocks in one file and improve the writing process.

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks Bruce! I agree I think it can help quite a bit to reduce a bunch of scrolling up and down a long sketch.

  • @brucesmith9144

    @brucesmith9144

    2 жыл бұрын

    @@programmingelectronics one wastes a lot of time scrolling searching for code. Now just click on the tab.

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    I know I do!

  • @jeremiahradoc2453
    @jeremiahradoc2453 Жыл бұрын

    I was looking for a video on how multiple sketches would work with each other inside a single folder and this really help

  • @programmingelectronics

    @programmingelectronics

    Жыл бұрын

    Great - glad it helped Jeremiah!

  • @raymondmichael4987
    @raymondmichael49872 жыл бұрын

    So excited, I comment first. I really hunger for this, didn't wrap my head around it first time, hopefully this time I'll due to my trust in your teachings. Because of your awesome teaching I ditched using delays despite it being a difficult habit to leave. Greetings from Tanzania 🇹🇿 With "Royal Tour" :)

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks Raymond!

  • @arduino-tuto
    @arduino-tuto7 ай бұрын

    Excellent content, Keep up the good work!

  • @programmingelectronics

    @programmingelectronics

    7 ай бұрын

    Thank you!

  • @arduino-tuto

    @arduino-tuto

    7 ай бұрын

    you are welkom!@@programmingelectronics

  • @N00General
    @N00General Жыл бұрын

    Very clear, thank you for your efforts. When you named the first tab, I thought that you said "Your mama", I got seriously shocked for a moment 😂😂😂

  • @Orcanian66
    @Orcanian66Ай бұрын

    Great video reminds me of the JSR instruction in RSLogix (jump to subroutine). Thank you for sharing.

  • @programmingelectronics

    @programmingelectronics

    27 күн бұрын

    Thanks for watching!

  • @sandwon
    @sandwon2 жыл бұрын

    Great info. I am a Subscriber now. I will label my tabs A=green b=red c=blue Thanks 👍

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks so much for watching! I’m glad it helped!

  • @wilmercb
    @wilmercb2 жыл бұрын

    Thanks for this tutorial, is kinda the concept of "MVC/MVVM" Controller structure for organizing code in iOS/Swift ...this is the way for any Object Oriented Programming ;) ...I like so much your teaching skills and I hope you would be the one starting teaching Swift and Arduino with the SwiftIO board architecture 🙏🏼

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks for the note!

  • @digitalradiohacker
    @digitalradiohacker2 жыл бұрын

    I have struggled with this for a couple of weeks: A previously working sketch threw hundreds of errors when split into tabs. My problem was that I appear to have fallen into the "rare cases" category, and had to manually add the prototypes up near my includes. Subscribed.

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Great you got it figured out!

  • @warlord336
    @warlord336 Жыл бұрын

    Thanks a lot, this helped me a lot so I can finally continue

  • @programmingelectronics

    @programmingelectronics

    Жыл бұрын

    Great! Best of luck!

  • @Milo_korogon
    @Milo_korogon2 ай бұрын

    Thanks you it's what i was looking for to simplify my code.🙏

  • @programmingelectronics

    @programmingelectronics

    2 ай бұрын

    Glad it helped!

  • @rtalbot87
    @rtalbot87 Жыл бұрын

    EXTREMELY useful. Thank you. Yet to try it, but sure looking forward to making my code easier to read.

  • @programmingelectronics

    @programmingelectronics

    Жыл бұрын

    Great! Thanks so much!

  • @rtalbot87

    @rtalbot87

    Жыл бұрын

    @@programmingelectronics Unfortunately, Tab is not without its own issues, I am finding. Seems to add another level to debug unless the content of the tab is very simple. As ever, tenacity is required

  • @programmingelectronics
    @programmingelectronics2 жыл бұрын

    There was a question about if you could set up tabs, so that the functions could be used in other programs - and update in all the programs when the tab was updated - like a library (The comment disappeared when I was attempting to reply - my bad!). This would be really pretty cool, but unfortunately it wouldn't work. You'd need to have copies of that .ino file in every sketch folder where you wanted to use it , and then every one of the files would need updated if you made changes. In that case, setting it up like a library would be the way to go.

  • @horacioventurino7497
    @horacioventurino74972 жыл бұрын

    Very good instructive video. Clear and useful for the daily practice. Thank you!

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks so much for watching - really appreciate the comment! We'll do our best to keep them coming...

  • @andrewbernard4288
    @andrewbernard42882 жыл бұрын

    Thanks for the explanation it's clear and easy to understand and alleviate my problem how to deal with massive code in arduino.

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks so much Andrew - I appreciate the note!!

  • @warrenscorner
    @warrenscorner2 жыл бұрын

    Awesome video! This will make my sketches so much better. Thank you.

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks a ton for watching Warren! I’m glad it helped!

  • @DaveKnepper-wf1wo
    @DaveKnepper-wf1wo Жыл бұрын

    Thanks for clearing that up. I was assuming the tabs were all separate...but the compiler kept saying otherwise...LoL. Anyways, thanks again.

  • @programmingelectronics

    @programmingelectronics

    Жыл бұрын

    Glad it helped Dave!

  • @Cfbrolley1320
    @Cfbrolley13203 ай бұрын

    Fantastic tutorial, thank you!

  • @programmingelectronics

    @programmingelectronics

    3 ай бұрын

    Thanks for watching!

  • @dammitZeva
    @dammitZeva25 күн бұрын

    Very useful! Thanks. I wish that Visual Studio had the same. With VS you can create 'Regions' which does help but this tab thing is better. I make classes in VS but it's less convenient to use than these tabs.

  • @avejst
    @avejst2 жыл бұрын

    Great walkthrough of the process Thanks for sharing your experiences with all of us :-)

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks a ton for the note and for watching!

  • @avejst

    @avejst

    2 жыл бұрын

    @@programmingelectronics Any time 🙂

  • @flickmew99
    @flickmew99 Жыл бұрын

    I'm new to programming in general, but I have read something about organizing our program. Help, I have questions : 1. since it works in alphabetically order, do we have to adjust the filename according to the program order (following which function come first in the source code) ? 2. what's the difference of calling function from this Tab method, and calling function from library/class (if I make a new file as a library) ? Thank you very much for your clear and comprehensive tutorial, BTW

  • @ismaelconstantino
    @ismaelconstantino3 ай бұрын

    Thank you...! if the function has parameters, what do the tabs look like?

  • @hassan_ksu
    @hassan_ksu Жыл бұрын

    Easy to follow. Great video

  • @programmingelectronics

    @programmingelectronics

    Жыл бұрын

    Thanks Hassan!

  • @altitude1039
    @altitude10392 жыл бұрын

    OmG Thanks for posting this, helped me a ton!

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Glad it helped! Thanks for the note!

  • @richardfurniss8091
    @richardfurniss80912 жыл бұрын

    Cool, that is going to be very useful, for robotics I can place different routines in different tabs

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Great- I hope it helps! Thanks for the note!

  • @hughatkins
    @hughatkins2 жыл бұрын

    Thanks for that video. I have a friends sketch, and was having a hard time reading it. Not now!

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Nice! Glad it helped for readability!

  • @cloviscareca
    @cloviscareca11 ай бұрын

    This is the best video of subject

  • @programmingelectronics

    @programmingelectronics

    11 ай бұрын

    Glad you liked it!

  • @futurereality6514
    @futurereality65148 ай бұрын

    great Explanation

  • @programmingelectronics

    @programmingelectronics

    8 ай бұрын

    Thank you!

  • @donaldjohnson394
    @donaldjohnson394 Жыл бұрын

    Excellent! I've wanted to know what this was and how it was done. Older 3D printers that used Marlin firmware used to have all those tabs.

  • @programmingelectronics

    @programmingelectronics

    Жыл бұрын

    Awesome! Glad it helped it helped Donald!

  • @tonymai124
    @tonymai1242 жыл бұрын

    so good so far, you did for me, thank alot

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Glad it helped!

  • @shingabiss
    @shingabiss Жыл бұрын

    Excellently presented content!

  • @programmingelectronics

    @programmingelectronics

    Жыл бұрын

    Thanks Scott!

  • @shingabiss

    @shingabiss

    Жыл бұрын

    The tabs were kind of a mystery, having come from a mostly Visual Studio background. My first experience with the Arduino IDE was 3d printing related, working with the .h files for configuring Marlin code. Nice to understand they are like pages essentially. I'm starting to use them now. Thanks.

  • @paulbarrett1372
    @paulbarrett13722 жыл бұрын

    I have been hoping someone would explain the tabs Thank you so much!! would you mind also touching on local and global variables in the tabs with public and private, I am trying to understand this part of the tabs Thank you again for all your help !!

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Great! Glad it helped Paul! I’ll see what we can come up with to address that question!

  • @christiane321
    @christiane3219 күн бұрын

    ooh I see now. Mahalo!

  • @StevePotter
    @StevePotter2 жыл бұрын

    Very clear and helpful explanation of how to make a big sketch more manageable. Can you do one on how to then migrate those multi-tab sketches from Arduino IDE to Platform IO?

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks for the recommendation Steve! I'll see what I can come up with!

  • @user-zy2kh2rp4m
    @user-zy2kh2rp4m Жыл бұрын

    Hello sir, I have a code for ws2812b led which has 12 effects change by push button. But when i off and on it again it's start from frist effect. I I want that when I turn it on it should be on the same last effect on which it was turned off. Please help me 🙏🙏

  • @bryansmith1303
    @bryansmith13036 күн бұрын

    I liked this video. Question: At the top you use - CRGB leds [nums_led] - Can you tell me what the CRGB is? Thanks

  • @programmingelectronics

    @programmingelectronics

    6 күн бұрын

    Great question! CRGB is an object in the FastLED library - it lets you control paraments of an an RGB led, so we are making an array of those objects so we can control the colors of the entire LED strip. He are some docs on it. github.com/FastLED/FastLED/wiki/Pixel-reference#crgb

  • @christopherleadholm6677
    @christopherleadholm66772 жыл бұрын

    Great stuff for the new(er) people!

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks so much! I hope you can find it useful.

  • @gsrathore97x
    @gsrathore97x2 жыл бұрын

    Your videos is amazing sir .👍👍👍Please make more videos on this topic with complex examples and operations.

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks so much!

  • @alexclarosfernandez8467
    @alexclarosfernandez84674 ай бұрын

    Great insight!!!! Thanx a lot.

  • @prachethire812
    @prachethire8125 сағат бұрын

    Thanks ! , it worked.

  • @KeffelewAssefa
    @KeffelewAssefa7 ай бұрын

    Thank you.

  • @programmingelectronics

    @programmingelectronics

    7 ай бұрын

    Thanks for watching!

  • @mariaviklund4546
    @mariaviklund45462 ай бұрын

    I wanna use line numbers and Goto's!! I wish there was a Basic IDE for Arduinos. My brain hates curly brackets.

  • @mradulbhardwaj3147
    @mradulbhardwaj31472 жыл бұрын

    Can we define variables in those tabs ??

  • @briancoode4071
    @briancoode4071 Жыл бұрын

    This explains what I really wanted to know. Why do other KZreads make it so complicated? Thanks

  • @programmingelectronics

    @programmingelectronics

    11 ай бұрын

    Thanks for watching! Glad it helped!

  • @Tony770jr
    @Tony770jr2 жыл бұрын

    Good tip!

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks!

  • @mohammadrezafarshad3994
    @mohammadrezafarshad39942 жыл бұрын

    Thank you. Useful stuff.

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Glad it helped! Thanks so much for watching!

  • @KW-ei3pi
    @KW-ei3pi Жыл бұрын

    Awesome. Thanks!

  • @brettvillar5346
    @brettvillar5346 Жыл бұрын

    Great explanation! Will this also work the same in the web editor?

  • @programmingelectronics

    @programmingelectronics

    Жыл бұрын

    I believe so Brett. Thanks for watching!

  • @duartecancela
    @duartecancela Жыл бұрын

    Can we define variables also in separeted tab? Along with related functions?

  • @stephanc7192
    @stephanc719229 күн бұрын

    Great video

  • @programmingelectronics

    @programmingelectronics

    27 күн бұрын

    Thanks!

  • @HollyHertig
    @HollyHertig7 ай бұрын

    Thank you!

  • @Bianchi77
    @Bianchi772 жыл бұрын

    Creative video, thanks for sharing :)

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks a ton for watching! So much appreciated!

  • @vipalsharma4120
    @vipalsharma4120 Жыл бұрын

    How to decide board reading.ino file esp8266 or esp8266-01,in my case Generics esp8266 board error

  • @tanleproe
    @tanleproe2 жыл бұрын

    I like it, especially the file name. How do you spell 'Tabatha'. So funny.

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks Tan!!

  • @diegoveron996
    @diegoveron9962 жыл бұрын

    gracias !!

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks for watching!

  • @joshuagilbert3804
    @joshuagilbert38042 жыл бұрын

    LOVE it!!

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks Josh! I really appreciate it :)

  • @hitechhuckleberry3678
    @hitechhuckleberry36782 жыл бұрын

    at 1:40 can someone explain line 52 interms of c++? I didn't understand it.

  • @raymondmichael4987
    @raymondmichael49872 жыл бұрын

    Mmnh 🤔, second comment after watching, this is helpful as in "good to know" but not what I hunger for. Please create another tutorial on using header files (.h), just like classes

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks for the recommendation Raymond!

  • @pavansai3602
    @pavansai36022 жыл бұрын

    Hello could you please help me out with this error Arduino: 1.8.19 (Mac OS X), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None" exec: "python": executable file not found in $PATH Error compiling for board ESP32 Dev Module. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

  • @valentinsumalinog6458
    @valentinsumalinog6458 Жыл бұрын

    Very nice tutorial..

  • @programmingelectronics

    @programmingelectronics

    Жыл бұрын

    Thanks for watching

  • @0miker0
    @0miker02 жыл бұрын

    Can your functions all go after Loop instead of before setup?

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Great question! Yes they can. We did a previous video on organizing code that talks about adding function prototypes prior to setup if you go that route which a lot of folks prefer.

  • @knightdeluxegaming
    @knightdeluxegaming2 жыл бұрын

    I hope you can make a tutorial also about creating cpp and header file inside one file thanks

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Great idea - Thanks for the recommendation!

  • @jon_raymond

    @jon_raymond

    2 жыл бұрын

    @@programmingelectronics I second this suggestion!

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks @@jon_raymond Taking note!

  • @jeffschroeder4805
    @jeffschroeder48052 жыл бұрын

    Is there a precedent for putting a library in a tab? I seem to recall seeing someone referring back and forth to a library to ensure they had the correct spelling or syntax. Using a tab made that very quick and easy?

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Great question Jeff! To be perfectly honest I am not sure if there is a precedent/convention on that or not, but I could see it being handy for sure. Side note, I believe in order to open a .h or .cpp file in the Arduino IDE, those files would need to be in the sketch folder associated with sketch, and not in the libraries folder where libraries typically reside.

  • @jeffschroeder4805

    @jeffschroeder4805

    2 жыл бұрын

    @@programmingelectronics Including the version of the library you used directly in your sketch folder would probably avoid conflicts resulting from later changes or upgrades to the libraries maintained in your Documents folder.

  • @grahamdooley5144

    @grahamdooley5144

    Жыл бұрын

    @@jeffschroeder4805 I had exactly the same question Jeff. But I wouldn't want to have to place a copy of a library (.h or .cpp) in the sketch folder using it - just a link would be preferable (unless you really wanted to include a local copy of a version of that library for some reason). An even better way would simply be to tell the IDE in some way to just display the library code (.cpp and/or .h) as a tab within that sketch (but not to concatenate the source code to it). What I currently do if I want to readily refer to an included library while writing a sketch that uses it is to open the library source file in a Notepad++ window.

  • @agamersdiary1622
    @agamersdiary16222 жыл бұрын

    What is the benefit of instead having .h and .cpp files?

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    I’ve wondered that myself. I’m thinking it’s easier than having to write out include guards, plus, you can’t open .h files in the IDE.

  • @agamersdiary1622

    @agamersdiary1622

    2 жыл бұрын

    @@programmingelectronics for me it works to create a .h file with "new tab" 🤔

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    @@agamersdiary1622 You're Right!!!🤩Thanks! For seem reason I seem to recall NOT being able to do that.

  • @jumadhaheri
    @jumadhaheri2 жыл бұрын

    Well, my 3.3k lines of code now is 16 tabs this is fantastic , how to deal with long large arrays ? Do you make an .h tab ?

  • @jumadhaheri

    @jumadhaheri

    2 жыл бұрын

    Ok I think I got it , now I have 23 tabs 😅

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    You might need tabs for your tabs :)

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    I don’t think you can add .h tabs (though I could be wrong). I believe you’d have to create the header file and save it as a .h in the same sketch folder.

  • @RATANAGARWALITINFORMER
    @RATANAGARWALITINFORMER2 жыл бұрын

    Good info

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks Ratan!

  • @davepodolske5646
    @davepodolske5646 Жыл бұрын

    It would be really cool if the IDE didn't have to recompile everything when only the contents of one tab changed .

  • @BlondieSL
    @BlondieSL Жыл бұрын

    Tabs are wonderful for organizing big projects. I honestly usually forget to use them as I'm coding. LOL One thing for those new to coding is to remember is that if you create a tab (function) and it references a variable from the main code, that var must either be GLOBAL or you could pass a "LOCAL" to the function and have the function use its own LOCAL vars. So if, during compiling, you get an error message about a var not being declared, pointing to a tab(s), this is why.

  • @programmingelectronics

    @programmingelectronics

    Жыл бұрын

    Great tip! Thanks for adding!

  • @Skibosski
    @Skibosski4 ай бұрын

    😮 my momma? Reported!!! ... p.s Love the vids and content!! ❤

  • @TheHEALER1984
    @TheHEALER1984 Жыл бұрын

    Hi to all. I have problem in coding because I don't have enough knowledge. If any of you is interested , I can explain my problem and send my code that I already have . Thanks

  • @programmingelectronics

    @programmingelectronics

    Жыл бұрын

    You're welcome to post your code here - or the part that might be giving you an error, or the error message. Best of luck!

  • @sallydrew1621
    @sallydrew162111 ай бұрын

    The 'LIKE' button has gone!

  • @chrisw1462
    @chrisw14622 жыл бұрын

    It is a great feature, but the UI for it is horrendous! The option is on the top right under a tiny button, instead of in the main menus?? (I won't even talk about THOSE... what a mess!) Then instead of a pop up dialog, you enter the new name in a field at the BOTTOM of the screen??? Come on, Arduino, hire someone with common sense to FIX your User Inteface.

  • @damienclark7163
    @damienclark71632 жыл бұрын

    Clicked lol

  • @programmingelectronics

    @programmingelectronics

    2 жыл бұрын

    Thanks!!

  • @abhishekkumarbhaugeeruthy8884
    @abhishekkumarbhaugeeruthy888410 ай бұрын

    your mama🤣🤣🤣🤣