Arduino Uno R4 WiFi LESSON 35: Understanding and Using Arrays in Projects

preview_player
Показать описание
Pick your Sunfounder kit up so you get the same results I do:

You can pick up the neat jumper wires I showed in the video here:

You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

In this video I show you how to use arduino Arrays. Arrays are a data structure that allow you to save related data in a named list. Enjoy!

#arduinor4wifi
#arrays
#tutorial
Рекомендации по теме
Комментарии
Автор

I finally got my homework video done. Kept making mistakes. Another excellent video. Thanks

jameslewellen
Автор

Wow, such elegant demonstration! It is technically as a video - visually perfect - and in substance it has excellent narrative! I love how you are programming hardware to do something specific. Thank you Paul for choosing to spend your time to share your knowledge and experience with the world <3

jwaddin
Автор

Hi Paul, I have a video suggestion for you. "Controlling 3 wire PC fan speed with Arduino"

martinsengbusch
Автор

i ENJOYED ANOTHER GREAT LESSON FROM YOU, PAUL!

larryplatzek
Автор

Thank you Paul. You're the best!

scottwait
Автор

I have a bug I don't find, I broke my head above it, ...finally I downloaded Paul's code... but the same bug persists : " Please Input Grade1... the program doesn't WAIT" ! It prints " Please input Grad1, Please input Grade 2 " and only then waits for a first entry.
26
27
28
29
float grades[25];
int numGrades;
int i;
String myPrompt;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("How Many Grades? ");
while (Serial.available() == 0) {
}
numGrades = Serial.parseInt();
for (i = 0; i < numGrades; i = i + 1) {
myPrompt = "Please Input Grade: "+String(i+1);
Serial.println(myPrompt);
while (Serial.available()==0){
}

}
Serial.println();
Serial.println("Your Grades Are: ");
for (i=0;i<numGrades;i=i+1){
Serial.println(grades[i]);
}
for (i=0;i<numGrades;i=i+1){
}
}Any ideas?

johanverheyden