ARDUINO VARIABLES AND CONSTANTS - Arduino programming theory #2

  Рет қаралды 5,237

Bas on Tech

Bas on Tech

Күн бұрын

Пікірлер: 19
@BasonTech
@BasonTech 4 жыл бұрын
👉 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!
@thefsquad7787
@thefsquad7787 5 жыл бұрын
Bedank man duidelijke video' s goed zo bas...
@BasonTech
@BasonTech 5 жыл бұрын
Thanks! :)
@carolinaborneaprendeelctronica
@carolinaborneaprendeelctronica 2 жыл бұрын
thanks now i understand the const variable
@BasonTech
@BasonTech 2 жыл бұрын
Great to hear! 😃
@youssef8955
@youssef8955 2 жыл бұрын
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.
@BasonTech
@BasonTech 2 жыл бұрын
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-ty2sk
@NarutoUzumaki-ty2sk 4 жыл бұрын
Hi Man Does It Matter If You Type The Variable Before Or After void setup?
@BasonTech
@BasonTech 4 жыл бұрын
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. 😃
@tomgaming410
@tomgaming410 2 жыл бұрын
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
@BasonTech
@BasonTech 2 жыл бұрын
Sorry I don't get your question. Do you mean that if you have an int and a const with the same name?
@LofiQuranStream
@LofiQuranStream 4 жыл бұрын
Thx!
@BasonTech
@BasonTech 4 жыл бұрын
You're welcome! 😃
@pfranzpflanze4667
@pfranzpflanze4667 3 жыл бұрын
Hello. But what is the difference between const int and #define?
@BasonTech
@BasonTech 3 жыл бұрын
Good question! This post on stackoverflow gives an excellent explanation: stackoverflow.com/a/6442372/512089
@zeropoint-1041
@zeropoint-1041 3 жыл бұрын
was not declared in this scope 18 | const char
@BasonTech
@BasonTech 3 жыл бұрын
Looks like you've made a typo on line 17 or 18. Maybe you forgot something?
@dakshmehta3518
@dakshmehta3518 3 жыл бұрын
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?
@BasonTech
@BasonTech 3 жыл бұрын
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 😃
ARDUINO FUNCTIONS AND SCOPES - Arduino programming theory #3
9:58
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 83 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 1,8 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Optimizing Arduino Code: no setup(), no loop() ⛔
9:27
Wokwi
Рет қаралды 211 М.
Arduino Basics 102: Control Structures, Variables, Interrupts
7:38
How to Organize Code
14:37
Programming Electronics Academy
Рет қаралды 65 М.
Arduino Data Types, Literals, and Variables | Adventures in Science
8:51
SparkFun Electronics
Рет қаралды 45 М.
Difference between macros and constants in C
12:42
CodeVault
Рет қаралды 12 М.
Improve your Arduino programming skills - SRAM management
20:07
Joop Brokking
Рет қаралды 33 М.
Arduino MASTERCLASS | How to Use Variables PART 5
17:00
Programming Electronics Academy
Рет қаралды 23 М.
I Made an Electronic Chessboard Without Turns
14:32
From Scratch
Рет қаралды 1 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 83 МЛН