質問編集履歴
1
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,21 +22,11 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
|
25
|
+
```ここに言語を入力
|
26
26
|
|
27
27
|
コード
|
28
28
|
|
29
|
-
```
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
`````
|
36
|
-
|
37
|
-
```
|
38
|
-
|
39
|
-
#include <MFRC522.h>
|
29
|
+
```#include <MFRC522.h>
|
40
30
|
|
41
31
|
#include <SPI.h>
|
42
32
|
|
@@ -56,6 +46,10 @@
|
|
56
46
|
|
57
47
|
|
58
48
|
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
59
53
|
#define OLED_RESET 4
|
60
54
|
|
61
55
|
#define SCL_PIN 14
|
@@ -64,6 +58,16 @@
|
|
64
58
|
|
65
59
|
#define RST_PIN 16
|
66
60
|
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
67
71
|
int code[] = {69,141,8,136}; //This is the stored UID
|
68
72
|
|
69
73
|
int codeRead = 0;
|
@@ -78,7 +82,19 @@
|
|
78
82
|
|
79
83
|
|
80
84
|
|
85
|
+
//void setup() {
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
//}
|
94
|
+
|
95
|
+
//SSID and Password to your ESP Access Point
|
96
|
+
|
81
|
-
|
97
|
+
const char* ssid = "ESPWebServer";
|
82
98
|
|
83
99
|
const char* password = "12345678";
|
84
100
|
|
@@ -156,7 +172,13 @@
|
|
156
172
|
|
157
173
|
display.print("PUT ON ID");
|
158
174
|
|
159
|
-
display.display();
|
175
|
+
display.display();
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
160
182
|
|
161
183
|
}
|
162
184
|
|
@@ -170,7 +192,7 @@
|
|
170
192
|
|
171
193
|
|
172
194
|
|
173
|
-
|
195
|
+
rfid.PCD_Init(); // Init MFRC522
|
174
196
|
|
175
197
|
|
176
198
|
|