Thanks for your help guys, sorry about not doing things the exact right way.
No no. Your code has to be compiled before it can run. The compiler does not read minds and needs exacting instructions to do anything. So you need to spell everything exact which means you have to give enough to check and double-check and still go on after being wrong in different ways until it is as right as you need or want. In a big project you can be wrong 30 times before lunch between little quick to fix errors and dealing with actual bugs at least if you’re getting paid to do it or really want it done.
Do not self-identify with your code. You learn and grow on.
The reason I say to get the foundations down and the basics up is to save you from “hurting yourself” over simple stuff you should know but don’t. Get yourself nice solid footing in variables and arrays (grouped variables), logic structures, using functions and making your own and using char arrays to handle text, and never waste time coding String on Arduino, it will teach you bad habits that can lead to “why does my sketch crash?” threads.
By “hurting yourself” I mean you spending hours and hours making things work the hard way through massive typing just because you skipped on arrays and perhaps text. Remember learning to read and write? Imagine trying to write a book without learning --all-- of the alphabet or the actual meanings of most of the words you might spell right or wrong as an approach to becoming an author!
You’re at a great age to learn. One thing to learn is organize your learning, something the teachers and courses you take do for you but now you are outside of their box.
The Arduino site has all you need. Bookmark these pages, make an easy to get bookmark folder and add bookmarks as you go. When you have the Arduino IDE open, open a browser and a tab in it for every page you need to reference, have instant lookup of details.
https://www.arduino.cc/en/Tutorial/Foundations <<=== Arduino, Microcontroller and Programming Basics
Just be familiar and able to find your way back. After repeated use you won’t need to.
It gets you into the Reference Page.
https://www.arduino.cc/en/Tutorial/BuiltInExamples <<=== your IDE has these in the File->Examples menu.
You may not have all the parts to try every sketch. No problem, try the ones you can and see how they work.
You should mess with examples from sections 1,2,3 and 5 but not 4 and the rest are special cases. 1,2,3,5 teach a bit.
The libraries have examples in your IDE too. Library examples show working code you can use.
There are books out aimed at teaching Arduino to young people, the member Crossroads here has one on Amazon IIRC.
Have you heard of the MAKE movement and MAKE magazine? There’s a kids component and I am sure a whole raft of teaching materials.
The member Terry King here has a shop “Yourduino” with starter kit, other kits and pages of illustrated how-to explanations.
The physics teacher might be very interested in Arduino. Mention the 10-bit analog to digital pins, range is 0 to 1023. Mention the digital pins that can read digital sensors (IR light detector for example) incredibly fast. They can send signals, light leds, run motors as well. Events can be timed to within 4 microseconds up to over 70 minutes apart. If you sense a pendulum swinging past center it can take reads and tell how many reads the pendulum blocked a light and how long that took at around 67 to 81 times per millisecond depending on short prints to no prints, blink or fade the led to indicate speed.
It is hard to overstress the speed of these electronic machines. Most CPU instructions run on 1 or 2 cycles. There are 16000 cycles in an Arduino millisecond. 67 times a millisecond comes out to 239 cycles from one time to the next, enough to do a little bit and those bits add up at 67000 per second. But you need to learn the do-many-things-at-once lesson (the IDE example BlinkWithoutDelay is an example) to get that kind of performance. It’s a bit much, the 1st address in my signature space below has a nice simple explanation and code but you need to get the Foundations down to be able to read it.