1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-31 20:52:13 +01:00

26 lines
362 B
Arduino
Raw Normal View History

#include <Process.h>
void setup() {
2013-05-16 10:28:00 +02:00
pinMode(13,OUTPUT);
digitalWrite(13,LOW);
Serial.begin(9600);
Bridge.begin();
2013-05-16 10:28:00 +02:00
digitalWrite(13,HIGH);
delay(2000);
Process p;
p.begin("curl");
p.addParameter("http://arduino.cc/asciilogo.txt");
p.run();
2013-05-16 10:28:00 +02:00
while (p.available()>0) {
char c = p.read();
Serial.print(c);
}
}
void loop() {
}