Ok, Simple question.
How do I specify which pin on the sensor shield
So, I can make an led blink on analog pin 5 but when I change it to 6 nothing happens
The Mega Sensor Shield has up to 15 analog pins.
The same question when I'm using the digital pins as well, I can use 1-13 but the shield has up to 53 digital pins.
Now from my research I know there is no library for the shield, its says you just call the corresponding PIN. I know I am missing a #define (something)
I am new to the arduino, but have a programming background
The follow code works but when I change it to int led =A6
I get nothing
int led = A5;
// the setup routine runs once when you press reset:
void setup()
{
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop()
{
digitalWrite(led, HIGH);
delay(1000); // wait for a second
digitalWrite(led, LOW);
delay(1000);
}
Thank you in advance for you time.
Kind Regards.
From the other treads I have read I did notice some kind of "You don't know attitude and we're going make you feel like an idiot". And the first comment is just that.
"No idea, I don't know what sensor shield you have."
Read the subject you tool. Its a Mega Sensor Shield V2
"Erm . . . How do you KNOW this? It appears you have information we don't."
I did do some research before I posted this and have seen in other code a #define ()
But you seem to have an attitude towards people posting in a forum.
I have a saying which applies to someone like you:
Never argue with an idiot, as they will just bring you down to there level and beat you on experience.
So thank you for making my experience posting on a forum for help so very unhelpful.
Solidsqaure:
Read the subject you tool. Its a Mega Sensor Shield V2
Read it. I now know you have a piece of hardware that you have labeled "Mega Sensor Shield V2". I learned nothing of value from your suggestion.
The question is still remains. What hardware? (The expected response is a link to the actual "Mega Sensor Shield V2" you are trying to use.
Never argue with an idiot, as they will just bring you down to there level and beat you on experience.
You misspelled "smart ass". There is no indication @spycatcher2k is stupid but there is amble evidence of sarcasm.
So thank you for making my experience posting on a forum for help so very unhelpful.
If you stop assuming we can read your mind your experience would be much more productive.
Finally, both of you stop the name-calling.