{"id":100,"date":"2021-08-19T14:53:11","date_gmt":"2021-08-19T05:53:11","guid":{"rendered":"http:\/\/fischertechnik-education.jp\/blog\/?p=100"},"modified":"2021-09-23T15:19:20","modified_gmt":"2021-09-23T06:19:20","slug":"revolution-pi-part3","status":"publish","type":"post","link":"https:\/\/fischertechnik-education.jp\/blog\/2021\/08\/19\/revolution-pi-part3\/","title":{"rendered":"Revolution Pi\u3067L\u30c1\u30ab\u307e\u3067\uff01   \u30d1\u30fc\u30c83"},"content":{"rendered":"\n<div class=\"wp-block-group is-style-default is-layout-flow\"><div class=\"wp-block-group__inner-container\">\n<figure class=\"wp-block-image alignfull size-large is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"125\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame01-1-1024x125.png\" alt=\"\" class=\"wp-image-151\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame01-1-1024x125.png 1024w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame01-1-300x37.png 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame01-1-768x94.png 768w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame01-1-1536x188.png 1536w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame01-1-1568x192.png 1568w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame01-1.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:60px\"><span style=\"background:linear-gradient(to bottom, rgba(128,255,255,0) 90%, #ff6969 90%);\"><strong><span style=\"color:#ff0004\" class=\"has-inline-color\">C<\/span>\u8a00\u8a9e\u3067L\u30c1\u30ab<\/strong><\/span><\/h2>\n\n\n\n<iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=tf_til&amp;t=affiliate1087-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B08124JY1Q&amp;linkId=20f4dd97bf81d18781f8c8524f43c1cd&amp;bc1=ffffff&amp;lt1=_top&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\">\n    <\/iframe>\n<iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=tf_til&amp;t=affiliate1087-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B01N4R1G5B&amp;linkId=43fa685f93808a8fb2a3693ebd7f6418&amp;bc1=ffffff&amp;lt1=_top&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\">\n    <\/iframe>\n<iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=tf_til&amp;t=affiliate1087-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B08CMVFGP7&amp;linkId=e5c610625caba0653dc11cd4767c3f98&amp;bc1=ffffff&amp;lt1=_top&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\">\n    <\/iframe>\n<iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=tf_til&amp;t=affiliate1087-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B0136JJX3G&amp;linkId=7d05edfbb175bf0d98b2fb0f36036019&amp;bc1=ffffff&amp;lt1=_top&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\">\n    <\/iframe>\n\n\n\n<div class=\"wp-block-group is-style-default is-layout-flow\"><div class=\"wp-block-group__inner-container\">\n<h3 class=\"wp-block-heading\" style=\"font-size:50px\"><span style=\"background:linear-gradient(to bottom, rgba(128,255,255,0) 90%, #8cc9ff 90%);\"><strong><span style=\"color:#8cc9ff\" class=\"has-inline-color\">R<\/span>evPi DIO<\/strong><\/span><\/h3>\n\n\n\n<iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=tf_til&#038;t=affiliate1087-22&#038;m=amazon&#038;o=9&#038;p=8&#038;l=as1&#038;IS1=1&#038;detail=1&#038;asins=B07Z7VQL6C&#038;linkId=6dba22b0f375ca6d7e136d39636946bf&#038;bc1=ffffff&amp;lt1=_blank&#038;fc1=333333&#038;lc1=0066c0&#038;bg1=ffffff&#038;f=ifr\">\n    <\/iframe>\n\n<iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=tf_til&#038;t=affiliate1087-22&#038;m=amazon&#038;o=9&#038;p=8&#038;l=as1&#038;IS1=1&#038;detail=1&#038;asins=B01N4R1G5B&#038;linkId=2b19eae4c8ff433f94418395cb3233f4&#038;bc1=ffffff&amp;lt1=_blank&#038;fc1=333333&#038;lc1=0066c0&#038;bg1=ffffff&#038;f=ifr\">\n    <\/iframe>\n\n<iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=tf_til&#038;t=affiliate1087-22&#038;m=amazon&#038;o=9&#038;p=8&#038;l=as1&#038;IS1=1&#038;detail=1&#038;asins=B014I8TVLI&#038;linkId=78079ab66421bfcda9a2411713e7dea4&#038;bc1=ffffff&amp;lt1=_blank&#038;fc1=333333&#038;lc1=0066c0&#038;bg1=ffffff&#038;f=ifr\">\n    <\/iframe>\n\n<iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=tf_til&#038;t=affiliate1087-22&#038;m=amazon&#038;o=9&#038;p=8&#038;l=as1&#038;IS1=1&#038;detail=1&#038;asins=B07QBZ667V&#038;linkId=612ce51f2254241be93d549e6ae60e40&#038;bc1=ffffff&amp;lt1=_blank&#038;fc1=333333&#038;lc1=0066c0&#038;bg1=ffffff&#038;f=ifr\">\n    <\/iframe>\n\n\n\n<p class=\"has-large-font-size\">\u30d1\u30fc\u30c8\uff12\u3067\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089LED\u306e<span style=\"color:#ff6969\" class=\"has-inline-color\"><strong>\u70b9\u706f<\/strong><\/span>\u30fb<strong><span style=\"color:#8cc9ff\" class=\"has-inline-color\">\u6d88\u706f<\/span><\/strong>\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u4eca\u56de\u306f<span style=\"background:linear-gradient(to bottom, rgba(128,255,255,0) 90%, #ff6969 90%);\">\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8ffd\u52a0<\/span>\u3057\u3066\u30b9\u30a4\u30c3\u30c1\u3082\u6271\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<p class=\"has-large-font-size\">\u8ffd\u52a0\u3059\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u300e<strong>RevPi Digital I\/O \u30e2\u30b8\u30e5\u30fc\u30eb<\/strong>\u300f(\u4ee5\u4e0bDIO\u30e2\u30b8\u30e5\u30fc\u30eb)\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"has-large-font-size\">\u5165\u529b-14\u3000\u51fa\u529b-14\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"600\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi01.jpg\" alt=\"\" class=\"wp-image-154\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi01.jpg 800w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi01-300x225.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi01-768x576.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>RevPi DIO\u30e2\u30b8\u30e5\u30fc\u30eb<\/figcaption><\/figure>\n\n\n\n<p class=\"has-large-font-size\">\u3088\u308a\u8a73\u3057\u304f\u306f Kunbus\u3067\u2193<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-revolution-pi-en wp-block-embed-revolution-pi-en\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/revolution.kunbus.com\/io-modules\/\n<\/div><figcaption>Kunbus DIO\u30e2\u30b8\u30e5\u30fc\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/figcaption><\/figure>\n\n\n\n<p class=\"has-large-font-size\">\u30c9\u30a4\u30c4\u8a9e\uff08\u82f1\u5b57\u306e\u30c6\u30ed\u30c3\u30d7\u3082\u3042\u308a\uff09\u52d5\u753b\u3067\u3082\u8aac\u660e\u52d5\u753b\u304c\u3042\u308a\u307e\u3059\u2193<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Revolution Pi : Tutorial 08 - Digitale IO Module\" width=\"750\" height=\"422\" src=\"https:\/\/www.youtube.com\/embed\/OD9fiKPitc4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><figcaption>Kunbus \u30d3\u30c7\u30aa\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb DIO\u30e2\u30b8\u30e5\u30fc\u30eb<\/figcaption><\/figure>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"134\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame02-1024x134.png\" alt=\"\" class=\"wp-image-155\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame02-1024x134.png 1024w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame02-300x39.png 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame02-768x101.png 768w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame02-1536x202.png 1536w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame02-1568x206.png 1568w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame02.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-large-font-size\">Revlution Pi\u3000\u3068 DIO\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u63a5\u7d9a\u306f\u3000<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong><span style=\"color:#8cc9ff\" class=\"has-inline-color\">\u5de6\u5074<\/span><\/strong>\u306b<span style=\"color:#8cc9ff\" class=\"has-inline-color\"><strong>DIO\u30e2\u30b8\u30e5\u30fc\u30eb<\/strong><\/span>\u3000<strong><span style=\"color:#ff6969\" class=\"has-inline-color\">\u53f3\u5074<\/span><\/strong>\u306b<span style=\"color:#ff6969\" class=\"has-inline-color\"><strong>Revolution Pi<\/strong>\u3000<\/span>\u3000<\/p>\n\n\n\n<p class=\"has-large-font-size\">\u3068\u306a\u308b\u3088\u3046\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<span style=\"background:linear-gradient(to bottom, rgba(128,255,255,0) 90%, #ff6969 90%);\">\u9006\u306b\u53d6\u308a\u4ed8\u3051\u308b\u3068<strong>\u58ca\u308c\u308b\u5371\u967a\u304c\u3042\u308b<\/strong><\/span>\u3068\u306e\u3053\u3068\u306a\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"600\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi02.jpg\" alt=\"\" class=\"wp-image-156\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi02.jpg 800w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi02-300x225.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi02-768x576.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>Revolution Pi \u3068 DIO\u30e2\u30b8\u30e5\u30fc\u30eb<\/figcaption><\/figure>\n\n\n\n<p class=\"has-large-font-size\"><strong>DIO\u30e2\u30b8\u30e5\u30fc\u30eb<\/strong>\u3068<strong>Revolution Pi<\/strong>\u306e\u63a5\u7d9a\u306f<strong><span style=\"color:#a30b00\" class=\"has-inline-color\">PiBridge<\/span><\/strong>\u3068\u547c\u3070\u308c\u308b\u30d7\u30e9\u30b0\u3067\u884c\u3044\u307e\u3059\u3002\u4e21\u6a5f\u4f53\u306e\u4e0a\u90e8\u306b\u6a4b\u3092\u304b\u3051\u308b\u3088\u3046\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"373\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi03-1.jpg\" alt=\"\" class=\"wp-image-158\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi03-1.jpg 800w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi03-1-300x140.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi03-1-768x358.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>PiBridge\u306e\u753b\u50cf<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"600\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi04.jpg\" alt=\"\" class=\"wp-image-159\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi04.jpg 800w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi04-300x225.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi04-768x576.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>PiBridge\u3067\u63a5\u7d9a\u3057\u305f\u753b\u50cf<\/figcaption><\/figure>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"alignright size-full is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/Block02-2.png\" alt=\"\" class=\"wp-image-114\" width=\"220\" height=\"192\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/Block02-2.png 472w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/Block02-2-300x261.png 300w\" sizes=\"(max-width: 220px) 100vw, 220px\" \/><\/figure><\/div>\n<\/div><\/div>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group is-style-default is-layout-flow\"><div class=\"wp-block-group__inner-container\">\n<h3 class=\"wp-block-heading\" style=\"font-size:50px\"><strong><span style=\"background:linear-gradient(to bottom, rgba(128,255,255,0) 90%, #8cc9ff 90%);\"><span style=\"color:#8cc9ff\" class=\"has-inline-color\">\u30b9<\/span>\u30a4\u30c3\u30c1\u3068LED\u3092\u914d\u7dda\u3059\u308b<\/span><\/strong><\/h3>\n\n\n\n<p class=\"has-link-color has-large-font-size wp-elements-074b9f6842cc92035745bc937fd78b1a\"><strong>DIO\u30e2\u30b8\u30e5\u30fc\u30eb<\/strong>\u304b\u3089\u30b9\u30a4\u30c3\u30c1\u30fbLED\u3078\u306e\u914d\u7dda\u3092\u884c\u3044\u307e\u3059\u3002\u30b9\u30a4\u30c3\u30c1\u3068LED\u306f<a href=\"https:\/\/fischertechnik-education.jp\/\" data-type=\"URL\" data-id=\"https:\/\/fischertechnik-education.jp\/\">\u30d5\u30a3\u30c3\u30b7\u30e3\u30fc\u30c6\u30af\u30cb\u30c3\u30af<\/a>\u306e\u3082\u306e\u3092\u4f7f\u7528\u3057\u307e\u3059\uff01\u3057\u3063\u304b\u308a\u306824V\u4f7f\u7528\u306eLED\u3092\u4f7f\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"600\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi13.jpg\" alt=\"\" class=\"wp-image-180\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi13.jpg 800w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi13-300x225.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi13-768x576.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>LED\u3068\u30b9\u30a4\u30c3\u30c1<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"600\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi14.jpg\" alt=\"\" class=\"wp-image-181\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi14.jpg 800w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi14-300x225.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi14-768x576.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>24V\u4f7f\u7528\u306eLED<\/figcaption><\/figure>\n\n\n\n<p class=\"has-large-font-size\">DIO\u30e2\u30b8\u30e5\u30fc\u30eb\u3078\u306e\u914d\u7dda\u3092\u884c\u3046\u969b\u306e\u30d4\u30f3\u306e\u5272\u308a\u5f53\u3066\u306a\u3069\u306e\u60c5\u5831\u306fKunbus\u3088\u308a\u2193<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-revolution-pi-en wp-block-embed-revolution-pi-en\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/revolution.kunbus.com\/tutorials\/overview-revpi-io-modules\/digital-in-and-outputs\/\n<\/div><figcaption>DIO\u30e2\u30b8\u30e5\u30fc\u30eb \u5404\u30d4\u30f3\u306e\u60c5\u5831<\/figcaption><\/figure>\n\n\n\n<p class=\"has-large-font-size\">\u4e0b\u306e\u5199\u771f\u306e\u3088\u3046\u306b\u914d\u7dda\u3057\u3001\u53d6\u308a\u4ed8\u3051\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"600\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi15.jpg\" alt=\"\" class=\"wp-image-182\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi15.jpg 800w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi15-300x225.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi15-768x576.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>Revolutio Pi \u3068 \u30d5\u30a3\u30c3\u30b7\u30e3\u30fc\u30c6\u30af\u30cb\u30c3\u30af\u306eLED\u30fb\u30b9\u30a4\u30c3\u30c1<\/figcaption><\/figure>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"alignright size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"206\" height=\"212\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/Block_01.png\" alt=\"\" class=\"wp-image-145\"\/><\/figure><\/div>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group is-style-default is-layout-flow\"><div class=\"wp-block-group__inner-container\">\n<h3 class=\"wp-block-heading\" style=\"font-size:50px\"><span style=\"background:linear-gradient(to bottom, rgba(128,255,255,0) 90%, #8cc9ff 90%);\"><strong><span style=\"color:#8cc9ff\" class=\"has-inline-color\">P<\/span>iCtory\u3067\u6e96\u5099<\/strong><\/span><\/h3>\n\n\n\n<p class=\"has-large-font-size\">Revolution Pi \u306b\u96fb\u6e90\u3092\u5165\u308c\u3001PiCtory\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-large-font-size\">Revolution Pi\u306e\u96fb\u6e90\u306e\u5165\u308c\u65b9\u3084\u3001PiCtory\u306e\u8d77\u52d5\u306f\u30d1\u30fc\u30c8\uff12\u3067\u884c\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u308f\u304b\u3089\u306a\u3044\u65b9\u306f\u305c\u3072\u305d\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"320\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revopi04.jpg\" alt=\"\" class=\"wp-image-60\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revopi04.jpg 800w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revopi04-300x120.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revopi04-768x307.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>PiCtory\u8a2d\u5b9a\u753b\u9762<\/figcaption><\/figure>\n\n\n\n<p class=\"has-large-font-size\">\u753b\u9762\u5de6\u5074\u7aef\u306b\u3042\u308b\u3001\u3010Device Catalog\u3011\u306e\u4e2d\u304b\u3089\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u3067 Revolution Pi Core3\u306e\u753b\u50cf\u306e\u5de6\u5074\u3078\u914d\u7f6e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-large-font-size\">\u3010I\/O Devices\u3011\u306e\u4e2d\u306b\u3042\u308b RevPi DIO \u3092\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-large-font-size\"> <strong><span style=\"color:#8cc9ff\" class=\"has-inline-color\">\u5de6\u5074<\/span><\/strong>\u306b<span style=\"color:#8cc9ff\" class=\"has-inline-color\"><strong>DIO\u30e2\u30b8\u30e5\u30fc\u30eb<\/strong><\/span>\u3000<span style=\"color:#ff6969\" class=\"has-inline-color\"><strong>\u53f3\u5074<\/strong><\/span>\u306b<span style=\"color:#ff6969\" class=\"has-inline-color\"><strong>Revolution Pi<\/strong><\/span><\/p>\n\n\n\n<p class=\"has-large-font-size\">\u3068\u306a\u308b\u3088\u3046\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002\u3000 <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"600\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi05.jpg\" alt=\"\" class=\"wp-image-161\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi05.jpg 800w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi05-300x225.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi05-768x576.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>DIO\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5834\u6240<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"600\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi06.jpg\" alt=\"\" class=\"wp-image-162\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi06.jpg 800w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi06-300x225.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi06-768x576.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>\u5de6\u5074\u306bDIO\u30e2\u30b8\u30e5\u30fc\u30eb    \u53f3\u5074\u306bRaspnerry Pi Core3<\/figcaption><\/figure>\n\n\n\n<p class=\"has-large-font-size\">\u753b\u9762\u4e0b\u306e\u65b9\u306b\u3042\u308b\u300eValue Editor\u300f\u306e\u3010Typename\u3011\u3092\u628a\u63e1\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-large-font-size\">\u4eca\u56de\u306f\u4e0b\u753b\u50cf\u5185\u306e \u300eI_1\u300f\u3068\u300eO_1\u300f\u3092\u6307\u5b9a\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"596\" height=\"240\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi07.jpg\" alt=\"\" class=\"wp-image-164\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi07.jpg 596w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi07-300x121.jpg 300w\" sizes=\"(max-width: 596px) 100vw, 596px\" \/><figcaption>Input<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"648\" height=\"186\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi08.jpg\" alt=\"\" class=\"wp-image-165\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi08.jpg 648w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi08-300x86.jpg 300w\" sizes=\"(max-width: 648px) 100vw, 648px\" \/><figcaption>Output<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized is-style-default\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/Block_01-1.png\" alt=\"\" class=\"wp-image-166\" width=\"121\" height=\"128\"\/><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group is-style-default is-layout-flow\"><div class=\"wp-block-group__inner-container\">\n<h3 class=\"wp-block-heading\" style=\"font-size:50px\"><span style=\"background:linear-gradient(to bottom, rgba(128,255,255,0) 90%, #8cc9ff 90%);\"><strong><span style=\"color:#8cc9ff\" class=\"has-inline-color\">C<\/span>\u8a00\u8a9e\u3067L\u30c1\u30ab<\/strong><\/span><\/h3>\n\n\n\n<iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=tf_til&amp;t=affiliate1087-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B098B2DQWK&amp;linkId=dcc6869deec2ac353c482da49a753840&amp;bc1=ffffff&amp;lt1=_top&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\">\n    <\/iframe>\n\n\n\n<p>\u3068\u3046\u3068\u3046\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067L\u30c1\u30ab\u3067\u3059\uff01<\/p>\n\n\n\n<p>Kunbus\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306b\u3042\u308b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u306b\u306f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3042\u308b\u306e\u3067\u305d\u308c\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-large-font-size\">\u3010Sample codes\u3011\u306e\u4e2d\u306e Sample code from video tutorial no. 13 \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u300eSample code used in our video tutorial no. 13 &#8220;PiTest Sourcecode&#8221;.\u300f\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"has-large-font-size\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30ebZip\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u89e3\u51cd\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-revolution-pi-en wp-block-embed-revolution-pi-en\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/revolution.kunbus.com\/tutorials\/downloads\/\n<\/div><figcaption>Kunbus \u30b5\u30f3\u30d7\u30eb\u30d7\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"818\" height=\"184\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi09.jpg\" alt=\"\" class=\"wp-image-167\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi09.jpg 818w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi09-300x67.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi09-768x173.jpg 768w\" sizes=\"(max-width: 818px) 100vw, 818px\" \/><figcaption>\u89e3\u51cd\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u8eab<\/figcaption><\/figure>\n\n\n\n<div style=\"height:46px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u6b21\u306fRevolution Pi \u306e\u3010demo\u30d5\u30a9\u30eb\u30c0\u3011\u4e2d\u306b\u89e3\u51cd\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u8ee2\u9001\u3001\u914d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"268\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi10.jpg\" alt=\"\" class=\"wp-image-168\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi10.jpg 800w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi10-300x101.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi10-768x257.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>demo\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d<\/figcaption><\/figure>\n\n\n\n<p>LightSwitch.c\u4e2d\u8eab<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-6\">\n<div class=\"wp-block-column is-layout-flow\" style=\"flex-basis:100%\">\n<code>\n<ol style=\"list-style:decimal-leading-zero outside;in-left:0;padding-left:36px;margin:0;background-color:#EEF;color:#000;\">\n<li style=\"background-color:#EFF;\"><font style=\"color:green;font-style:italic;\">\/*=======================================================================================<\/font><\/li><font style=\"color:green;font-style:italic;\">\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;       KK    KK   UU    UU   NN    NN   BBBBBB    UU    UU    SSSSSS<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;       KK   KK    UU    UU   NNN   NN   BB   BB   UU    UU   SS<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;       KK  KK     UU    UU   NNNN  NN   BB   BB   UU    UU   SS<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;+----- KKKKK      UU    UU   NN NN NN   BBBBB     UU    UU    SSSSS<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;|      KK  KK     UU    UU   NN  NNNN   BB   BB   UU    UU        SS<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;|      KK   KK    UU    UU   NN   NNN   BB   BB   UU    UU        SS<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;|      KK    KKK   UUUUUU    NN    NN   BBBBBB     UUUUUU    SSSSSS     GmbH<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;|<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;|            [#]  I N D U S T R I A L   C O M M U N I C A T I O N<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;|             |<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;+-------------+<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*---------------------------------------------------------------------------------------<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;* (C) KUNBUS GmbH, Heerweg 15C, 73770 Denkendorf, Germany<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;* This program is free software; you can redistribute it and\/or modify<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;* it under the terms of the GNU General Public License V2 as published by<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;* the Free Software Foundation<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;* This program is distributed in the hope that it will be useful,<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;* but WITHOUT ANY WARRANTY; without even the implied warranty of<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;* GNU General Public License for more details.<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*  For licencing details see COPYING<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;*=======================================================================================<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<\/font><li style=\"background-color:#EFF;\"><font style=\"color:green;font-style:italic;\">&nbsp;*\/<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">#include &lt;piControlIf.h&gt;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">#include &lt;piControl.h&gt;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">#include &lt;string.h&gt;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">#include &lt;stdio.h&gt;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">int main(int argc, char ** argv)<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">{<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;int  i = 0;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;int  iLastInputValue = 0;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;char *pchInput  = NULL;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;char *pchOutput = NULL;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ structures containing variable information: Name, Offset, Bit, Length<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;SPIVariable spiVariableIn  = {<font style=\"color:brown;\">\"\"<\/font>, 0, 0, 0};<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;SPIVariable spiVariableOut = {<font style=\"color:brown;\">\"\"<\/font>, 0, 0, 0};<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ structures containing variable value: Offset, Bit, Value<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;SPIValue sValueIn   = {0, 0, 0};<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;SPIValue sValueOut  = {0, 0, 0};<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;if(argc != 3)<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<font style=\"color:brown;\">\"Usage: %s &lt;PiCtory Input Pin&gt; &lt;PiCtory Output Pin&gt;\\n\"<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:brown;\">\"  i.e. %s Input_Pin_1 Output_Pin_1\\n\"<\/font>, argv[0], argv[0]);<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 0;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;pchInput  = argv[1];&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ PiCtory input pin for Switch<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;pchOutput = argv[2];&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ PiCtory output pin for Light<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;strncpy(spiVariableIn.strVarName,  pchInput,  sizeof(spiVariableIn.strVarName));<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;strncpy(spiVariableOut.strVarName, pchOutput, sizeof(spiVariableOut.strVarName));<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;i = piControlGetVariableInfo(&amp;spiVariableIn);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ PiBridge - get variable info<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;if(0 != i)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ handle error<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr, <font style=\"color:brown;\">\"Error: piControlGetVariableInfo() returned %d for variable '%s' \\n\"<\/font>,<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i, spiVariableIn.strVarName);<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return -1;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;i = piControlGetVariableInfo(&amp;spiVariableOut);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ PiBridge - get variable info<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;if(0 != i)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ handle error<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr, <font style=\"color:brown;\">\"Error: piControlGetVariableInfo() returned %d for variable '%s' \\n\"<\/font>,<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i, spiVariableOut.strVarName);<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return -1;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;sValueIn.i16uAddress  = spiVariableIn.i16uAddress;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;sValueIn.i8uBit       = spiVariableIn.i8uBit;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;sValueIn.i8uValue     = 0;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;sValueOut.i16uAddress = spiVariableOut.i16uAddress;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;sValueOut.i8uBit      = spiVariableOut.i8uBit;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;sValueOut.i8uValue    = 0;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;printf(<font style=\"color:brown;\">\"%s is running waiting for switch '%s' \\n\"<\/font>, argv[0], pchInput);<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;while(1)<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i = piControlGetBitValue(&amp;sValueIn);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ PiBridge - read input pin<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(0 != i)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ handle error<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr, <font style=\"color:brown;\">\"Error: piControlGetBitValue() returned %d\\n\"<\/font>, i);<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return -1;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(iLastInputValue != sValueIn.i8uValue)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ if button state changed<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ show the change<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<font style=\"color:brown;\">\"%-32s : %d \\n\"<\/font>, pchInput, sValueIn.i8uValue);<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(0 == sValueIn.i8uValue)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ if button is released<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(1 == iLastInputValue)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ and was pressed before<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ switch light<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sValueOut.i8uValue = ~sValueOut.i8uValue;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ PiBridge - set output pin<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i = piControlSetBitValue(&amp;sValueOut);<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<font style=\"color:brown;\">\"%-32s : %s \\n\"<\/font>, pchOutput, sValueOut.i8uValue ? <font style=\"color:brown;\">\"On\"<\/font> : <font style=\"color:brown;\">\"Off\"<\/font>);<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(0 != i)<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr, <font style=\"color:brown;\">\"Error: piControlSetBitValue() returned %d\\n\"<\/font>, i);<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return -1;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iLastInputValue = sValueIn.i8uValue;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style=\"color:green;font-style:italic;\">\/\/ remember last input value<\/font><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">&nbsp;&nbsp;&nbsp;&nbsp;return 0;<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\">}<\/li>\n<li style=\"background-color:#EEF;\"><\/li>\n<li style=\"background-color:#EFF;\"><\/li>\n<\/ol><\/code>\n<\/div>\n<\/div>\n\n\n\n<div style=\"height:88px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-large-font-size\">\u6b21\u306f\u306fRevolution Pi\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3078<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"500\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revopi10.jpg\" alt=\"\" class=\"wp-image-80\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revopi10.jpg 800w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revopi10-300x188.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revopi10-768x480.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption>\u30bf\u30fc\u30df\u30ca\u30eb\u753b\u9762<\/figcaption><\/figure>\n\n\n\n<p class=\"has-large-font-size\">ls\u3067\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u3092\u78ba\u8a8d\u5f8c\u3001demo\u30d5\u30a9\u30eb\u30c0\u3078\u79fb\u52d5\u3057\u30d5\u30a9\u30eb\u30c0\u306e\u306bLightSwitch.c\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>cd demo<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>ls<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"768\" height=\"268\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi11.jpg\" alt=\"\" class=\"wp-image-171\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi11.jpg 768w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi11-300x105.jpg 300w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><figcaption>LightSwitch.c\u306e\u78ba\u8a8d<\/figcaption><\/figure>\n\n\n\n<p class=\"has-large-font-size\">\u30d5\u30a1\u30a4\u30eb\u540d\u3092LightSwitch.c \u304b\u3089 piTest.c\u3000\u3078\u3068\u5909\u66f4\u3057\u307e\u3059\u3002\u3082\u3068\u3082\u3068\u3042\u308b piTest.c \u306f\u5225\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u3068\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u4eca\u56de\u306fold_piTest\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-large-font-size\">piTest.c\u3000\u2192old_piTest.c <\/p>\n\n\n\n<p class=\"has-large-font-size\">LightSwitch.c \u2192 piTest.c \u3078\u3068\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mv piTest old_piTest<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>mv LightSwitch.c piTest.c<\/code><\/pre>\n\n\n\n<p class=\"has-large-font-size\">make \u30b3\u30de\u30f3\u30c9\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"730\" height=\"188\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi1.jpg\" alt=\"\" class=\"wp-image-173\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi1.jpg 730w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/revpi1-300x77.jpg 300w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><figcaption>\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4<\/figcaption><\/figure>\n\n\n\n<p class=\"has-large-font-size\">\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002PiCtory\u3067\u306eTypename\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/piTest I_1 O_1<\/code><\/pre>\n\n\n\n<p class=\"has-extra-large-font-size\">\u3067\u304d\u307e\u3057\u305f\uff01<\/p>\n\n\n\n<p class=\"has-extra-large-font-size\">\u3057\u3063\u304b\u308a\u3068<span style=\"color:#ff6969\" class=\"has-inline-color\"><strong>\u70b9\u706f<\/strong><\/span>\u30fb<span style=\"color:#8cc9ff\" class=\"has-inline-color\"><strong>\u6d88\u706f<\/strong><\/span>\u3057\u3066\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-twitter wp-block-embed-twitter\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/twitter.com\/inFT37207295\/status\/1427914246931685376\n<\/div><figcaption>\u5b8c\u6210\u306e\u5b9f\u884c\u52d5\u753b<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"134\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame03-1-1024x134.png\" alt=\"\" class=\"wp-image-224\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame03-1-1024x134.png 1024w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame03-1-300x39.png 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame03-1-768x101.png 768w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame03-1-1536x202.png 1536w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame03-1-1568x206.png 1568w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/frame03-1.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group is-style-twentytwentyone-border has-dark-gray-color has-blue-background-color has-text-color has-background is-layout-flow\"><div class=\"wp-block-group__inner-container\">\n<h2 class=\"has-text-align-center has-extra-large-font-size wp-block-heading\"><strong><span class=\"has-inline-color has-white-color\">SNS<\/span><\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-social-links has-huge-icon-size items-justified-space-between is-style-logos-only is-layout-flex\"><li class=\"wp-social-link wp-social-link-twitter wp-block-social-link\"><a rel=\" noopener nofollow\" target=\"_blank\" href=\"https:\/\/twitter.com\/inFT37207295\" class=\"wp-block-social-link-anchor\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z\"><\/path><\/svg><span class=\"wp-block-social-link-label screen-reader-text\">Twitter<\/span><\/a><\/li>\n\n<li class=\"wp-social-link wp-social-link-youtube wp-block-social-link\"><a rel=\" noopener nofollow\" target=\"_blank\" href=\"https:\/\/www.youtube.com\/channel\/UCwABIbuVNGbEdBQZ2Fj9Weg\" class=\"wp-block-social-link-anchor\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z\"><\/path><\/svg><span class=\"wp-block-social-link-label screen-reader-text\">YouTube<\/span><\/a><\/li>\n\n<li class=\"wp-social-link wp-social-link-instagram wp-block-social-link\"><a rel=\" noopener nofollow\" target=\"_blank\" href=\"https:\/\/www.instagram.com\/education_stem_1965\/\" class=\"wp-block-social-link-anchor\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z\"><\/path><\/svg><span class=\"wp-block-social-link-label screen-reader-text\">Instagram<\/span><\/a><\/li><\/ul>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/www.youtube.com\/channel\/UCwABIbuVNGbEdBQZ2Fj9Weg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"216\" src=\"http:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/sns-1.jpg\" alt=\"\" class=\"wp-image-124\" srcset=\"https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/sns-1.jpg 800w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/sns-1-300x81.jpg 300w, https:\/\/fischertechnik-education.jp\/blog\/wp-content\/uploads\/2021\/08\/sns-1-768x207.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/figure>\n\n\n\n<div style=\"height:150px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><a href=\"https:\/\/t.co\/54evZWLZAX?amp=1\" rel=\"noreferrer noopener\" target=\"_blank\">http:\/\/Amazon.co.jp<\/a>\u30a2\u30bd\u30b7\u30a8\u30a4\u30c8\u30fb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u53c2\u52a0\u8005\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C\u8a00\u8a9e\u3067L\u30c1\u30ab RevPi DIO \u30d1\u30fc\u30c8\uff12\u3067\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089LED\u306e\u70b9\u706f\u30fb\u6d88\u706f\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u30b9\u30a4\u30c3\u30c1\u3082\u6271\u3044\u307e\u3059\uff01 \u8ffd\u52a0\u3059\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u300eRevPi Digital I\/O \u30e2\u30b8\u30e5\u30fc\u30eb\u300f(\u4ee5\u4e0bD&hellip; <a class=\"more-link\" href=\"https:\/\/fischertechnik-education.jp\/blog\/2021\/08\/19\/revolution-pi-part3\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Revolution Pi\u3067L\u30c1\u30ab\u307e\u3067\uff01   \u30d1\u30fc\u30c83<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":182,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[4],"_links":{"self":[{"href":"https:\/\/fischertechnik-education.jp\/blog\/wp-json\/wp\/v2\/posts\/100"}],"collection":[{"href":"https:\/\/fischertechnik-education.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fischertechnik-education.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fischertechnik-education.jp\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/fischertechnik-education.jp\/blog\/wp-json\/wp\/v2\/comments?post=100"}],"version-history":[{"count":26,"href":"https:\/\/fischertechnik-education.jp\/blog\/wp-json\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":334,"href":"https:\/\/fischertechnik-education.jp\/blog\/wp-json\/wp\/v2\/posts\/100\/revisions\/334"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fischertechnik-education.jp\/blog\/wp-json\/wp\/v2\/media\/182"}],"wp:attachment":[{"href":"https:\/\/fischertechnik-education.jp\/blog\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fischertechnik-education.jp\/blog\/wp-json\/wp\/v2\/categories?post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fischertechnik-education.jp\/blog\/wp-json\/wp\/v2\/tags?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}