Created
December 8, 2014 22:03
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Arduino用プログラム | |
const int PUSH = 13; | |
void setup() | |
{ | |
Serial.begin(9600); | |
pinMode(PUSH, OUTPUT); | |
digitalWrite(PUSH, LOW); | |
} | |
void loop() | |
{ | |
if(Serial.available() > 0) { | |
// シリアル通信で何か受信したら◯ボタン | |
digitalWrite(PUSH, HIGH); | |
delay(200); // 200[ms]待つ | |
digitalWrite(PUSH,LOW); | |
//吐き出す | |
Serial.read(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
avoid_thunder.pyと一緒に使うよ