{"id":8961,"date":"2016-08-10T08:41:25","date_gmt":"2016-08-09T23:41:25","guid":{"rendered":"https:\/\/www.appliot.co.jp\/lazurite-jp\/?p=8961"},"modified":"2016-08-10T08:41:25","modified_gmt":"2016-08-09T23:41:25","slug":"%e3%82%89%e3%81%9a%e3%82%89%e3%81%84%e3%81%a8%e5%a7%ab%e3%81%ae%e6%8c%91%e6%88%a6%e6%97%a5%e8%a8%98%ef%bc%88%e7%ac%ac18%e5%9b%9e%ef%bc%89orizuru%e3%82%92%e9%a3%9b%e3%81%b0%e3%81%99","status":"publish","type":"post","link":"https:\/\/www.appliot.co.jp\/lazurite-jp\/lazurite\/8961.html","title":{"rendered":"\u3089\u305a\u3089\u3044\u3068\u59eb\u306e\u6311\u6226\u65e5\u8a18\uff08\u7b2c18\u56de\uff09~ORIZURU\u3092\u98db\u3070\u3059!!!~"},"content":{"rendered":"<p><a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/211.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9325\" src=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/211-251x200.png\" alt=\"21\" width=\"251\" height=\"200\" srcset=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/211-251x200.png 251w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/211.png 433w\" sizes=\"auto, (max-width: 251px) 100vw, 251px\" \/><\/a><\/p>\n<p>\u62e1\u5927\u5199\u771f\u3067\u3059\u266a<\/p>\n<p><a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/252.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9330\" src=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/252-282x200.png\" alt=\"25\" width=\"282\" height=\"200\" srcset=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/252-282x200.png 282w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/252-640x454.png 640w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/252.png 688w\" sizes=\"auto, (max-width: 282px) 100vw, 282px\" \/><\/a><\/p>\n<h2>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u30d7\u30ed\u30b0\u30e9\u30e0<\/h2>\n<p>\u524d\u56de\u307e\u3067\u306b\u5b66\u3093\u3060\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5168\u3066\u3064\u306a\u3052\u3064\u306a\u3052\u3066\u307f\u307e\u3057\u305f\u3002\u2193\u2193\u2193<\/p>\n<p>[c]<br \/>\n#define LED\t\t        26\t\t\/\/ pin number of Blue LED<br \/>\n#define ORANGE_LED \t\t25\t\t\/\/ pin number of ORANGGE LED<br \/>\n#define SUBGHZ_CH\t\t36\t\t\/\/ channel number (frequency)<br \/>\n#define PANID\t\t\t0xABCD\t\t\/\/ panid<br \/>\n#define HOST_ADDRESS\t        0x10\t\t\/\/ distination address<\/p>\n<p>short data_packet[4];<\/p>\n<p>void setup(void)<br \/>\n{<br \/>\n\tint i;<br \/>\n\tSUBGHZ_PARAM param;<br \/>\n\tfor(i=3;i&lt;=8;i++)<br \/>\n\t{<br \/>\n\t\tpinMode(i,INPUT_PULLUP);<br \/>\n\t}<\/p>\n<p>\tSubGHz.init();\t\t\t\t\/\/ initializing Sub-GHz<br \/>\n\tSubGHz.getSendMode(&amp;param);<br \/>\n\tparam.addrType = 4;<br \/>\n\tSubGHz.setSendMode(&amp;param);<\/p>\n<p>\tpinMode(LED,OUTPUT);\t\t\t\/\/ setting of LED<br \/>\n\tpinMode(ORANGE_LED,OUTPUT);\t\t\/\/ setting of LED<br \/>\n\tdigitalWrite(LED,HIGH);\t\t\t\/\/ setting of LED<br \/>\n\tSerial.begin(115200);<br \/>\n}<\/p>\n<p>void loop(void)<br \/>\n{<br \/>\n\tshort rx;<br \/>\n\tshort ry;<br \/>\n\tshort rz;<br \/>\n\tunsigned char sw;<br \/>\n\tint i;<br \/>\n\tSUBGHZ_MSG msg;<\/p>\n<p>\tdata_packet[0]=analogRead(A0) &#8211; 512;<br \/>\n\tdata_packet[1]=analogRead(A1) &#8211; 512;<br \/>\n\tdata_packet[2]=analogRead(A2);<\/p>\n<p>\tsw=0;<br \/>\n\tfor(i=3;i&lt;=8;i++)<br \/>\n\t{<br \/>\n\t\tsw = (sw &lt;&lt; 1) + ((digitalRead(i) == LOW) ? 1 : 0);<br \/>\n\t}<br \/>\n\tdata_packet[3]=(short)sw;<\/p>\n<p>\tSubGHz.begin(SUBGHZ_CH, PANID,  SUBGHZ_100KBPS, SUBGHZ_PWR_20MW);\t\t\t\/\/ start Sub-GHz<\/p>\n<p>\t\/\/ preparing data<br \/>\n\tdigitalWrite(LED,LOW);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ LED ON<br \/>\n\twhile(1)<br \/>\n\t{<br \/>\n\t\tmsg = SubGHz.send(PANID, HOST_ADDRESS, (unsigned char*)&amp;data_packet, sizeof(data_packet),NULL);\t\t\/\/ send data<br \/>\n\t\tif(msg == SUBGHZ_TX_CCA_FAIL)<br \/>\n\t\t{<br \/>\n\t\t\tdigitalWrite(ORANGE_LED,LOW);<br \/>\n\t\t}<br \/>\n\t\telse<br \/>\n\t\t{<br \/>\n\t\t\tdigitalWrite(ORANGE_LED,HIGH);<br \/>\n\t\t\tbreak;<br \/>\n\t\t}<br \/>\n\t}<br \/>\n\tdigitalWrite(LED,HIGH);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ LED off<br \/>\n\tSerial.print_long((long)data_packet[0],DEC);<br \/>\n\tSerial.print(&quot;,&quot;);<br \/>\n\tSerial.print_long((long)data_packet[1],DEC);<br \/>\n\tSerial.print(&quot;,&quot;);<br \/>\n\tSerial.print_long((long)data_packet[2],DEC);<br \/>\n\tSerial.print(&quot;,&quot;);<br \/>\n\tSerial.print_long((long)data_packet[3],DEC);<br \/>\n\tSerial.println(&quot;&quot;);<br \/>\n\t\/\/ close<br \/>\n\tSubGHz.close();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ Sub-GHz module sets into power down mode.<br \/>\n\tdelay(50);<br \/>\n}<br \/>\n[\/c]<\/p>\n<h2>ORIZURU\u98db\u3073\u307e\u3059\u2606<\/h2>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/JhTy8Ccolwc\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u98db\u3073\u7acb\u3064\u6642\u306b\u3001\u4e21\u7ffc\u306e\u52d5\u304d\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002DC\u30e2\u30fc\u30bf\u30fc\u304c\u307e\u308f\u308a\u3001\u52e2\u3044\u3088\u304f\u7fbd\u304c\u7fbd\u3070\u305f\u3044\u3066\u3044\u307e\u3059\u306d\uff01\u305d\u3057\u3066\u3001\u98db\u3073\u7acb\u3061\u307e\u3059\uff01\uff01<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/Z4IkX1Jc4gQ\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>ORIZURU\u304c\u9811\u5f35\u3063\u3066\u98db\u3093\u3067\u304f\u308c\u3066\u3044\u307e\u3059\u2661\u2665\u2661\u98db\u884c\u6210\u529f\u3067\u3059<a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/155.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2562\" src=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/stamp1-200x200.png\" alt=\"stamp1\" width=\"80\" height=\"80\" srcset=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/stamp1-200x200.png 200w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/stamp1.png 250w\" sizes=\"auto, (max-width: 80px) 100vw, 80px\" \/><\/a><\/p>\n<p>\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u3067ORIZURU\u306e\u65b9\u5411\u3068\u3001\u4e0a\u6607\u4e0b\u964d\u3092\u8abf\u7bc0\u3057\u3066\u58c1\u306b\u3076\u3064\u304b\u3089\u306a\u3044\u3088\u3046\u3001\u589c\u843d\u3057\u306a\u3057\u3088\u3046\u306b\u5236\u5fa1\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u3082\u96fb\u5b50\u5de5\u4f5c\u3082\u5168\u304f\u306e\u521d\u5fc3\u8005\u306e\u308f\u305f\u3057\u3067\u3059\u304c\u3001\u5922\u3067\u3042\u3063\u305fORIZURU\u3092\u98db\u3070\u3059\u4e8b\u304c\u51fa\u6765\u307e\u3057\u305f~\u3002\u611f\u52d5\u306e\u6642\u9593\u3067\u3057\u305f\u2606\u2606\u2606<\/p>\n<p>\u6b21\u56de\u306f\u3001\u89e6\u3063\u305f\u3089\u53cd\u5fdc\u3059\u308b\u300c\u9759\u96fb\u30bf\u30c3\u30c1\u300d\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u8003\u3048\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\uff01<\/p>\n<p><a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/character_all.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8039 size-large\" src=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/Laz-princess_footer-640x87.png\" alt=\"Laz-princess_footer\" width=\"640\" height=\"87\" srcset=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/Laz-princess_footer-640x87.png 640w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/Laz-princess_footer-300x41.png 300w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/Laz-princess_footer.png 769w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u62e1\u5927\u5199\u771f\u3067\u3059\u266a \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u30d7\u30ed\u30b0\u30e9\u30e0 \u524d\u56de\u307e\u3067\u306b\u5b66\u3093\u3060\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5168\u3066\u3064\u306a\u3052\u3064\u306a\u3052\u3066\u307f\u307e\u3057\u305f\u3002\u2193\u2193\u2193 [c] #define LED 26 \/\/ pin number of Blue LED #define ORANGE_LED 25 \/\/ pin number of ORANGGE LED #define SUBGHZ_CH 36 \/\/ channel number (frequency) #define PANID 0xABCD \/\/ panid #define HOST_ADDRESS 0x10 \/\/ distination address short data_packet[4]; void setup(void) { int i; SUBGHZ_PARAM param; for(i=3;i&lt;=8;i++) { pinMode(i,INPUT_PULLUP); } SubGHz.init(); \/\/ initializing Sub-GHz SubGHz.getSendMode(&amp;param); param.addrType = 4; SubGHz.setSendMode(&amp;param); pinMode(LED,OUTPUT); \/\/ setting of LED pinMode(ORANGE_LED,OUTPUT); \/\/ se [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":8040,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[11,21],"tags":[],"class_list":["post-8961","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lazurite","category-21"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts\/8961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/comments?post=8961"}],"version-history":[{"count":0,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts\/8961\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/media\/8040"}],"wp:attachment":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/media?parent=8961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/categories?post=8961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/tags?post=8961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}