Hi
Just a student here seeking some advise...
I am trying to make a simple "keypad" with 1-5 buttons. Each button is supposed to open a program that is installed on my pc. Can my Arduino UNO (R3) do this or do I need to get my hands on a different board?
My pathetic beginner level code so far:
const int button1=A0;
int button1Value=0;
void setup()
{
Serial.begin(9600);
}
void loop()
{
button1Value=analogRead(button1);
if(button1Value>1000)
{
Serial.println("button is pressed");
}else
{
Serial.println("button is not predded");
}
delay(500);
}
The else command is of course unnecessary when I add the actual buttons. The "button is pressed" would be replaced with the command to open a program (if it even is possible :o ).