Arduino Leonardoを購入して遊んでいます。 今回は、マウスとキーボードのエミュレーションなど。 Arduino Leonardoはマウス・キーボードライブラリが組み込まれていて、PCを操作することができます。 >Arduinoリファレンス-Leonardo特有(GarretLab) キーボード操作でtwitterログイン まずはキーボードから。 //キーボード操作でtwitterログイン(Windows Only) void setup(){ pinMode(12, INPUT_PULLUP); Keyboard.begin(); } void loop(){ while(digitalRead(12)) {delay(100);} Keyboard.press(KEY_LEFT_GUI); Keyboard.press('r'); delay(100); Keyboard.