質問編集履歴

1

見づらいとのご指摘と改善方法を教えていただいたのでコードの挿入を使用した形に改めました!

2022/06/23 05:32

投稿

shich
shich

スコア1

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ---------
6
6
  Processing側記述
7
-
7
+ ```
8
8
  import processing.serial.*;
9
9
  Serial myPort;
10
10
 
@@ -63,10 +63,12 @@
63
63
  myPort.write("A"); //AをArduino側に送信、それをキーに数値が送り返される
64
64
  }
65
65
 
66
+ ```
67
+
66
68
  ---
67
69
 
68
70
  Arduino側
69
-
71
+ ```
70
72
  #include <Wire.h>
71
73
 
72
74
  int sensors[6]; // センサーの値を格納する配列
@@ -247,6 +249,8 @@
247
249
  delay(300);
248
250
  }
249
251
  }
252
+ ```
253
+
250
254
  ---
251
255
 
252
256
  Processingでsensors[]を3つ以上使うと何が変わるのでしょうか、よろしくお願いします。