1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-19 08:52:15 +01:00
2013-05-16 10:28:00 +02:00

26 lines
362 B
C++

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