👉 Don't forget to check arduino-tutorials.net for more Arduino tutorials and projects. If you have questions, don't hesitate to ask them in de comments. Remember: There are no stupid questions 😃 🔔 Want to stay up-to-date with the latest videos? Subscribe to the Bas on Tech channel!
@thefsquad77875 жыл бұрын
Bedank man duidelijke video' s goed zo bas...
@BasonTech5 жыл бұрын
Thanks! :)
@carolinaborneaprendeelctronica2 жыл бұрын
thanks now i understand the const variable
@BasonTech2 жыл бұрын
Great to hear! 😃
@youssef89552 жыл бұрын
hi man is there any instruction that allows you to configurate a lot of pins at one because I'm working with an arduino mega2560 and I have like 36-40 pins to configurate.
@BasonTech2 жыл бұрын
Unfortunately not, but you have to look at multiplexing of shift registers. The MAX7219 might be able to help you with this. It is used to drive 7-segment led displays
@NarutoUzumaki-ty2sk4 жыл бұрын
Hi Man Does It Matter If You Type The Variable Before Or After void setup?
@BasonTech4 жыл бұрын
Hi, it is best practise to write your global variables on the top of your code, under the includes. It probably does work, but it is not recommended. 😃
@tomgaming4102 жыл бұрын
If I use 2 of the same integers and use const at the same time, what happens? I also love your videos you explain everything so clearly thanks to you I was able to learn this course in 7 minutes
@BasonTech2 жыл бұрын
Sorry I don't get your question. Do you mean that if you have an int and a const with the same name?
@LofiQuranStream4 жыл бұрын
Thx!
@BasonTech4 жыл бұрын
You're welcome! 😃
@pfranzpflanze46673 жыл бұрын
Hello. But what is the difference between const int and #define?
@BasonTech3 жыл бұрын
Good question! This post on stackoverflow gives an excellent explanation: stackoverflow.com/a/6442372/512089
@zeropoint-10413 жыл бұрын
was not declared in this scope 18 | const char
@BasonTech3 жыл бұрын
Looks like you've made a typo on line 17 or 18. Maybe you forgot something?
@dakshmehta35183 жыл бұрын
Hi In arduino starter kit(love o meter) They used a constant for a pin Code: const int sensorPin = A0 This is not even a integer how is it being run as there is a 'A' in it?
@BasonTech3 жыл бұрын
Very nice question! I couldn't find proof but A0 is actually a constant which points to the correct pin. If I remember correctly something like pin 14 is analog 0. So A0 actually represents the value 14 which is an integer 😃