hi there
i tried to figure out why my notification led is not working after adding more sensors… so finally i found out what’s wrong, but i do not know why. here is a simple arduino sketch to illustrate the problem:
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
pinMode(7, OUTPUT);
pinMode(2, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(2, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(2, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
As soon as pin7 is set to output pin 2 is not able to go high i guess, means no blinking example. turn pin7 to input or comment out, things are working again.
why is this? any other pins not working in combination, rather painful to debug because on it’s own both pins are working but not in combination as it looks.
best
marc