{"id":79,"date":"2011-08-28T09:25:41","date_gmt":"2011-08-28T00:25:41","guid":{"rendered":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/?page_id=79"},"modified":"2015-04-24T05:16:14","modified_gmt":"2015-04-23T20:16:14","slug":"7segduino","status":"publish","type":"page","link":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/aruino\/7segduino\/","title":{"rendered":"7segduino"},"content":{"rendered":"<p><!--:ja--><\/p>\n<h1 style=\"text-align: center;\">7segduino\uff08\u30bb\u30d6\u30f3\u30bb\u30b0\u30fb\u30c7\u30e5\u30a4\u30fc\u30ce\uff09<\/h1>\n<p style=\"text-align: center;\">\u2193<\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5429.jpg\"><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-120\" title=\"7segduino-00\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5429-300x199.jpg\" alt=\"7segduino-00\" width=\"300\" height=\"199\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5429-300x199.jpg 300w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5429.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>7\u30bb\u30b0\u30e1\u30f3\u30c8LED\u3092\u30e6\u30cb\u30c3\u30c8\u3068\u3057\u3066\u7d44\u307f\u8fbc\u3093\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u5c02\u7528\u57fa\u677f\u3092\u8a2d\u8a08\u3057\u307e\u3057\u305f\u3002Arduino\u4e92\u63db\u306b\u3057\u3066Arduino\u306e\u958b\u767a\u74b0\u5883\u3092\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u306e\u3067\u3001\u300c7segduino\u300d\u3068\u547c\u3076\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u304c\u5b8c\u6210\u3057\u307e\u3057\u305f\u306e\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>1. \u56de\u8def\u56f3<\/h2>\n<p>\u6700\u4f4e\u9650\u306eArduino\u306e\u69cb\u6210\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u7279\u5fb4\u7684\u306a\u90e8\u5206\u3060\u3051\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/7seguino-V2-schematic.png\"><\/a><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/7seguino-V2-schematic.png\"><img loading=\"lazy\" class=\"aligncenter size-large wp-image-90\" title=\"7seguino-V2-schematic\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/7seguino-V2-schematic-1023x723.png\" alt=\"7seguino-V2-schematic\" width=\"640\" height=\"478\" \/><\/a><\/p>\n<h3>\u3010LED\u30c9\u30e9\u30a4\u30d0\u3011<\/h3>\n<p>\u5916\u90e8\u306bLED\u7528\u306e\u30c9\u30e9\u30a4\u30d0\u3092\u7f6e\u304b\u305a\u3001\u76f4\u63a5AVR\u304b\u3089\u30c9\u30e9\u30a4\u30d6\u3059\u308b\u65b9\u5f0f\u3092\u63a1\u7528\u3057\u3001\u90e8\u54c1\u6570\u3092\u524a\u6e1b\u3057\u307e\u3057\u305f\u3002\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306b\u306a\u3063\u3066\u3044\u308bLED\u3078\u306e\u30d4\u30f3\u306e\u5272\u308a\u5f53\u3066\u306f\u3001\u57fa\u677f\u306b\u914d\u7f6e\u3057\u305f\u6642\u306b\u7269\u7406\u7684\u306b\u8fd1\u304f\u306a\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u3010\u30af\u30ed\u30c3\u30af\u56de\u8def\u3011<\/h3>\n<p>AVR\u5185\u90e8\u306eRC\u767a\u632f\u5668\u3092\u4f7f\u3044\u3046\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002\u56de\u8def\u56f3\u306e\u6c34\u6676\u767a\u632f\u5b50\u3068\u8ca0\u8377\u62b5\u6297(22P)\u306f\u5b9f\u88c5\u306f\u4e0d\u8981\u3067\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u6b63\u78ba\u306a\u5468\u6ce2\u6570\u304c\u5fc5\u8981\u306a\u5834\u5408\u306b\u3060\u3051\u53d6\u308a\u4ed8\u3051\u307e\u3059\u3002\u6c34\u6676\u767a\u632f\u5668\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u4e92\u63db\u6027\u306e\u89b3\u70b9\u304b\u308916MHz\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u6a19\u6e96\u7684\u306aArduino\u3068\u4e92\u63db\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u767a\u632f\u5668\u3068\u52d5\u4f5c\u5468\u6ce2\u6570\u306b\u3088\u3063\u3066\u3001\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u3068AVR\u306e\u30d2\u30e5\u30fc\u30ba\u30d3\u30c3\u30c8\u306e\u8a2d\u5b9a\u304c\u7570\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h2>2. \u30d1\u30fc\u30c4<\/h2>\n<p>\u7d44\u307f\u7acb\u3066\u306b\u5fc5\u8981\u306a\u30d1\u30fc\u30c4\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<table style=\"width: 599px; height: 245px;\" border=\"0\">\n<tbody>\n<tr>\n<td>\u30d1\u30fc\u30c4<\/td>\n<td>\u6570\u91cf<\/td>\n<td>\u5099\u8003<\/td>\n<\/tr>\n<tr>\n<td>7\u30bb\u30b0\u30e1\u30f3\u30c8\uff14\u6841LED\u30de\u30c8\u30ea\u30c3\u30af\u30b9<\/td>\n<td>1<\/td>\n<td>\u30a2\u30ce\u30fc\u30c9\u30b3\u30e2\u30f3\u3001\u8272\u306f\u597d\u307f\u3067\u9078\u3093\u3067\u4e0b\u3055\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td>AVR\u30c1\u30c3\u30d7\u3000Mega328P<\/td>\n<td>1<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>28PIN\u30bd\u30b1\u30c3\u30c8<\/td>\n<td>1<\/td>\n<td>\u7701\u7565\u53ef\u80fd<\/td>\n<\/tr>\n<tr>\n<td>\u62b5\u6297\u3000100\u30aa\u30fc\u30e0 1\/6W<\/td>\n<td>8<\/td>\n<td>\u5229\u7528\u3059\u308b\u96fb\u5727\u3068LED\u306e\u7a2e\u985e\u306b\u3088\u3063\u3066\u8abf\u6574\u3057\u3066\u4e0b\u3055\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u62b5\u6297\u300010K\u30aa\u30fc\u30e0 1\/6W<\/td>\n<td>1<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u7a4d\u5c64\u30bb\u30e9\u30df\u30c3\u30af\u30b3\u30f3\u30c7\u30f3\u30b5 0.1uF<\/td>\n<td>3<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u30d4\u30f3\u30d8\u30c3\u30c0 6P\u4e00\u5217<\/td>\n<td>2<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u30d4\u30f3\u30d8\u30c3\u30c0 4P\u4e00\u5217<\/td>\n<td>1<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u5c02\u7528\u57fa\u677f<\/td>\n<td>1<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u3010\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u5fc5\u8981\u306a\u74b0\u5883\u3011<\/h3>\n<p>AVR\u30c1\u30c3\u30d7\u306e\u8a2d\u5b9a\u3084\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u4f5c\u696d\u306b\u306f\u4ee5\u4e0b\u306e\u6a5f\u6750\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30fbAVR\u30e9\u30a4\u30bf<br \/>\n\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u306e\u66f8\u304d\u8fbc\u307f\u306b\u5229\u7528\u3057\u307e\u3059\u3002\u521d\u56de\u7d44\u307f\u7acb\u3066\u6642\u306e\u307f\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30fbUSB-\u30b7\u30ea\u30a2\u30eb\u30d6\u30ea\u30c3\u30b8( FTDI\u30a2\u30c0\u30d7\u30bf\u306a\u3069\uff09<br \/>\n7segduino\u304c\u5b8c\u6210\u3057\u305f\u3042\u3068\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u66f8\u304d\u8fbc\u307f\u306b\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2>3. \u7d44\u307f\u7acb\u3066\u65b9<\/h2>\n<h3>(1)\u88cf\u9762\u306e\u7d44\u307f\u7acb\u3066<\/h3>\n<p>\u57fa\u677f\u306e\u88cf\u306e\u30b7\u30eb\u30af\u5370\u5237\u90e8\u5206\u306b\u96fb\u6d41\u5236\u9650\u62b5\u6297(100\u30aa\u30fc\u30e0)\u3092\uff18\u500b\u3068\u308a\u3064\u3051\u307e\u3059\u3002 LED\u306e\u306f\u3093\u3060\u3065\u3051\u3092\u884c\u3046\u3068\u3001\u3053\u306e\u9762\u306f\u4fee\u6b63\u304c\u51fa\u6765\u306a\u304f\u306a\u308b\u306e\u3067\u3001\u3053\u306e\u6642\u70b9\u3067\u30c6\u30b9\u30bf\u30fc\u3067\u63a5\u7d9a\u306e\u78ba\u8a8d\u3092\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div id=\"attachment_108\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5671.jpg\"><img aria-describedby=\"caption-attachment-108\" loading=\"lazy\" class=\"size-medium wp-image-108\" title=\"7segduino-01\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5671-300x200.jpg\" alt=\"LED\u88cf\u5074\u306e\u62b5\u6297\u306e\u53d6\u308a\u4ed8\u3051\" width=\"300\" height=\"200\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5671-300x200.jpg 300w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5671.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-108\" class=\"wp-caption-text\">LED\u88cf\u5074\u306e\u62b5\u6297\u306e\u53d6\u308a\u4ed8\u3051<\/p><\/div>\n<h3>(2)\u8868\u9762\u306e\u7d44\u307f\u7acb\u3066<\/h3>\n<p>\u57fa\u677f\u306e\u8868\u9762\u306b\u62b5\u6297(10K\u30aa\u30fc\u30e0\uff09,\u30bb\u30e9\u30df\u30c3\u30af\u30b3\u30f3\u30c7\u30f3\u30b5(0.1uF\u304c3\u500b\uff09\u300128PIN\u30bd\u30b1\u30c3\u30c8\u3068\u30d4\u30f3\u30d8\u30c3\u30c0(3\u500b)\u3092\u53d6\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<div id=\"attachment_109\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5676.jpg\"><img aria-describedby=\"caption-attachment-109\" loading=\"lazy\" class=\"size-medium wp-image-109\" title=\"7segduino-02\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5676-300x199.jpg\" alt=\"\u8868\u9762\u3078IC\u30bd\u30b1\u30c3\u30c8\u3001\u30d4\u30f3\u30d8\u30c3\u30c0\u3001\u30b3\u30f3\u30c7\u30f3\u30b5\u306a\u3069\u306e\u53d6\u308a\u4ed8\u3051\" width=\"300\" height=\"199\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5676-300x199.jpg 300w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5676.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-109\" class=\"wp-caption-text\">\u8868\u9762\u3078IC\u30bd\u30b1\u30c3\u30c8\u3001\u30d4\u30f3\u30d8\u30c3\u30c0\u3001\u30b3\u30f3\u30c7\u30f3\u30b5\u306a\u3069\u306e\u53d6\u308a\u4ed8\u3051<\/p><\/div>\n<h3>(3)\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u306e\u78ba\u8a8d<\/h3>\n<p>\u3053\u306e\u6642\u70b9\u3067\u5225\u74b0\u5883\u3067\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u66f8\u304d\u8fbc\u307f\u6e08\u307f\u306eMega328P\u30927segduino\u306b\u53d6\u308a\u4ed8\u3051\u3066\u3001USB-\u30b7\u30ea\u30a2\u30eb\u7d4c\u7531\u3067Arduino IDE\u304b\u3089\u66f8\u304d\u8fbc\u307f\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<div id=\"attachment_110\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5680.jpg\"><img aria-describedby=\"caption-attachment-110\" loading=\"lazy\" class=\"size-medium wp-image-110\" title=\"7segduino-03\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5680-300x199.jpg\" alt=\"ISP\u306e\u30c1\u30a7\u30c3\u30af\" width=\"300\" height=\"199\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5680-300x199.jpg 300w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5680.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-110\" class=\"wp-caption-text\">ISP\u306e\u30c1\u30a7\u30c3\u30af<\/p><\/div>\n<h3>(4) LED\u306e\u53d6\u308a\u4ed8\u3051<\/h3>\n<p>\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09\u88cf\u9762\u306e\u30ea\u30fc\u30c9\u7dda\u3092\u5207\u308a\u63c3\u3048\u3066LED\u3068\u5e72\u6e09\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u30d4\u30f3\u30d8\u30c3\u30c0\u3082\u88cf\u5074\u306b\u98db\u3073\u51fa\u3057\u305f\u90e8\u5206\u30921.0mm\u4ee5\u4e0b\u306b\u5207\u308a\u307e\u3059\u3002<\/p>\n<p>LED\u3092\u57fa\u677f\u306e\u88cf\u5074\u306b\u53d6\u308a\u4ed8\u3051\u307e\u3059\u3002\u53d6\u308a\u4ed8\u3051\u65b9\u5411\u6ce8\u610f\uff01LED\u3092\u6b63\u9762\u304b\u3089\u898b\u3066\u53f3\u5074\u306bFTDI\u30b3\u30cd\u30af\u30bf\u304c\u6765\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<div id=\"attachment_111\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5684.jpg\"><img aria-describedby=\"caption-attachment-111\" loading=\"lazy\" class=\"size-medium wp-image-111\" title=\"7segduino-04\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5684-300x199.jpg\" alt=\"LED\u306e\u53d6\u308a\u4ed8\u3051\" width=\"300\" height=\"199\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5684-300x199.jpg 300w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5684.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-111\" class=\"wp-caption-text\">LED\u306e\u53d6\u308a\u4ed8\u3051<\/p><\/div>\n<h3>(5)\u52d5\u4f5c\u78ba\u8a8d<\/h3>\n<p>Arduino IDE\u304b\u3089\u30d7\u30ed\u30e0\u30e9\u30e0\u3092\u66f8\u304d\u8fbc\u3093\u3067\u52d5\u4f5c\u306e\u78ba\u8a8d\u3092\u884c\u3044\u307e\u3059\u3002\u52d5\u4f5c\u691c\u8a3c\u306b\u306f\u3001Hello_7seg.pde\u304c\u304a\u52e7\u3081\u3067\u3059\u3002<\/p>\n<div id=\"attachment_112\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5692.jpg\"><img aria-describedby=\"caption-attachment-112\" loading=\"lazy\" class=\"size-medium wp-image-112\" title=\"7segduino-05\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5692-300x199.jpg\" alt=\"HELLO 7seg.\" width=\"300\" height=\"199\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5692-300x199.jpg 300w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5692.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-112\" class=\"wp-caption-text\">HELLO 7seg.<\/p><\/div>\n<p>\u5b8c\u6210\uff01<\/p>\n<h2>4. \u4f7f\u3044\u65b9<\/h2>\n<p>\u5c02\u7528\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nArduino IDE\u304b\u3089SSeg\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8a18\u8ff0\u3057\u3066\u4e0b\u3055\u3044\u3002<br \/>\nExample\u306b\u3044\u304f\u3064\u304b\u4f8b\u3092\u8f09\u305b\u3066\u3044\u307e\u3059\u306e\u3067\u53c2\u8003\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: cpp; highlight: [8,19]; title: ; notranslate\" title=\"\">\r\n\/*** Hello 7seg 2digit\r\n\r\nSEG-A(11)    PD4    4\r\nSEG-B(7)     PB0    8\r\nSEG-C(4)     PB3    11\r\nSEG-D (2)    PB5    13\r\nSEG-E(1)     PC0    14\r\nSEG-F(10)    PD2    2  ** Change on V2\r\nSEG-G(5)     PB2    10\r\nSEG-DP(3)    PB4    12\r\n\r\nDIG-1(12)    PD3    3\r\nDIG-2(9)     PD6    6\r\nDIG-3(8)     PD7    7\r\nDIG-4(6)     PB1    9\r\n*\/\r\n\r\n#include &lt;Sseg.h&gt;\r\nSseg mySseg = Sseg(4, 8, 11, 13, 14, 2, 10, 12, 3, 6, 7, 9);\r\n\r\nuint8_t hello&#x5B;] = {\r\n       0b00000000,\r\n       0b00000000,\r\n       0b00000000,\r\n       0b00000000,\r\n       0b01101110, \/\/ H\r\n       0b10011110, \/\/ E\r\n       0b00011100, \/\/ L\r\n       0b00011100, \/\/ L\r\n       0b00111010, \/\/ o\r\n       0b00000000, \/\/\r\n       NUM_PAT_7,  \/\/ 7\r\n       0b10110110, \/\/ S\r\n       NUM_PAT_E,  \/\/ E\r\n       0b11110110, \/\/ G\r\n       0b00000001\r\n};\r\n\r\nint p = 0;\r\nvoid setup() {\r\n  mySseg.begin();\r\n}\r\n#define OVERWRAP(a, x) (((x) &lt; sizeof(a)) ? (a&#x5B;(x)]) : a&#x5B;((x) - sizeof(a))])\r\n\r\nvoid loop() {\r\n   uint8_t i;\r\n   if ((++p) &gt; sizeof(hello))\r\n   p = 0;\r\n\r\n mySseg.writeRawData(\r\n    OVERWRAP(hello, p),\r\n    OVERWRAP(hello, p+1),\r\n    OVERWRAP(hello, p+2),\r\n    OVERWRAP(hello, p+3));\r\n\r\n mySseg.updateWithDelay(300);\r\n}\r\n\r\n<\/pre>\n<p><div class=\"note\"><div class=\"noteclassic\"><br \/>\nSMD\u7248\u57fa\u677f\u3068\u30ea\u30fc\u30c9\u90e8\u54c1\u7248\u57fa\u677f\u3067\u3001\u4e00\u90e8\u30d4\u30f3\u914d\u7f6e\u304c\u7570\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u4e2d\u306e\u521d\u671f\u5316\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5909\u66f4\u3057\u3066\u4e0b\u3055\u3044\u3002<br \/>\n<\/div><\/div><br \/>\n<div class=\"note\"><div class=\"notetip\"><br \/>\nMacOSX\u7248\u306e\u5834\u5408\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u66f8\u985e -&gt; Arduino -&gt; Libraries\u306b\u30b3\u30d4\u30fc\u306e\u4e0a\u3067\u5229\u7528\u4e0b\u3055\u3044\u3002<br \/>\n<\/div><\/div><br \/>\n\uff08Sseg\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\uff18\u6841\u3001\uff12\u6841\u306eLED\u3084\u7570\u306a\u308b\u30d4\u30f3\u914d\u7f6e\u306e\u8a2d\u5b9a\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f7f\u3044\u65b9\u306e\u89e3\u8aac\u3092\u8ffd\u52a0\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002\uff09<\/p>\n<p><div class=\"note\"><div class=\"noteimportant\"><\/p>\n<p>Arduino IDE\u306e\u30e1\u30cb\u30e5\u30fc\u3067\u30c4\u30fc\u30eb-&gt;\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u304b\u3089<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u300cArduino Pro or Pro Mini (3.3V, 8 MHz) w\/ ATmega328\u300d<\/strong><\/span><\/p>\n<p>\u3092\u9078\u629e\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p><\/div><\/div><\/p>\n<h2>5. \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\uff1a<a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/12\/SSeg-20111211.zip\">SSeg-20111211.zip<\/a> <a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/09\/SSeg-20110910.zip\"><\/a> <span style=\"color: #ff0000;\">UPDATED on 2011\/12\/11<\/span><\/p>\n<p>\u30dc\u30fc\u30c9\u30ec\u30a3\u30a2\u30a6\u30c8\uff1a<a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/7seguino-board.png\">7sedguino-brd.png<\/a><\/p>\n<h2>6. \u5fdc\u7528\u4f8b<\/h2>\n<p>\u5fdc\u7528\u306e\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/aruino\/7segduino\/7segduino-application-1\/\">7segduino Application (1) \u6e29\u5ea6\u8a08<\/a><\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/aruino\/7segduino\/7segduino-application-2\/\">7segduino Application (2)\u00a0 \u6e7f\u5ea6\u8a08<\/a><\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/aruino\/7segduino\/7segduino-application-3\/\">7segduino Application (3) \u6c17\u5727\u8a08<\/a><\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/aruino\/7segduino\/7segduino-application-4-8digit\/\">7segduino Application (4) 8\u6841\u5316<\/a><\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/aruino\/7segduino\/7segduino-application-5-usb-ampmeter\/\">7segduino Application (5) USB AmpMeter<\/a><\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/aruino\/7segduino\/7segduino-application-6-gps-clock\/\">7segduino Application (6) GPS Clock<\/a><\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/aruino\/7segduino\/7segduino-bme280\/\">7segduino Application (7) Combo sensor module<\/a><\/p>\n<h2>7. \u53c2\u8003<\/h2>\n<p>Spark Fun\u306b\u3082\u4f3c\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3042\u308b\u3068twitter\u3067\u6559\u3048\u3066\u9802\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>7-Segment Serial Display &#8211; Red<\/p>\n<p><a title=\"sparkfun SPI controlled 7seg LED module\" href=\"http:\/\/www.sparkfun.com\/products\/9766\">http:\/\/www.sparkfun.com\/products\/9766<\/a><\/p>\n<p>\u672c\u6765\u306f\u30b7\u30ea\u30a2\u30eb\u307e\u305f\u306fSPI\u304b\u3089\u30b3\u30de\u30f3\u30c9\u3092\u53d7\u3051\u3066\u8868\u793a\u3092\u5236\u5fa1\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u306e\u69d8\u3067\u3059\u304c\u3001\u672c\u6a5f\u3068\u540c\u69d8\u306bMega328P\u3068LED\u306e\u7d44\u307f\u5408\u308f\u305b\u306a\u306e\u3067\u3001Arduino\u306e\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u3092\u66f8\u304d\u8fbc\u3081\u3070\u540c\u69d8\u306e\u3053\u3068\u304c\u51fa\u6765\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u672a\u78ba\u8a8d\u3067\u3059\u304c\u3001\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u8a66\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<!--:--><!--:en--><\/p>\n<h1 style=\"text-align: center;\">7segduino<\/h1>\n<h1 style=\"text-align: center;\">&#8212; Arduino with 7segment display&#8211;<\/h1>\n<h1 style=\"text-align: center;\"><\/h1>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5429.jpg\"><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-120\" title=\"7segduino-00\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5429-300x199.jpg\" alt=\"7segduino-00\" width=\"300\" height=\"199\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5429-300x199.jpg 300w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5429.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>7\u30bb\u30b0\u30e1\u30f3\u30c8LED\u3092\u30e6\u30cb\u30c3\u30c8\u3068\u3057\u3066\u7d44\u307f\u8fbc\u3093\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u5c02\u7528\u57fa\u677f\u3092\u8a2d\u8a08\u3057\u307e\u3057\u305f\u3002Arduino\u4e92\u63db\u306b\u3057\u3066Arduino\u306e\u958b\u767a\u74b0\u5883\u3092\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u306e\u3067\u3001\u300c7segduino\u300d\u3068\u547c\u3076\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u304c\u5b8c\u6210\u3057\u307e\u3057\u305f\u306e\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>1. \u56de\u8def\u56f3<\/h2>\n<p>\u6700\u4f4e\u9650\u306eArduino\u306e\u69cb\u6210\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u7279\u5fb4\u7684\u306a\u90e8\u5206\u3060\u3051\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/7seguino-V2-schematic.png\"><\/a><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/7seguino-V2-schematic.png\"><img loading=\"lazy\" class=\"aligncenter size-large wp-image-90\" title=\"7seguino-V2-schematic\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/7seguino-V2-schematic-1023x723.png\" alt=\"7seguino-V2-schematic\" width=\"640\" height=\"478\" \/><\/a><\/p>\n<h3>\u3010LED\u30c9\u30e9\u30a4\u30d0\u3011<\/h3>\n<p>\u5916\u90e8\u306bLED\u7528\u306e\u30c9\u30e9\u30a4\u30d0\u3092\u7f6e\u304b\u305a\u3001\u76f4\u63a5AVR\u304b\u3089\u30c9\u30e9\u30a4\u30d6\u3059\u308b\u65b9\u5f0f\u3092\u63a1\u7528\u3057\u3001\u90e8\u54c1\u6570\u3092\u524a\u6e1b\u3057\u307e\u3057\u305f\u3002\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306b\u306a\u3063\u3066\u3044\u308bLED\u3078\u306e\u30d4\u30f3\u306e\u5272\u308a\u5f53\u3066\u306f\u3001\u57fa\u677f\u306b\u914d\u7f6e\u3057\u305f\u6642\u306b\u7269\u7406\u7684\u306b\u8fd1\u304f\u306a\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u3010\u30af\u30ed\u30c3\u30af\u56de\u8def\u3011<\/h3>\n<p>AVR\u5185\u90e8\u306eRC\u767a\u632f\u5668\u3092\u4f7f\u3044\u3046\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002\u56de\u8def\u56f3\u306e\u6c34\u6676\u767a\u632f\u5b50\u3068\u8ca0\u8377\u62b5\u6297(22P)\u306f\u5b9f\u88c5\u306f\u4e0d\u8981\u3067\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u6b63\u78ba\u306a\u5468\u6ce2\u6570\u304c\u5fc5\u8981\u306a\u5834\u5408\u306b\u3060\u3051\u53d6\u308a\u4ed8\u3051\u307e\u3059\u3002\u6c34\u6676\u767a\u632f\u5668\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u4e92\u63db\u6027\u306e\u89b3\u70b9\u304b\u308916MHz\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u6a19\u6e96\u7684\u306aArduino\u3068\u4e92\u63db\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u767a\u632f\u5668\u3068\u52d5\u4f5c\u5468\u6ce2\u6570\u306b\u3088\u3063\u3066\u3001\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u3068AVR\u306e\u30d2\u30e5\u30fc\u30ba\u30d3\u30c3\u30c8\u306e\u8a2d\u5b9a\u304c\u7570\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h2>2. \u30d1\u30fc\u30c4<\/h2>\n<p>\u7d44\u307f\u7acb\u3066\u306b\u5fc5\u8981\u306a\u30d1\u30fc\u30c4\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<table style=\"width: 599px; height: 245px;\" border=\"0\">\n<tbody>\n<tr>\n<td>\u30d1\u30fc\u30c4<\/td>\n<td>\u6570\u91cf<\/td>\n<td>\u5099\u8003<\/td>\n<\/tr>\n<tr>\n<td>7\u30bb\u30b0\u30e1\u30f3\u30c8\uff14\u6841LED\u30de\u30c8\u30ea\u30c3\u30af\u30b9<\/td>\n<td>1<\/td>\n<td>\u30a2\u30ce\u30fc\u30c9\u30b3\u30e2\u30f3\u3001\u8272\u306f\u597d\u307f\u3067\u9078\u3093\u3067\u4e0b\u3055\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td>AVR\u30c1\u30c3\u30d7\u3000Mega328P<\/td>\n<td>1<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>28PIN\u30bd\u30b1\u30c3\u30c8<\/td>\n<td>1<\/td>\n<td>\u7701\u7565\u53ef\u80fd<\/td>\n<\/tr>\n<tr>\n<td>\u62b5\u6297\u3000100\u30aa\u30fc\u30e0 1\/6W<\/td>\n<td>8<\/td>\n<td>\u5229\u7528\u3059\u308b\u96fb\u5727\u3068LED\u306e\u7a2e\u985e\u306b\u3088\u3063\u3066\u8abf\u6574\u3057\u3066\u4e0b\u3055\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u62b5\u6297\u300010K\u30aa\u30fc\u30e0 1\/6W<\/td>\n<td>1<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u7a4d\u5c64\u30bb\u30e9\u30df\u30c3\u30af\u30b3\u30f3\u30c7\u30f3\u30b5 0.1uF<\/td>\n<td>3<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u30d4\u30f3\u30d8\u30c3\u30c0 6P\u4e00\u5217<\/td>\n<td>2<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u30d4\u30f3\u30d8\u30c3\u30c0 4P\u4e00\u5217<\/td>\n<td>1<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u5c02\u7528\u57fa\u677f<\/td>\n<td>1<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u3010\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u5fc5\u8981\u306a\u74b0\u5883\u3011<\/h3>\n<p>AVR\u30c1\u30c3\u30d7\u306e\u8a2d\u5b9a\u3084\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u4f5c\u696d\u306b\u306f\u4ee5\u4e0b\u306e\u6a5f\u6750\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30fbAVR\u30e9\u30a4\u30bf<br \/>\n\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u306e\u66f8\u304d\u8fbc\u307f\u306b\u5229\u7528\u3057\u307e\u3059\u3002\u521d\u56de\u7d44\u307f\u7acb\u3066\u6642\u306e\u307f\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30fbUSB-\u30b7\u30ea\u30a2\u30eb\u30d6\u30ea\u30c3\u30b8( FTDI\u30a2\u30c0\u30d7\u30bf\u306a\u3069\uff09<br \/>\n7segduino\u304c\u5b8c\u6210\u3057\u305f\u3042\u3068\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u66f8\u304d\u8fbc\u307f\u306b\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2>3. \u7d44\u307f\u7acb\u3066\u65b9<\/h2>\n<h3>(1)\u88cf\u9762\u306e\u7d44\u307f\u7acb\u3066<\/h3>\n<p>\u57fa\u677f\u306e\u88cf\u306e\u30b7\u30eb\u30af\u5370\u5237\u90e8\u5206\u306b\u96fb\u6d41\u5236\u9650\u62b5\u6297(100\u30aa\u30fc\u30e0)\u3092\uff18\u500b\u3068\u308a\u3064\u3051\u307e\u3059\u3002 LED\u306e\u306f\u3093\u3060\u3065\u3051\u3092\u884c\u3046\u3068\u3001\u3053\u306e\u9762\u306f\u4fee\u6b63\u304c\u51fa\u6765\u306a\u304f\u306a\u308b\u306e\u3067\u3001\u3053\u306e\u6642\u70b9\u3067\u30c6\u30b9\u30bf\u30fc\u3067\u63a5\u7d9a\u306e\u78ba\u8a8d\u3092\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div id=\"attachment_108\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5671.jpg\"><img aria-describedby=\"caption-attachment-108\" loading=\"lazy\" class=\"size-medium wp-image-108\" title=\"7segduino-01\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5671-300x200.jpg\" alt=\"LED\u88cf\u5074\u306e\u62b5\u6297\u306e\u53d6\u308a\u4ed8\u3051\" width=\"300\" height=\"200\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5671-300x200.jpg 300w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5671.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-108\" class=\"wp-caption-text\">LED\u88cf\u5074\u306e\u62b5\u6297\u306e\u53d6\u308a\u4ed8\u3051<\/p><\/div>\n<h3>(2)\u8868\u9762\u306e\u7d44\u307f\u7acb\u3066<\/h3>\n<p>\u57fa\u677f\u306e\u8868\u9762\u306b\u62b5\u6297(10K\u30aa\u30fc\u30e0\uff09,\u30bb\u30e9\u30df\u30c3\u30af\u30b3\u30f3\u30c7\u30f3\u30b5(0.1uF\u304c3\u500b\uff09\u300128PIN\u30bd\u30b1\u30c3\u30c8\u3068\u30d4\u30f3\u30d8\u30c3\u30c0(3\u500b)\u3092\u53d6\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<div id=\"attachment_109\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5676.jpg\"><img aria-describedby=\"caption-attachment-109\" loading=\"lazy\" class=\"size-medium wp-image-109\" title=\"7segduino-02\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5676-300x199.jpg\" alt=\"\u8868\u9762\u3078IC\u30bd\u30b1\u30c3\u30c8\u3001\u30d4\u30f3\u30d8\u30c3\u30c0\u3001\u30b3\u30f3\u30c7\u30f3\u30b5\u306a\u3069\u306e\u53d6\u308a\u4ed8\u3051\" width=\"300\" height=\"199\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5676-300x199.jpg 300w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5676.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-109\" class=\"wp-caption-text\">\u8868\u9762\u3078IC\u30bd\u30b1\u30c3\u30c8\u3001\u30d4\u30f3\u30d8\u30c3\u30c0\u3001\u30b3\u30f3\u30c7\u30f3\u30b5\u306a\u3069\u306e\u53d6\u308a\u4ed8\u3051<\/p><\/div>\n<h3>(3)\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u306e\u78ba\u8a8d<\/h3>\n<p>\u3053\u306e\u6642\u70b9\u3067\u5225\u74b0\u5883\u3067\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u66f8\u304d\u8fbc\u307f\u6e08\u307f\u306eMega328P\u30927segduino\u306b\u53d6\u308a\u4ed8\u3051\u3066\u3001USB-\u30b7\u30ea\u30a2\u30eb\u7d4c\u7531\u3067Arduino IDE\u304b\u3089\u66f8\u304d\u8fbc\u307f\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<div id=\"attachment_110\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5680.jpg\"><img aria-describedby=\"caption-attachment-110\" loading=\"lazy\" class=\"size-medium wp-image-110\" title=\"7segduino-03\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5680-300x199.jpg\" alt=\"ISP\u306e\u30c1\u30a7\u30c3\u30af\" width=\"300\" height=\"199\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5680-300x199.jpg 300w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5680.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-110\" class=\"wp-caption-text\">ISP\u306e\u30c1\u30a7\u30c3\u30af<\/p><\/div>\n<h3>(4) LED\u306e\u53d6\u308a\u4ed8\u3051<\/h3>\n<p>\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09\u88cf\u9762\u306e\u30ea\u30fc\u30c9\u7dda\u3092\u5207\u308a\u63c3\u3048\u3066LED\u3068\u5e72\u6e09\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u30d4\u30f3\u30d8\u30c3\u30c0\u3082\u88cf\u5074\u306b\u98db\u3073\u51fa\u3057\u305f\u90e8\u5206\u30921.0mm\u4ee5\u4e0b\u306b\u5207\u308a\u307e\u3059\u3002<\/p>\n<p>LED\u3092\u57fa\u677f\u306e\u88cf\u5074\u306b\u53d6\u308a\u4ed8\u3051\u307e\u3059\u3002\u53d6\u308a\u4ed8\u3051\u65b9\u5411\u6ce8\u610f\uff01LED\u3092\u6b63\u9762\u304b\u3089\u898b\u3066\u53f3\u5074\u306bFTDI\u30b3\u30cd\u30af\u30bf\u304c\u6765\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<div id=\"attachment_111\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5684.jpg\"><img aria-describedby=\"caption-attachment-111\" loading=\"lazy\" class=\"size-medium wp-image-111\" title=\"7segduino-04\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5684-300x199.jpg\" alt=\"LED\u306e\u53d6\u308a\u4ed8\u3051\" width=\"300\" height=\"199\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5684-300x199.jpg 300w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5684.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-111\" class=\"wp-caption-text\">LED\u306e\u53d6\u308a\u4ed8\u3051<\/p><\/div>\n<h3>(5)\u52d5\u4f5c\u78ba\u8a8d<\/h3>\n<p>Arduino IDE\u304b\u3089\u30d7\u30ed\u30e0\u30e9\u30e0\u3092\u66f8\u304d\u8fbc\u3093\u3067\u52d5\u4f5c\u306e\u78ba\u8a8d\u3092\u884c\u3044\u307e\u3059\u3002\u52d5\u4f5c\u691c\u8a3c\u306b\u306f\u3001Hello_7seg.pde\u304c\u304a\u52e7\u3081\u3067\u3059\u3002<\/p>\n<div id=\"attachment_112\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5692.jpg\"><img aria-describedby=\"caption-attachment-112\" loading=\"lazy\" class=\"size-medium wp-image-112\" title=\"7segduino-05\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5692-300x199.jpg\" alt=\"HELLO 7seg.\" width=\"300\" height=\"199\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5692-300x199.jpg 300w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/IMGP5692.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-112\" class=\"wp-caption-text\">HELLO 7seg.<\/p><\/div>\n<p>\u5b8c\u6210\uff01<\/p>\n<h2>4. \u4f7f\u3044\u65b9<\/h2>\n<p>\u5c02\u7528\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nArduino IDE\u304b\u3089SSeg\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8a18\u8ff0\u3057\u3066\u4e0b\u3055\u3044\u3002<br \/>\nExample\u306b\u3044\u304f\u3064\u304b\u4f8b\u3092\u8f09\u305b\u3066\u3044\u307e\u3059\u306e\u3067\u53c2\u8003\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: cpp; highlight: [8,19]; title: ; notranslate\" title=\"\">\r\n\/*** Hello 7seg 2digit\r\n\r\nSEG-A(11)    PD4    4\r\nSEG-B(7)     PB0    8\r\nSEG-C(4)     PB3    11\r\nSEG-D (2)    PB5    13\r\nSEG-E(1)     PC0    14\r\nSEG-F(10)    PD2    2  ** Change on V2\r\nSEG-G(5)     PB2    10\r\nSEG-DP(3)    PB4    12\r\n\r\nDIG-1(12)    PD3    3\r\nDIG-2(9)     PD6    6\r\nDIG-3(8)     PD7    7\r\nDIG-4(6)     PB1    9\r\n*\/\r\n\r\n#include &lt;Sseg.h&gt;\r\nSseg mySseg = Sseg(4, 8, 11, 13, 14, 2, 10, 12, 3, 6, 7, 9);\r\n\r\nuint8_t hello&#x5B;] = {\r\n0b00000000,\r\n0b00000000,\r\n0b00000000,\r\n0b00000000,\r\n0b01101110, \/\/ H\r\n0b10011110, \/\/ E\r\n0b00011100, \/\/ L\r\n0b00011100, \/\/ L\r\n0b00111010, \/\/ o\r\n0b00000000, \/\/\r\nNUM_PAT_7,  \/\/ 7\r\n0b10110110, \/\/ S\r\nNUM_PAT_E,  \/\/ E\r\n0b11110110, \/\/ G\r\n0b00000001\r\n};\r\n\r\nint p = 0;\r\nvoid setup() {\r\nmySseg.begin();\r\n}\r\n#define OVERWRAP(a, x) (((x) &lt; sizeof(a)) ? (a&#x5B;(x)]) : a&#x5B;((x) - sizeof(a))])\r\n\r\nvoid loop() {\r\nuint8_t i;\r\nif ((++p) &gt; sizeof(hello))\r\np = 0;\r\n\r\nmySseg.writeRawData(\r\nOVERWRAP(hello, p),\r\nOVERWRAP(hello, p+1),\r\nOVERWRAP(hello, p+2),\r\nOVERWRAP(hello, p+3));\r\n\r\nmySseg.updateWithDelay(300);\r\n}\r\n\r\n<\/pre>\n<p><div class=\"note\"><div class=\"noteclassic\"><br \/>\nSMD\u7248\u57fa\u677f\u3068\u30ea\u30fc\u30c9\u90e8\u54c1\u7248\u57fa\u677f\u3067\u3001\u4e00\u90e8\u30d4\u30f3\u914d\u7f6e\u304c\u7570\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u4e2d\u306e\u521d\u671f\u5316\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5909\u66f4\u3057\u3066\u4e0b\u3055\u3044\u3002<br \/>\n<\/div><\/div><br \/>\n<div class=\"note\"><div class=\"notetip\"><br \/>\nMacOSX\u7248\u306e\u5834\u5408\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u66f8\u985e -&gt; Arduino -&gt; Libraries\u306b\u30b3\u30d4\u30fc\u306e\u4e0a\u3067\u5229\u7528\u4e0b\u3055\u3044\u3002<br \/>\n<\/div><\/div><br \/>\n\uff08Sseg\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\uff18\u6841\u3001\uff12\u6841\u306eLED\u3084\u7570\u306a\u308b\u30d4\u30f3\u914d\u7f6e\u306e\u8a2d\u5b9a\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f7f\u3044\u65b9\u306e\u89e3\u8aac\u3092\u8ffd\u52a0\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002\uff09<\/p>\n<h2>5. \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\uff1a<a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/09\/SSeg-20110910.zip\">SSeg-20110910.zip<\/a> <span style=\"color: #ff0000;\">UPDATED on 2011\/09\/10<\/span><\/p>\n<p>\u30dc\u30fc\u30c9\u30ec\u30a3\u30a2\u30a6\u30c8\uff1a<a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2011\/08\/7seguino-board.png\">7sedguino-brd.png<\/a><\/p>\n<h2>6. \u5fdc\u7528\u4f8b<\/h2>\n<p>\u5fdc\u7528\u306e\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/aruino\/7segduino\/7segduino-application-1\/\">7segduino Application (1) \u6e29\u5ea6\u8a08<\/a><\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/aruino\/7segduino\/7segduino-application-2\/\">7segduino Application (2)\u00a0 \u6e7f\u5ea6\u8a08<\/a><\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/aruino\/7segduino\/7segduino-application-3\/\">7segduino Application (3) \u6c17\u5727\u8a08<\/a><\/p>\n<h2>7. \u53c2\u8003<\/h2>\n<p>Spark Fun\u306b\u3082\u4f3c\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3042\u308b\u3068twitter\u3067\u6559\u3048\u3066\u9802\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>7-Segment Serial Display &#8211; Red<\/p>\n<p><a title=\"sparkfun SPI controlled 7seg LED module\" href=\"http:\/\/www.sparkfun.com\/products\/9766\">http:\/\/www.sparkfun.com\/products\/9766<\/a><\/p>\n<p>\u672c\u6765\u306f\u30b7\u30ea\u30a2\u30eb\u307e\u305f\u306fSPI\u304b\u3089\u30b3\u30de\u30f3\u30c9\u3092\u53d7\u3051\u3066\u8868\u793a\u3092\u5236\u5fa1\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u306e\u69d8\u3067\u3059\u304c\u3001\u672c\u6a5f\u3068\u540c\u69d8\u306bMega328P\u3068LED\u306e\u7d44\u307f\u5408\u308f\u305b\u306a\u306e\u3067\u3001Arduino\u306e\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u3092\u66f8\u304d\u8fbc\u3081\u3070\u540c\u69d8\u306e\u3053\u3068\u304c\u51fa\u6765\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u672a\u78ba\u8a8d\u3067\u3059\u304c\u3001\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u8a66\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<!--:--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>7segduino\uff08\u30bb\u30d6\u30f3\u30bb\u30b0\u30fb\u30c7\u30e5\u30a4\u30fc\u30ce\uff09 \u2193 7\u30bb\u30b0\u30e1\u30f3\u30c8LED\u3092\u30e6\u30cb\u30c3\u30c8\u3068\u3057\u3066\u7d44\u307f\u8fbc\u3093\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u5c02\u7528\u57fa\u677f\u3092\u8a2d\u8a08\u3057\u307e\u3057\u305f\u3002Arduino\u4e92\u63db\u306b\u3057\u3066Arduino\u306e\u958b\u767a\u74b0\u5883\u3092\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u306e\u3067\u3001\u300c7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":26,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/pages\/79"}],"collection":[{"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":66,"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/pages\/79\/revisions"}],"predecessor-version":[{"id":132,"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/pages\/79\/revisions\/132"}],"up":[{"embeddable":true,"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/pages\/26"}],"wp:attachment":[{"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/media?parent=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}