Hey y'all I'm really stupid when it comes to writing arduino code. but I want to learn. I am building a flasher for one of the fire trucks in our department. i have 10 LED lights on this truck. I am using an arduino and a series of transistors and MOSFETS to control each individual light. I was just going to use 10 pins off my arduino becuz i thot that wud be thge easiest way to program it. BUT i dont know whats easier. shud i continue with this plan or do something different. The reason behind my title to this post is this... i cud write code the old fashioned way such as: digitalWrite(10,11 HIGH) and so on but that wud get extremely tedious... I have seen where some of y'all use serial data and i am completely lost in that realm ( xyz==1+1-zo.........blah blah blah). Anybody kind enough to help me out here? whats easiest?
It will be easiest if you master the sample sketches that are found in the Arduino IDE. At first thought what you are saying is valid but your references to actual code segments is in need of correction. If you think writing code is teadious you might want to quit now before you start. It almost sounds like you should go thru Gigs an Collaborations and have some do it for you.
i cud write code the old fashioned way such as: digitalWrite(10,11 HIGH)
Not if you expect it to work.
Whats gigs an collaboration? Plus I want to learn how to use serial data to do this. And i mean tedious by entering digitalWrite a thousand times. But i guess thats what ill do.
Gigs and collaborations is a forum where you ask others to do work for you $
I do urge you to master the basics. I believe you will have some fun learning to code. When you have questions or run into a situation where you need help, lots of people here are willing to help. Not sure what you mean by serial. Usually when you have to repeat things arrays are used in conjunction with a loop. Look up how "for" is used in the site reference section. http://arduino.cc/en/Reference/HomePage
Does anyone actually talk like this? This feels like a wind up.
jodyboehs: And i mean tedious by entering digitalWrite a thousand times.
Use loops and arrays to alleviate the pain - and reduce the risk of errors.