å®éã«æ¥ç¶ããåç ï¼ãã¬ãããã¼ãã¯ãéé»ç¢ºèªç¨ã®LEDãå ãããçºã«ä½¿ç¨ããã ããBTã¢ã¸ã¥ã¼ã«ã¯ä¸ã«ç½®ãã¦ãã ãã§ããã¬ãããã¼ãã«ã¯åºãã£ã¦ãã¾ãããï¼ ããã¦ãã·ãªã¢ã«éä¿¡ã®ãã¹ãã«å©ç¨ããArduinoã®ã½ã¼ã¹ã§ãã NewSoftSerial(Arduinoã©ã¤ãã©ãª)ãå©ç¨ãã¦ãã¾ãã #include <NewSoftSerial.h> unsigned int count=0; NewSoftSerial mySerial(4,3); void setup() { pinMode(13, OUTPUT); // PCå´ Serial.begin(9600); Serial.flush(); // Bluetoothå´ mySerial.begin(9600); mySerial.flush(); } void loop() { // PCå´ããã®ãã¼ã¿åãåãå¦ç if
{{#tags}}- {{label}}
{{/tags}}