Hello all,
Does anybody know if it's possible to open a file with Arduino ? Like; if I push on a button a bat file will open ?
Like this:
int inPin = 7;
int val = 0;
void setup() {
pinMode(inPin, INPUT);
}
void loop() {
val = digitalRead(inPin);
if (val == HIGH) {
// open a file ?
}
}
Thanks.
Do you mean a file on a PC connected to the Ardunio?
The Arduino itself has no file system, there simply aren't "files" on it. If you mean on the PC, you'd have to write PC software that interacts with the Arduino.
Yep I want to open a file or a program like notepad or something.
Check out the "software interface" section of the forum. Lots of good possibles there.
As a random answer, I'd look into Processing myself. Should be relatively simple to write a Processing sketch that will respond to the Arduino and do some file commands on the connected computer.