Hello,
First, i have an adrduino board "MEGA 2560" and i wanna use the 22-53 digitals pins, to turn off a led? To be exacly pin: 43
Here is my code:
int led43 = 43;
void setup() {
pinMode(led43, OUTPUT);
}
void loop() {
digitalWrite(led39, HIGH);
delay(200);
}
And when i apply this to the board its not working! Thanks!
You set pinmode on pin 43, then write le39,HIGH
You DO have a current limiting resistor in series with the LED?
Ok... But if i wanna use that pin for a pin for a keypad its not working!!
You can't run an LED without a current limiting resistor, you WILL distroy the LED, and MAY damage the output pin.
Ok... But if i wanna use that pin for a pin for a keypad its not working!!
So, post your code, and a schematic of your wiring.