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

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

Paul McWhorter

1 месяц назад

2,238 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@patrickfox-roberts7528
@patrickfox-roberts7528 - 19.09.2024 18:48

Thanks Paul

Ответить
@larryplatzek9017
@larryplatzek9017 - 19.09.2024 18:51

i ENJOYED ANOTHER GREAT LESSON FROM YOU, PAUL!

Ответить
@tomtate9147
@tomtate9147 - 19.09.2024 18:52

Thanks Paul for another great video

Ответить
@navnitpatil421
@navnitpatil421 - 19.09.2024 21:43

Ответить
@jwaddin
@jwaddin - 20.09.2024 01:12

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

Ответить
@scottwait3585
@scottwait3585 - 20.09.2024 05:18

Thank you Paul. You're the best!

Ответить
@johanverheyden8828
@johanverheyden8828 - 21.09.2024 11:25

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){
}
grades[i]=Serial.parseFloat();
}
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?

Ответить
@jameslewellen150
@jameslewellen150 - 21.09.2024 21:32

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

Ответить
@martinsengbusch33
@martinsengbusch33 - 23.09.2024 20:13

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

Ответить
@DrDave327
@DrDave327 - 26.09.2024 14:35

Great content, Paul! Here is my solution to the homework assignment:
I keep getting deleted, so here is the title: arduinoR4AvgGradeHomework

Ответить