{"id":672,"date":"2015-05-08T08:58:04","date_gmt":"2015-05-07T23:58:04","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=672"},"modified":"2015-05-08T08:58:04","modified_gmt":"2015-05-07T23:58:04","slug":"esp8266-esp-12-doubleblink","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2015\/05\/08\/esp8266-esp-12-doubleblink.html","title":{"rendered":"ESP8266 ESP-12 DoubleBlink"},"content":{"rendered":"
ESP8266 \u30c1\u30c3\u30d7\u3092\u4f7f\u3063\u305f WiFi\u30e2\u30b8\u30e5\u30fc\u30eb\u306e ESP-12 \u3092\u89e6\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n
\u9762\u767d\u3044\u3053\u3068\u306b\u3001\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u5358\u4f53\u3067GPIO\u304c\u3042\u308a\u3001ArduinoIDE\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304d\u8fbc\u307f\u3067\u304d\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u70b9\u3067\u3059\u3002<\/p>\n
\u307e\u305a\u306f\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306eHelloWorld\u3067\u3042\u308bLED\u70b9\u6ec5\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n
<\/p>\n
\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3061\u3063\u3053\u3044\u3067\u3059\u30023.3V\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u306b\u523a\u3055\u3089\u306a\u30442mm\u30d4\u30c3\u30c1\u306a\u306e\u3067\u4e0b\u99c4\u3092\u5c65\u304b\u305b\u3066\u3044\u307e\u3059\u3002 \u57fa\u76e4\u306e\u3057\u305f\u306b\u30b8\u30e3\u30f3\u30d1\u30fc\u3092\u4f38\u3070\u3057\u3066\u3084\u3089\u306a\u3044\u3068\u914d\u7dda\u3067\u304d\u307e\u305b\u306c\u3002<\/p>\n
<\/p>\n
\u305d\u306e\u3046\u3061\u3001\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u306eArduinoIDE \u306b\u3082\u5165\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u304b\u3089ESP8266 \u3092\u30b5\u30dd\u30fc\u30c8\u3057\u305fIDE\u3092\u30b2\u30c3\u30c8\u3057\u307e\u3059\u3002<\/p>\n
<\/p>\n
\nesp8266\/Arduino \u00b7 GitHub<\/p>\n
https:\/\/github.com\/esp8266\/Arduino<\/a><\/p>\n<\/blockquote>\n
<\/p>\n
\n
<\/p>\n
\u30dc\u30fc\u30c9\u306bESP8266 \u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n
<\/p>\n
\u66f8\u304d\u8fbc\u307f\u88c5\u7f6e\u306b\u306f\u3001esptool \u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n
<\/p>\n
\u914d\u7dda\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u4e0a\u306b\u3042\u308b\u306e\u306f\u3001\uff15V to 3V \u306e\u30ec\u30ae\u30e5\u30ec\u30fc\u30bf\u30fc\u3067\u3059\u3002\u66f8\u304d\u8fbc\u307f\u3059\u308b\u3068\u304d\u306f\u3001GPIO0 \u3092GND \u306b\u843d\u3068\u3057\u3066\u3084\u308a\u307e\u3059\u3002<\/p>\n
<\/p>\n
\u30b3\u30fc\u30c9\u306f\u30c0\u30d6\u30eb\u30d6\u30ea\u30f3\u30af\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n
\/*\n ESP8266 Double Blink Sample.\n Arduino-compatible IDE with ESP8266\n arduino-1.6.1-macosx-java-latest-signed.zip\n https:\/\/github.com\/esp8266\/Arduino\n JunkHack 2015.05.08\n *\/\n \nvoid setup() {\n pinMode(0, OUTPUT);\n}\n \nvoid loop() {\n digitalWrite(0, HIGH);\n delay(400);\n digitalWrite(0, LOW);\n delay(100);\n digitalWrite(0, HIGH);\n delay(500);\n digitalWrite(0, LOW);\n delay(1000);\n}<\/pre>\nIDE \u304b\u3089\u66f8\u304d\u8fbc\u307f\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n
<\/p>\n
\n
\u3068\u308a\u3042\u3048\u305a\u3001\u66f8\u304d\u8fbc\u307f\u65b9\u6cd5\u306f\u308f\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n
\u6620\u50cf\u306f\u4ee5\u4e0b\u3092\u3069\u3046\u305e\u3002<\/p>\n
[youtube https:\/\/www.youtube.com\/watch?v=9TUboOLnz6A]<\/p>\n
\u6b21\u56de\u306f\u3001WiFi \u3067\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u3059\u308b\u4f55\u304b\u3092\u3084\u308a\u305f\u3044\u3067\u3059\u306d\u3002<\/p>\n
\u9762\u767d\u3044\u3053\u3068\u306b\u3001\u900f\u904e\u30e2\u30fc\u30c9\u306b\u3059\u308b\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u3082\u3042\u308b\u306e\u3067\u8a66\u3057\u3066\u307f\u305f\u3044\u3067\u3059\u306d\u3002<\/p>\n
<\/p>\n
\nESP8266-transparent-bridge<\/p>\n