why the digital pin 2 and 3 declared pinMode(2, OUTPUT) AND pinMode(3, OUTPUT) not found on Yun?. I connect a Led in this pins and are always HIGH. Can i use this two pins?
You are setting them as OUTPUT, but not driving to a specific state.
Try to use
and check if the pin goes low.
I try it but the pin 2 and 3 is always in "High" mode. :S
Are you using the Wire library? Pin 2 and 3 are also used as SDA and SCL.
Yes i use de wire library for my lcd screen. if i use this library i dont use the pin 2 and 3?
criminalkaoz: Yes i use de wire library for my lcd screen. if i use this library i dont use the pin 2 and 3?
Correct! Pins 2 and 3 on the Yun are wired in parallel with the SCL and SDA pins that are elsewhere on the shield headers. This just like the Leonardo, the Yun's closest cousin (which doesn't have the Linux processor or networking abilities.)
Any restrictions you find for the Leonardo will also apply to the Yun.