{"id":912,"date":"2020-02-29T13:28:50","date_gmt":"2020-02-29T04:28:50","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=912"},"modified":"2020-02-29T20:23:40","modified_gmt":"2020-02-29T11:23:40","slug":"%e3%82%b8%e3%83%a7%e3%82%a4%e3%82%b9%e3%83%86%e3%82%a3%e3%83%83%e3%82%af%e3%83%9e%e3%82%a6%e3%82%b9%e3%81%ae%e3%82%ab%e3%83%bc%e3%82%bd%e3%83%ab%e3%82%92%e6%bb%91%e3%82%89%e3%81%8b%e3%81%ab%e5%8b%95","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2020\/02\/29\/912\/","title":{"rendered":"\u30b8\u30e7\u30a4\u30b9\u30c6\u30a3\u30c3\u30af\u30de\u30a6\u30b9\u306e\u30ab\u30fc\u30bd\u30eb\u3092\u6ed1\u3089\u304b\u306b\u52d5\u304b\u3057\u305f\u3044"},"content":{"rendered":"<h1>\u30b8\u30e7\u30a4\u30b9\u30c6\u30a3\u30c3\u30af\u30de\u30a6\u30b9<\/h1>\n<p>\u6ed1\u3089\u304b\u306b\u3057\u305f\u3044\u3002\u3057\u305f\u3044\u306e\u3067\u8abf\u3079\u305f\u3053\u3068\u3092\u66f8\u3044\u3066\u304f\u3002<\/p>\n<h2>\u30b8\u30e7\u30a4\u30b9\u30c6\u30a3\u30c3\u30af\u306e\u50be\u304d<\/h2>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-913\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy04-300x96.png\" alt=\"\" width=\"300\" height=\"96\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy04-300x96.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy04-1024x329.png 1024w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy04-768x246.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy04-1536x493.png 1536w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy04-2048x657.png 2048w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u5de6\u304b\u3089\u9759\u6b62\u72b6\u614b\u3001X\u8ef8\u304c0\u306b\u5909\u308f\u308b\u30ae\u30ea\u30ae\u30ea\u306e\u4f4d\u7f6e\u3001\u6b62\u307e\u308b\u307e\u3067\u76ee\u4e00\u676f\u52d5\u304b\u3057\u305f\u6642\u306e\u4f4d\u7f6e\u3002\u610f\u8b58\u7684\u306b\u306f\u53f3\u306e\u4f4d\u7f6e\u30670\u306b\u5909\u308f\u3063\u3066\u308b\u3088\u3046\u306b\u601d\u3046\u3051\u3069\u3001\u5b9f\u969b\u306f\u771f\u3093\u4e2d\u306e\u4f4d\u7f6e\u30670\u306b\u306a\u308b\u300222\u00b0\u3050\u3089\u3044\u30670\u3001\u3067\u308239\u00b0\u3050\u3089\u3044\u307e\u3067\u306f\u52d5\u304f\u3002\u3053\u306e\u5dee\u304c\u7406\u60f3\u3068\u73fe\u5b9f\u306e\u5dee\u3092\u751f\u3093\u3067\u308b\u3088\u3046\u306b\u601d\u3046\u3002\u30b9\u30c8\u30c3\u30d1\u30fc\u3092\u3064\u3051\u308b\u3068\u304b\u3001\u5024\u3092\u4f38\u5f35\u3059\u308b\u3068\u304b?\u30b9\u30c8\u30c3\u30d1\u30fc\u306f3D\u30d7\u30ea\u30f3\u30bf\u3068\u304b\u4f7f\u308f\u306a\u3044\u3068\u3060\u3057\u3001\u5024\u306f\u4f38\u9577\u3057\u305f\u3068\u3053\u308d\u306722\u00b0\u30fc39\u00b0\u9593\u306f\u5024\u304c\u52d5\u304b\u306a\u304f\u306a\u308b\u306e\u3067\u610f\u5473\u7121\u3044\u6c17\u3082\u3059\u308b\u3002<\/p>\n<h2>\u30b8\u30e7\u30a4\u30b9\u30c6\u30a3\u30c3\u30af\u306e\u53ef\u5909\u62b5\u6297\u306e\u7279\u6027<\/h2>\n<p><a href=\"https:\/\/www.marutsu.co.jp\/contents\/shop\/marutsu\/mame\/78.html\">https:\/\/www.marutsu.co.jp\/contents\/shop\/marutsu\/mame\/78.html<\/a><\/p>\n<p>\u53ef\u5909\u62b5\u6297\u306b\u306f\u7279\u6027\u304c\u3042\u308b\u305d\u3046\u3067\u3001ABC\u30ab\u30fc\u30d6\u306e\u9055\u3044\u304c\u3042\u308b\u307f\u305f\u3044\u3002\u3058\u3083\u3042\u3053\u306e\u30b9\u30c6\u30a3\u30c3\u30af\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b\u53ef\u5909\u62b5\u6297\u306e\u7279\u6027\u306f\u306a\u3093\u3058\u3083\u3089\u307b\u3044\u3068\u601d\u3063\u305f\u3051\u3069\u3001\u8abf\u3079\u308b\u3068\u3057\u305f\u3089\u5206\u89e3\u3057\u3066\u62b5\u6297\u3092\u8abf\u3079\u308b\u304b\u3001\u89d2\u5ea6\u3054\u3068\u306b\u5024\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u53d6\u3063\u3066\u30ab\u30fc\u30d6\u306e\u8fd1\u4f3c\u3092\u6c42\u3081\u308b\u3068\u304b\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u6b63\u76f4\u3067\u304d\u308b\u6c17\u304c\u3057\u306a\u3044\u3057\u6c17\u304c\u5f15\u3051\u308b\u306e\u3067\u3084\u308a\u305f\u304f\u306a\u3044\u3002\u3053\u3053\u306fB\u30ab\u30fc\u30d6\u3067\u3042\u308b\u3068\u306e\u524d\u63d0\u306e\u3082\u3068\u306b\u52d5\u3044\u3066\u306f\u3069\u3046\u304b\u3002\u3069\u3046\u306a\u3093\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<h2>C++\u306eint-long\u578b\u306e\u7aef\u6570\u51e6\u7406<\/h2>\n<p>map()\u5185\u90e8\u3067\u9664\u7b97\u304c\u3042\u308a\u3001analogRead()\u306fint\u578b\u3067\u3001map()\u306flong\u578b\u306a\u306e\u3067\u3069\u3061\u3089\u3082\u6574\u6570\u578b\u3060\u304b\u3089\u7aef\u6570\u304c\u51fa\u305f\u3068\u304d\u306e\u4e38\u3081\u65b9\u3067\u6570\u5024\u304c\u305a\u308c\u308b\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3063\u305f\u3002\u5b9f\u9a13\u3057\u3066\u307f\u308b\u3002<\/p>\n<pre><code class=\"cpp\">void setup() {\r\n  Serial.begin(9600);\r\n  delay(1000);\r\n  for (int i = 0 ; i &lt;= 1023; i++) {\r\n    Serial.print(map(i, 0, 1023, -3, 3));\r\n    Serial.println();\r\n  }\r\n}\r\n\r\nvoid loop() {\r\n}<\/code><\/pre>\n<p>\u3053\u3093\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u307e\u3057\u3066\u30fc\u3001\u51fa\u3066\u304d\u305f\u6570\u5b57\u3092\u30a8\u30af\u30bb\u30eb\u3055\u3093\u3067\u8a08\u7b97\u3057\u305f\u7d50\u679c\u3068\u6bd4\u8f03\u3057\u3066\u307f\u308b\u3002\u9577\u3044\u306e\u3067\u5909\u5316\u3057\u305f\u90e8\u5206\u3060\u3051\u3002<\/p>\n<h3>-3\u2266out\u22663\u306e\u5834\u5408<\/h3>\n<table width=\"367\">\n<tbody>\n<tr>\n<td width=\"44\">raw<\/td>\n<td width=\"111\">map<br \/>\n(excel)<\/td>\n<td width=\"68\">map<br \/>\n(arduino)<\/td>\n<td width=\"63\">roundup<br \/>\n(excel)<\/td>\n<td width=\"81\">rounddown<br \/>\n(excel)<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>-3<\/td>\n<td>-3<\/td>\n<td>-3<\/td>\n<td>-3<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>-2.994134897<\/td>\n<td>-3<\/td>\n<td>-3<\/td>\n<td>-2<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>-2.988269795<\/td>\n<td>-3<\/td>\n<td>-3<\/td>\n<td>-2<\/td>\n<\/tr>\n<tr>\n<td>169<\/td>\n<td>-2.008797654<\/td>\n<td>-3<\/td>\n<td>-3<\/td>\n<td>-2<\/td>\n<\/tr>\n<tr>\n<td>170<\/td>\n<td>-2.002932551<\/td>\n<td>-3<\/td>\n<td>-3<\/td>\n<td>-2<\/td>\n<\/tr>\n<tr>\n<td>171<\/td>\n<td>-1.997067449<\/td>\n<td>-2<\/td>\n<td>-2<\/td>\n<td>-1<\/td>\n<\/tr>\n<tr>\n<td>172<\/td>\n<td>-1.991202346<\/td>\n<td>-2<\/td>\n<td>-2<\/td>\n<td>-1<\/td>\n<\/tr>\n<tr>\n<td>339<\/td>\n<td>-1.011730205<\/td>\n<td>-2<\/td>\n<td>-2<\/td>\n<td>-1<\/td>\n<\/tr>\n<tr>\n<td>340<\/td>\n<td>-1.005865103<\/td>\n<td>-2<\/td>\n<td>-2<\/td>\n<td>-1<\/td>\n<\/tr>\n<tr>\n<td>341<\/td>\n<td>-1<\/td>\n<td>-1<\/td>\n<td>-1<\/td>\n<td>-1<\/td>\n<\/tr>\n<tr>\n<td>342<\/td>\n<td>-0.994134897<\/td>\n<td>-1<\/td>\n<td>-1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>343<\/td>\n<td>-0.988269795<\/td>\n<td>-1<\/td>\n<td>-1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>510<\/td>\n<td>-0.008797654<\/td>\n<td>-1<\/td>\n<td>-1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>511<\/td>\n<td>-0.002932551<\/td>\n<td>-1<\/td>\n<td>-1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>512<\/td>\n<td>0.002932551<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>513<\/td>\n<td>0.008797654<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>680<\/td>\n<td>0.988269795<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>681<\/td>\n<td>0.994134897<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>682<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>683<\/td>\n<td>1.005865103<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>684<\/td>\n<td>1.011730205<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>851<\/td>\n<td>1.991202346<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>852<\/td>\n<td>1.997067449<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>853<\/td>\n<td>2.002932551<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>854<\/td>\n<td>2.008797654<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>1021<\/td>\n<td>2.988269795<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>1022<\/td>\n<td>2.994134897<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>1023<\/td>\n<td>3<\/td>\n<td>3<\/td>\n<td>3<\/td>\n<td>3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-915\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy05-300x176.png\" alt=\"\" width=\"300\" height=\"176\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy05-300x176.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy05.png 701w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h3>-12\u2266out\u226612\u306e\u5834\u5408<\/h3>\n<p>\u30b0\u30e9\u30d5\u306e\u5f15\u7528\u306f\u4e0a\u3068\u540c\u3058\u3068\u3053\u3060\u3051\u3002<\/p>\n<table width=\"367\">\n<tbody>\n<tr>\n<td width=\"44\">raw<\/td>\n<td width=\"111\">map<br \/>\n(excel)<\/td>\n<td width=\"68\">map<br \/>\n(arduino)<\/td>\n<td width=\"63\">roundup<br \/>\n(excel)<\/td>\n<td width=\"81\">rounddown<br \/>\n(excel)<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>-12<\/td>\n<td>-12<\/td>\n<td>-12<\/td>\n<td>-12<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>-11.97653959<\/td>\n<td>-12<\/td>\n<td>-12<\/td>\n<td>-11<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>-11.95307918<\/td>\n<td>-12<\/td>\n<td>-12<\/td>\n<td>-11<\/td>\n<\/tr>\n<tr>\n<td>169<\/td>\n<td>-8.035190616<\/td>\n<td>-9<\/td>\n<td>-9<\/td>\n<td>-8<\/td>\n<\/tr>\n<tr>\n<td>170<\/td>\n<td>-8.011730205<\/td>\n<td>-9<\/td>\n<td>-9<\/td>\n<td>-8<\/td>\n<\/tr>\n<tr>\n<td>171<\/td>\n<td>-7.988269795<\/td>\n<td>-8<\/td>\n<td>-8<\/td>\n<td>-7<\/td>\n<\/tr>\n<tr>\n<td>172<\/td>\n<td>-7.964809384<\/td>\n<td>-8<\/td>\n<td>-8<\/td>\n<td>-7<\/td>\n<\/tr>\n<tr>\n<td>339<\/td>\n<td>-4.046920821<\/td>\n<td>-5<\/td>\n<td>-5<\/td>\n<td>-4<\/td>\n<\/tr>\n<tr>\n<td>340<\/td>\n<td>-4.023460411<\/td>\n<td>-5<\/td>\n<td>-5<\/td>\n<td>-4<\/td>\n<\/tr>\n<tr>\n<td>341<\/td>\n<td>-4<\/td>\n<td>-4<\/td>\n<td>-4<\/td>\n<td>-4<\/td>\n<\/tr>\n<tr>\n<td>342<\/td>\n<td>-3.976539589<\/td>\n<td>-4<\/td>\n<td>-4<\/td>\n<td>-3<\/td>\n<\/tr>\n<tr>\n<td>343<\/td>\n<td>-3.953079179<\/td>\n<td>-4<\/td>\n<td>-4<\/td>\n<td>-3<\/td>\n<\/tr>\n<tr>\n<td>510<\/td>\n<td>-0.035190616<\/td>\n<td>-1<\/td>\n<td>-1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>511<\/td>\n<td>-0.011730205<\/td>\n<td>-1<\/td>\n<td>-1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>512<\/td>\n<td>0.011730205<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>513<\/td>\n<td>0.035190616<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>680<\/td>\n<td>3.953079179<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>681<\/td>\n<td>3.976539589<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>682<\/td>\n<td>4<\/td>\n<td>4<\/td>\n<td>4<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>683<\/td>\n<td>4.023460411<\/td>\n<td>4<\/td>\n<td>5<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>684<\/td>\n<td>4.046920821<\/td>\n<td>4<\/td>\n<td>5<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>851<\/td>\n<td>7.964809384<\/td>\n<td>7<\/td>\n<td>8<\/td>\n<td>7<\/td>\n<\/tr>\n<tr>\n<td>852<\/td>\n<td>7.988269795<\/td>\n<td>7<\/td>\n<td>8<\/td>\n<td>7<\/td>\n<\/tr>\n<tr>\n<td>853<\/td>\n<td>8.011730205<\/td>\n<td>8<\/td>\n<td>9<\/td>\n<td>8<\/td>\n<\/tr>\n<tr>\n<td>854<\/td>\n<td>8.035190616<\/td>\n<td>8<\/td>\n<td>9<\/td>\n<td>8<\/td>\n<\/tr>\n<tr>\n<td>1021<\/td>\n<td>11.95307918<\/td>\n<td>11<\/td>\n<td>12<\/td>\n<td>11<\/td>\n<\/tr>\n<tr>\n<td>1022<\/td>\n<td>11.97653959<\/td>\n<td>11<\/td>\n<td>12<\/td>\n<td>11<\/td>\n<\/tr>\n<tr>\n<td>1023<\/td>\n<td>12<\/td>\n<td>12<\/td>\n<td>12<\/td>\n<td>12<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy06.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-916\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy06-300x143.png\" alt=\"\" width=\"300\" height=\"143\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy06-300x143.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy06-768x365.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy06.png 806w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3046\u30fc\u3093\u3002\u30a8\u30af\u30bb\u30eb\u3082\u7656\u304c\u3042\u3063\u3066\u3001\u306f\u3063\u304d\u308a\u3068\u306f\u8a00\u3048\u306a\u3044\u3051\u3069\u3002\u8ca0\u306e\u6570\u306e\u5834\u5408\u3001\u30a8\u30af\u30bb\u30eb\u3067\u3044\u3046ROUNDUP\u3067\u6b63\u306e\u6570\u3060\u3068ROUNDDOWN\u3068\u4e00\u81f4\u3059\u308b\u3002\u305f\u3060\u3001Arduino\u306e\u65b9\u304c\u304d\u308c\u3044\u306b\u968e\u6bb5\u72b6\u306b\u306a\u3063\u3066\u3044\u3066\u3001\u3053\u308c\u306f\u30a8\u30af\u30bb\u30eb\u304c\u30a2\u30ec\u306a\u306e\u304b\u306a?\u3067\u3082\u307e\u3041\u3001510-513\u3042\u305f\u308a\u3092\u898b\u308b\u3068\u307b\u3093\u306e\u5c11\u3057\u3060\u3051\u3069\u3001Arduino\u306emap()\u306f\u6b63\u5074\u306b\u5024\u304c\u632f\u308c\u3066\u3044\u308b\u3088\u3046\u306a\u6c17\u304c\u3059\u308b\u3002\u611f\u899a\u7684\u306b\u306f\u3001ROUNDDOWN\u304c\u8fd1\u3044\u304b\u306a\u3041\u3068\u601d\u3063\u305f\u3002map()\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306b\u306f<\/p>\n<blockquote><p>The\u00a0<code>map()<\/code>\u00a0function uses integer math so will not generate fractions, when the math might indicate that it should do so. Fractional remainders are truncated, and are not rounded or averaged.<\/p>\n<h3 id=\"_notes_warnings\" class=\"float\">Notes &amp; Warnings<\/h3>\n<div class=\"paragraph\">\n<p>As previously mentioned, the map() function uses integer math. So fractions might get suppressed due to this. For example, fractions like 3\/2, 4\/3, 5\/4 will all be returned as 1 from the map() function, despite their different actual values. So if your project requires precise calculations (e.g. voltage accurate to 3 decimal places), please consider avoiding map() and implementing the calculations manually in your code yourself.<\/p>\n<\/div>\n<\/blockquote>\n<p>\u3066\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3001\u81ea\u5206\u3067\u3084\u308c\u3063\u3066\u3053\u3068\u304b\u3041\u3002\u3046\u30fc\u3093\u3046\u30fc\u3093\u3002<\/p>\n<h2>\u76f4\u7dda\u306e\u30b0\u30e9\u30d5\u3092\u66f2\u7dda\u306b\u5909\u63db<\/h2>\n<p>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u96fb\u5727\u304b\u3089AnalogRead()\u3067\u6570\u5024\u3092\u53d6\u5f97\u3059\u308b\u3068\u3053\u308d\u306e\u7279\u6027\u306f\u5206\u304b\u3089\u306a\u3044\u3082\u306e\u306e\u3001\u53d6\u5f97\u3057\u305f\u6570\u5024\u306f0-1023\u3067\u5909\u5316\u3059\u308b\u76f4\u7dda\u306e\u30b0\u30e9\u30d5\u306b\u306a\u308b\u3002\u3067\u3001\u7b49\u901f\u76f4\u7dda\u904b\u52d5\u3063\u3066\u3044\u3046\u306e\u306f\u4eba\u9593\u306e\u611f\u899a\u3068\u5408\u3063\u3066\u306a\u3044\u3089\u3057\u3044\u3002<\/p>\n<p><a href=\"https:\/\/www.autoexe.co.jp\/kijima\/column8.html\">https:\/\/www.autoexe.co.jp\/kijima\/column8.html<\/a><\/p>\n<p>\u6700\u521d\u306f\u5f90\u3005\u306b\u901f\u5ea6\u304c\u4e0a\u304c\u3063\u3066\u3044\u3063\u3066\u3001\u6642\u9593\u304c\u7d4c\u3064\u3068\u901f\u5ea6\u306e\u4e0a\u304c\u308a\u65b9\u304c\u6025\u306b\u306a\u308b\u3001\u307f\u305f\u3044\u306a\u3002\u305d\u3046\u3044\u3046\u306e\u304c\u4eba\u9593\u306e\u611f\u899a\u306b\u5408\u3063\u3066\u308b\u307f\u305f\u3044\u3002\u3060\u304b\u3089\u30010-1023\u306e\u5024\u3092\u305d\u3046\u3044\u3046\u611f\u3058\u306b\u5909\u5316\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u6ed1\u3089\u304b\u611f\u3092\u5f97\u3089\u308c\u308b\u306e\u3067\u306f\u3068\u601d\u3063\u305f\u3002\u3067\u3001\u305d\u3046\u3044\u3046\u5909\u63db\u3001\u76f4\u7dda\u306e\u30b0\u30e9\u30d5\u306b\u30ab\u30fc\u30d6\u3092\u304b\u3051\u308b\u3088\u3046\u306a\u5909\u63db\u306f\u3069\u3046\u3044\u3046\u306e\u304c\u3042\u308b\u3093\u3060\u308d\u3046\u3068\u8abf\u3079\u3066\u307f\u305f\u3002\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u306f<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-918\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy07-300x300.png\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy07-300x300.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy07-150x150.png 150w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy07-100x100.png 100w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy07.png 500w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u3046\u3044\u3046\u611f\u3058\u3002\u8003\u3048\u65b9\u5408\u3063\u3066\u3093\u306e\u304b\u4e0d\u5b89\u306b\u306a\u3063\u3066\u304d\u305f\u3002\u3069\u3046\u306a\u3093\u3060\u308d\u3002<\/p>\n<h3>y=x^3<\/h3>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/MSP29182029c2c0afh48iid000058ff282d0c520g9f.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-919\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/MSP29182029c2c0afh48iid000058ff282d0c520g9f-300x130.gif\" alt=\"\" width=\"300\" height=\"130\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/MSP29182029c2c0afh48iid000058ff282d0c520g9f-300x130.gif 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/MSP29182029c2c0afh48iid000058ff282d0c520g9f-768x332.gif 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.wolframalpha.com\/input\/?i=y%3Dx%5E3&amp;lang=ja\">https:\/\/www.wolframalpha.com\/input\/?i=y%3Dx%5E3&amp;lang=ja<\/a><\/p>\n<p>x^3\u306e\u30b0\u30e9\u30d5\u304c\u305d\u308c\u3063\u307d\u3044\u3002\u3068\u308a\u3042\u3048\u305a\u30a8\u30af\u30bb\u30eb\u30670-1023\u306b\u5408\u3046\u3088\u3046\u306b\u8a66\u3057\u3066\u307f\u308b\u3002<\/p>\n<ol>\n<li>0-1023\u3092\u3001-1\u304b\u30891\u306b\u5909\u63db\u3059\u308b\u3002\n<ul>\n<li>=((A2-0)\/(1023-0))*(1-(-1))+(-1)<\/li>\n<\/ul>\n<\/li>\n<li>1\u306e\u5024\u30923\u4e57\u3059\u308b\u3002\n<ul>\n<li>=POWER(B2,3)<\/li>\n<\/ul>\n<\/li>\n<li>2\u306e\u5024\u30920-1023\u306b\u5909\u63db\u3059\u308b\u3002\n<ul>\n<li>=((C2-(-1))\/(1-(-1)))*(1023-0)<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u3059\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u306e\u30b0\u30e9\u30d5\u306b\u306a\u3063\u305f\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy08.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-920\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy08-300x180.png\" alt=\"\" width=\"300\" height=\"180\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy08-300x180.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy08.png 481w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3088\u3055\u3052\u306a\u6c17\u304c\u3059\u308b\u30023\u306e\u3068\u3053\u3067Mouse.move\u3067\u4f7f\u3046\u7bc4\u56f2\u306b\u5909\u63db\u3057\u3066\u3082\u3044\u3044\u304b\u306a\u3002<\/p>\n<h3>\u30b7\u30b0\u30e2\u30a4\u30c9\u95a2\u6570<\/h3>\n<p>\u63a2\u3057\u3066\u305f\u3089\u30b7\u30b0\u30e2\u30a4\u30c9\u95a2\u6570\u3068\u3044\u3046\u306e\u3092\u898b\u3064\u3051\u305f\u3002<\/p>\n<p><a href=\"https:\/\/ja.wikipedia.org\/wiki\/%E3%82%B7%E3%82%B0%E3%83%A2%E3%82%A4%E3%83%89%E9%96%A2%E6%95%B0\">https:\/\/ja.wikipedia.org\/wiki\/%E3%82%B7%E3%82%B0%E3%83%A2%E3%82%A4%E3%83%89%E9%96%A2%E6%95%B0<\/a><\/p>\n<p>\u3053\u3053\u306e\u6a19\u6e96\u30b7\u30b0\u30e2\u30a4\u30c9\u95a2\u6570\u3063\u3066\u3044\u3046\u306e\u304c\u305d\u308c\u3063\u307d\u3044\u3002\u3051\u30690.5\u4ed8\u8fd1\u3067\u6025\u306b\u306a\u308b\u306e\u3058\u3083\u306a\u304f\u3066\u305d\u3053\u306f\u6f70\u308c\u3066\u307b\u3057\u3044\u3002\u3066\u3053\u3068\u306f2\u3064\u91cd\u306d\u308a\u3083\u3044\u3044\u3093\u3058\u3083\u306d?<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy09.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-921\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy09-300x232.png\" alt=\"\" width=\"300\" height=\"232\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy09-300x232.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy09.png 573w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a title=\"Creative Commons Attribution-Share Alike 3.0\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/3.0\/\">CC BY-SA 3.0<\/a>, <a href=\"https:\/\/commons.wikimedia.org\/w\/index.php?curid=644559\">Link<\/a><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u3002\u3084\u3063\u3066\u307f\u3088\u30fc\u3002<\/p>\n<h4>\u30b2\u30a4\u30f3\u304c1\u306e\u5834\u5408(a=1)<\/h4>\n<p>\u30b0\u30e9\u30d5\u898b\u308b\u3068x\u304c-6\u304b\u30896\u306e\u533a\u9593\u3067\u3001y\u304c0-1\u3067\u3044\u3044\u611f\u3058\u306b\u5909\u5316\u3057\u3066\u308b\u307f\u305f\u3044\u306a\u306e\u3067\u305d\u3093\u306a\u611f\u3058\u306b\u3059\u308b\u3002<\/p>\n<ol>\n<li>0-511\u30fb512-1023\u306e2\u533a\u9593\u306b\u5206\u3051\u3066\u3001\u305d\u308c\u305e\u308c(-6)-6\u306b\u5909\u63db\n<ul>\n<li>=((A2-0)\/(511-0))*(6-(-6))+(-6)<\/li>\n<li>=((A514-512)\/(1023-512))*(6-(-6))+(-6)<\/li>\n<\/ul>\n<\/li>\n<li>1-1\u3092\u30b7\u30b0\u30e2\u30a4\u30c9\u95a2\u6570\u3067\u5909\u63db\u3057\u3066\u3001(-1)-0\u306e\u533a\u9593\u306b\u3059\u308b\u305f\u3081-1\u3059\u308b\u30021-2\u306f\u5909\u63db\u3059\u308b\u3060\u3051\u3002\n<ul>\n<li>=((TANH(B2\/2)+1)\/2)-1<\/li>\n<li>=(TANH(B515\/2)+1)\/2<\/li>\n<\/ul>\n<\/li>\n<li>\u76ee\u7684\u306e\u533a\u9593\u306b\u5909\u63db\u3002\u3053\u3053\u3067\u306f0-1\u3002\n<ul>\n<li>=(C2-(-1))\/(1-(-1))<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-923\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy10-300x180.png\" alt=\"\" width=\"300\" height=\"180\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy10-300x180.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy10.png 481w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3067\u3051\u305f\u3002<\/p>\n<h4>\u30b2\u30a4\u30f3\u304c5\u306e\u5834\u5408(a=5)<\/h4>\n<p>\u30b2\u30a4\u30f3\u30925\u306b\u3059\u308b\u3068\u3001x\u304c(-1)-1\u306e\u6642\u306b\u3001y\u304c0-1\u306b\u306a\u308b\u3063\u307d\u304f\u3001\u304d\u308c\u3044\u306a\u306e\u3067\u3053\u3063\u3061\u3067\u3082\u3084\u3063\u3066\u307f\u308b\u3002\u4e0a\u8a18\u306e\u6d41\u308c\u3092\u3061\u3087\u3063\u3068\u5909\u3048\u308b\u3060\u3051\u3002<\/p>\n<ol>\n<li>(-1)-1\u306b\u5909\u63db\n<ul>\n<li>=((A2-0)\/(511-0))*(1-(-1))+(-1)<\/li>\n<li>=((A514-512)\/(1023-512))*(1-(-1))+(-1)<\/li>\n<\/ul>\n<\/li>\n<li>\u30b7\u30b0\u30e2\u30a4\u30c9\u95a2\u6570\u3067\u5909\u63db\n<ul>\n<li>=((TANH((B2*5)\/2)+1)\/2)-1<\/li>\n<li>=(TANH((B514*5)\/2)+1)\/2<\/li>\n<\/ul>\n<\/li>\n<li>0-1\u306e\u533a\u9593\u306b\u5909\u63db\n<ul>\n<li>=(C514-(-1))\/(1-(-1))<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-924\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy11-300x180.png\" alt=\"\" width=\"300\" height=\"180\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy11-300x180.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy11.png 481w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3067\u304d\u305f\u3002<\/p>\n<h4>\u9055\u3044<\/h4>\n<div id=\"attachment_925\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy12.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-925\" class=\"wp-image-925 size-medium\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy12-300x180.gif\" alt=\"\" width=\"300\" height=\"180\" \/><\/a><p id=\"caption-attachment-925\" class=\"wp-caption-text\">gif\u52d5\u753b<\/p><\/div>\n<p>a=1\u3068a=5\u306e\u5834\u5408\u3060\u3068\u66f2\u304c\u308a\u304c\u3061\u3087\u3063\u3068\u3060\u3051\u9055\u3046\u3002\u3069\u3046\u304c\u3044\u3044\u3093\u3060\u308d\u306a\u3002<\/p>\n<h4>\u3053\u308c\u3055<\/h4>\n<p>\u6570\u5f0f\u30921\u884c\u306b\u307e\u3068\u3081\u308b\u3068<\/p>\n<p><a href=\"https:\/\/www.wolframalpha.com\/input\/?i=y%3D%28%28%28%28%28tanh%28%28%28%28%28x-0%29%2F%28511-0%29%29*%281-%28-1%29%29%2B%28-1%29%29*5%29%2F2%29%2B1%29%2F2%29-1%29-%28-1%29%29%2F%281-%28-1%29%29%29*%281-0%29&amp;lang=ja\">=(((((TANH(((((A2-0)\/(511-0))*(1-(-1))+(-1))*5)\/2)+1)\/2)-1)-(-1))\/(1-(-1)))*(1-0)<\/a><\/p>\n<p>\u3053\u3093\u306a\u9577\u304f\u306a\u308b\u3002\u3069\u3046\u3084\u3063\u3066\u30b3\u30fc\u30c9\u66f8\u3051\u3070\u3044\u3044\u3093\u3060\u3002<\/p>\n<h3>\u30b3\u30fc\u30c9\u306b\u3057\u3066\u307f\u308b<\/h3>\n<p>\u3068\u8a00\u3063\u3066\u3066\u3082\u3069\u3046\u306b\u3082\u306a\u3089\u3093\u306e\u3067\u3001\u611a\u76f4\u306b\u30b3\u30fc\u30c9\u306b\u8d77\u3053\u3057\u3066\u307f\u308b\u3002\u6700\u7d42\u7684\u306bMouse.move\u3067\u4f7f\u3046\u5024\u306b\u306a\u308b\u3088\u3046\u306b\u3002Arduino\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306b\u5373\u3057\u3066-12\u304b\u308912\u306e\u7bc4\u56f2\u306b\u306a\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3002<\/p>\n<h4>y=x^3<\/h4>\n<pre><code class=\"cpp\">double tmp = 0;\r\nsigned char result = 0;\r\n\r\ndouble mapf(float in , float in_min, float in_max, float out_min, float out_max) {\r\n  return ((in - in_min) \/ (in_max - in_min)) * (out_max - out_min) + out_min;\r\n}\r\n\r\nvoid setup() {\r\n  Serial.begin(9600);\r\n  delay(1000);\r\n\r\n  for (int i = 0 ; i &lt;= 1023; i++) {\r\n\r\n    tmp = mapf(i, 0, 1023, -1, 1);\r\n    tmp = pow(tmp, 3);\r\n    tmp = mapf(tmp, -1, 1, -12, 12);\r\n    result = (signed char) tmp;\r\n\r\n    Serial.println(result);\r\n  }\r\n}\r\n\r\nvoid loop() {\r\n}<\/code><\/pre>\n<p>\u3053\u3093\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u307e\u3057\u3066\u3001\u7d50\u679c\u304c<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-929\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy13-300x180.png\" alt=\"\" width=\"300\" height=\"180\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy13-300x180.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy13.png 481w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u304a\u304a\u3046\u3001\u3060\u3044\u3076\u4e2d\u592e\u304c\u6f70\u308c\u3066\u3057\u307e\u3063\u305f\u3002\u3053\u308c\u306f\u3069\u3046\u3058\u3083\u308d\u2026\u3001\u3061\u3087\u3063\u3068tmp = pow(tmp, 3)\u306e\u3068\u3053\u3092tmp = pow(tmp, 3) + tmp\u306b\u3057\u3066\u307f\u308b\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-930\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy14-300x180.png\" alt=\"\" width=\"300\" height=\"180\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy14-300x180.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy14.png 481w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u304b\u306a\u3041\u2026\u3002<\/p>\n<h4>\u30b7\u30b0\u30e2\u30a4\u30c9\u95a2\u6570<\/h4>\n<pre><code class=\"cpp\">#include &lt;math.h&gt;\r\n\r\ndouble tmp = 0;\r\nsigned char result = 0;\r\n\r\ndouble mapf(float in , float in_min, float in_max, float out_min, float out_max) {\r\n  return ((in - in_min) \/ (in_max - in_min)) * (out_max - out_min) + out_min;\r\n}\r\n\r\nvoid setup() {\r\n  Mouse.begin();\r\n  Serial.begin(9600);\r\n  delay(1000);\r\n\r\n  for (int i = 0 ; i &lt;= 1023; i++) {\r\n    if ( i &lt;= 511) {\r\n      tmp = mapf(i, 0, 511, -6, 6);\r\n      tmp = ((tanh(tmp \/ 2) + 1) \/ 2) - 1;\r\n      \r\n    } else if ( i &gt;= 512) {\r\n      tmp = mapf(i, 512, 1023, -6, 6);\r\n      tmp = (tanh(tmp \/ 2) + 1) \/ 2;\r\n      \r\n    }\r\n\r\n    tmp = mapf(tmp, -1, 1, -12, 12);\r\n    result = (signed char) tmp;\r\n\r\n    Serial.println(result);\r\n  }\r\n}\r\n\r\nvoid loop() {\r\n}<\/code><\/pre>\n<p>\u30cf\u30a4\u30d1\u30dc\u30ea\u30c3\u30af\u30bf\u30f3\u30b8\u30a7\u30f3\u30c8\u3068\u3044\u3046\u820c\u565b\u307f\u305d\u3046\u306a\u95a2\u6570\u3092\u4f7f\u3046\u305f\u3081\u306b#include &lt;<a href=\"https:\/\/www.arduino.cc\/en\/Reference\/MathHeader\">math.h<\/a>&gt;\u3059\u308b\u3002\u3042\u3068\u306f\u6761\u4ef6\u5206\u5c90\u3057\u3066\u66f8\u3044\u3066\u307f\u305f\u3002\u7d50\u679c\u306f<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-931\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy15-300x180.png\" alt=\"\" width=\"300\" height=\"180\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy15-300x180.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy15.png 481w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3046\u30fc\u3093\u3001\u3053\u308c\u3082\u6f70\u308c\u3066\u308b\u6c17\u304c\u3059\u308b\u3057\u3001\u5909\u5316\u3059\u308b\u90e8\u5206\u306f\u76f4\u7dda\u7684\u306b\u306a\u3063\u3066\u308b\u3088\u3046\u306a\u6c17\u304c\u3059\u308b\u3002\u3068\u308a\u3042\u3048\u305a\u30b2\u30a4\u30f35\u3067\u3082\u3084\u3063\u3066\u307f\u305f\u7d50\u679c\u304c<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy16.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-932\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy16-300x180.png\" alt=\"\" width=\"300\" height=\"180\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy16-300x180.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy16.png 481w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u82e5\u5e72\u5909\u308f\u3063\u305f\u2026\u30b2\u30a4\u30f310\u3067\u3082\u3084\u3063\u3066\u307f\u3088\u30020-1023\u304b\u3089\u306e\u5909\u63db\u306f(-0.4)-4\u306b\u3057\u3066\u307f\u305f\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy17.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-933\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy17-300x180.png\" alt=\"\" width=\"300\" height=\"180\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy17-300x180.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/joy17.png 481w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u306a\u3093\u304b\u4f55\u304c\u3044\u3044\u306e\u304b\u5206\u304b\u3093\u306d\u30fc\u306a\u2026\u3002\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u3066\u3001\u89e6\u308a\u5fc3\u5730\u3092\u78ba\u304b\u3081\u3066\u307f\u306a\u3044\u3068\u673a\u4e0a\u306e\u7a7a\u8ad6\u3060\u306a\u3041\u3002<\/p>\n<h4>\u901f\u5ea6\u3092\u8a08\u3063\u3066\u307f\u308b<\/h4>\n<p>\u3044\u3063\u3071\u3044\u8a08\u7b97\u3057\u3066\u308b\u306e\u3067\u3001\u901f\u5ea6\u304c\u3061\u3087\u3063\u3068\u6c17\u306b\u306a\u308b\u3002\u8a08\u7b97\u304c\u9045\u304b\u3063\u305f\u3089\u30b8\u30e7\u30a4\u30b9\u30c6\u30a3\u30c3\u30af\u3092\u52d5\u304b\u3057\u305f\u5f8c\u306b\u3001\u9045\u308c\u3066\u30ab\u30fc\u30bd\u30eb\u304c\u52d5\u304f\u3068\u304b\u306b\u306a\u308a\u305d\u3046\u3060\u3057\u3002\u305f\u3060\u57fa\u6e96\u304c\u5206\u304b\u3089\u3093\u3088\u306a\u30020-1023\u3092100\u56de\u7e70\u308a\u8fd4\u3057\u305f\u3002<\/p>\n<ul>\n<li>y=x^3+x\u306e\u5834\u5408\n<ul>\n<li>\u7d50\u679c millis()\u3067\u306f0\u3002micros()\u3067300\u00b5s<\/li>\n<\/ul>\n<\/li>\n<li>\u30b7\u30b0\u30e2\u30a4\u30c9\u95a2\u6570\u306e\u5834\u5408\n<ul>\n<li>\u7d50\u679c 28,813ms<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u5168\u7136\u3061\u3083\u3046\u306a\u3041\u3002y=x^3+x\u306e\u65b9\u304c\u3044\u3044\u304b\u3082\u306a\u3041\u2026\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b8\u30e7\u30a4\u30b9\u30c6\u30a3\u30c3\u30af\u30de\u30a6\u30b9 \u6ed1\u3089\u304b\u306b\u3057\u305f\u3044\u3002\u3057\u305f\u3044\u306e\u3067\u8abf\u3079\u305f\u3053\u3068\u3092\u66f8\u3044\u3066\u304f\u3002 \u30b8\u30e7\u30a4\u30b9\u30c6\u30a3\u30c3\u30af\u306e\u50be\u304d \u5de6\u304b\u3089\u9759\u6b62\u72b6\u614b\u3001X\u8ef8\u304c0\u306b\u5909\u308f\u308b\u30ae\u30ea\u30ae\u30ea\u306e\u4f4d\u7f6e\u3001\u6b62\u307e\u308b\u307e\u3067\u76ee\u4e00\u676f\u52d5\u304b\u3057\u305f\u6642\u306e\u4f4d\u7f6e\u3002\u610f\u8b58\u7684\u306b\u306f\u53f3\u306e\u4f4d\u7f6e\u30670\u306b\u5909\u308f\u3063\u3066\u308b\u3088\u3046\u306b &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2020\/02\/29\/912\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":913,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[69,90,54],"class_list":["post-912","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8","tag-arduino","tag-90","tag-54"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/comments?post=912"}],"version-history":[{"count":7,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/912\/revisions"}],"predecessor-version":[{"id":934,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/912\/revisions\/934"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media\/913"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}