Problem with A6 & A7
i beginner arduino platform. frost post . i'm using arduino nano board. while using analog inputs pin digital input a0-a5 works great a6,a7 not repond inputs, can pls tell wrong or board damaged
code is
void setup()
{
pinmode(13, output);
pinmode(a7, input_pullup);
}
void loop()
{
if(digitalread(a6)==low)
digitalwrite(13,low);
else
digitalwrite(13,high);
}
code is
void setup()
{
pinmode(13, output);
pinmode(a7, input_pullup);
}
void loop()
{
if(digitalread(a6)==low)
digitalwrite(13,low);
else
digitalwrite(13,high);
}
Arduino Forum > Using Arduino > Installation & Troubleshooting > Problem with A6 & A7
arduino
Comments
Post a Comment