{"id":2366,"date":"2019-11-02T01:32:18","date_gmt":"2019-11-01T16:32:18","guid":{"rendered":"http:\/\/androiphone.uvs.jp\/?p=2366"},"modified":"2020-05-14T12:53:22","modified_gmt":"2020-05-14T03:53:22","slug":"%e3%83%a9%e3%82%ba%e3%83%91%e3%82%a4-lcd1602%e3%82%92i2c%e6%8e%a5%e7%b6%9a%e3%81%97%e6%97%a5%e6%9c%ac%e8%aa%9e%e3%82%ab%e3%83%8a%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%82%8b","status":"publish","type":"post","link":"https:\/\/androiphone.uvs.jp\/?p=2366","title":{"rendered":"[\u30e9\u30ba\u30d1\u30a4] LCD1602\u3092I2C\u63a5\u7d9a\u3057\u65e5\u672c\u8a9e(\u30ab\u30ca)\u3092\u8868\u793a\u3055\u305b\u308b"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\">\u3000\u6700\u8fd1\u3001\u6ce8\u6587\u3057\u305f\u90e8\u54c1\u304c\u7acb\u3066\u7d9a\u3051\u306b\u5c4a\u304d\u59cb\u3081\u305f\u304b\u306a\u3002\u305f\u3076\u3093\u5373\u4f4d\u793c\u6b63\u6bbf\u306e\u5100\u304c\u7d42\u308f\u3063\u3066\u3001\u7a0e\u95a2\u306e\u6d41\u308c\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u306a\u3063\u305f\u305b\u3044\u304b\u306a\u3068\u52dd\u624b\u306b\u601d\u3063\u3066\u308bw\u3002<\/span><\/p>\n<p><iframe style=\"width: 120px; height: 240px;\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&amp;t=dinagon-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B075167Y4D&amp;linkId=177ea11479d3353adaf9638bdfbbb2ae&amp;bc1=000000&amp;lt1=_blank&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><br \/>\n<\/iframe><br \/>\n<span style=\"font-size: 14pt;\">\u3000\u4e0a\u306e\u30ad\u30c3\u30c8\u306b\u306fLCD1602(LED\u30d0\u30c3\u30af\u30e9\u30a4\u30c8\u4ed8\u2026\u5f8c\u304b\u3089\u77e5\u3063\u305f)\u304c\u5165\u3063\u3066\u3044\u308b\u3002<\/span><br \/>\n<iframe style=\"width: 120px; height: 240px;\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&amp;t=dinagon-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B010GXB9NM&amp;linkId=295e6a42d69d46318c7dab8468e2af15&amp;bc1=000000&amp;lt1=_blank&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><br \/>\n<\/iframe><br \/>\n<span style=\"font-size: 14pt;\">\u3000\u5358\u54c1\u8cfc\u5165\u3060\u3068\u3053\u306e\u3042\u305f\u308a\u3068\u601d\u3046\u3002\u3057\u304b\u3057\u3001\u3053\u306e\u5546\u54c1\u3001I2C\u306b\u3064\u306a\u3052\u308b\u305f\u3081\u306e\u30b7\u30ea\u30a2\u30eb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304c\u3064\u3044\u3066\u3044\u306a\u3044\u3002I2C\u3067\u306a\u304f\u3066\u3082\u3064\u306a\u3052\u308b\u3053\u3068\u306f\u3067\u304d\u308b\u3051\u3069\u3001\u4f55\u304b\u3001\u7d50\u69cb\u5927\u5909\u305d\u3046\u3060\u3057\u3001\u3044\u304b\u3093\u305b\u3093\u60c5\u5831\u304c\u53e4\u3044\u3002\u3084\u3063\u3071\u3057I2C\u3067\u3064\u306a\u3052\u305f\u3044\u3002<\/span><\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/sakura87.net\/archives\/1614\" data-lkc-id=\"697\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=sakura87.net\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">sakura87.net<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-hb\">3 Users<\/div> <div class=\"lkc-sns-po\">5 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"\/\/androiphone.uvs.jp\/wp-content\/uploads\/pz-linkcard\/cache\/1c1a9aa001e92ef2b471e4efd9d072a0cd1de71eabd3fd2e220f4669bc2e825d.jpeg\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Raspberry Pi 2\u3067\u30ad\u30e3\u30e9\u30af\u30bf\u6db2\u6676\u306e\u5236\u5fa1\uff081\uff09 \u2013 \u3055\u304f\u3089\u306e\u30b8\u30e3\u30f3\u30af\u7bb1<\/div><div class=\"lkc-url\" title=\"https:\/\/sakura87.net\/archives\/1614\">https:\/\/sakura87.net\/archives\/1614<\/div><div class=\"lkc-excerpt\">\u524d\u56de\u307e\u3067\u3001LED\u30847\u30bb\u30b0LED\u306a\u3069\u306e\u5236\u5fa1\u3092\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u3084\u306f\u308a\u8868\u793a\u3067\u304d\u308b\u60c5\u5831\u306b\u9650\u308a\u304c\u6709\u308b\u306e\u3067\u3001\u305b\u3081\u3066\u7c21\u5358\u306a\u6587\u5b57\u304f\u3089\u3044\u306f\u8868\u793a\u3057\u305f\u3044\u3082\u306e\u3067\u3059\u306d\u3002\u3057\u304b\u3057\u3001\u6570\u5b57\u4ee5\u4e0a\u306e\u3082\u306e\u3068\u306a\u308b\u3068LED\u3067\u306f\u8868\u793a\u3067\u304d\u307e\u305b\u3093\u3002R...<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<p><iframe style=\"width: 120px; height: 240px;\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&amp;t=dinagon-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B010Q000V2&amp;linkId=72dae865642d02f30ad3311e79a422cd&amp;bc1=000000&amp;lt1=_blank&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><br \/>\n<\/iframe><iframe style=\"width: 120px; height: 240px;\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&amp;t=dinagon-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B010Q175VY&amp;linkId=2cf84057d56b95b3a216ffba40861768&amp;bc1=000000&amp;lt1=_blank&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><br \/>\n<\/iframe><iframe style=\"width: 120px; height: 240px;\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&amp;t=dinagon-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B07LBS9PGF&amp;linkId=607861e9a39f994cf174cbd74b3cec2f&amp;bc1=000000&amp;lt1=_blank&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><br \/>\n<\/iframe><\/p>\n<p><span style=\"font-size: 14pt;\">\u3000I2C\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30dc\u30fc\u30c9\u3092\u5225\u9014\u8cfc\u5165\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u3002\u5b89\u3044\u3084\u3064\u306f\u3001\u4e2d\u56fd\u30fb\u53f0\u6e7e\u767a\u9001\u306a\u306e\u3067\u5fd8\u308c\u308b\u3050\u3089\u3044\u9045\u3044\u304b\u3089\u6ce8\u610f\u3057\u3066\u306d(20\u65e5\u306f\u304b\u304b\u308b)\u3002\u6025\u304e\u306a\u3089\u3001\u56fd\u5185\u767a\u9001\u306e\u3082\u306e\u3092\u6ce8\u6587\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u306d(\u4f55\u56de\u3082\u8a00\u3063\u3066\u308b\u3051\u3069w)\u3002\u3042\u3068\u3001\u30bb\u30c3\u30c8\u306e\u3082\u3042\u308b\u304b\u3089\u305d\u3063\u3061\u306e\u307b\u3046\u304c\u624b\u3063\u53d6\u308a\u65e9\u3044\u304b\u3082\u3002<span style=\"color: #ff0000;\"><strong><span style=\"font-size: 18pt;\">\u8ff7\u308f\u305a\u3001\u4e2d\u83ef\u30fb\u53f0\u6e7e\u767a\u9001\u3092\u30dd\u30c1\u308bww<\/span><\/strong><\/span>\u3002<\/span><\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/qiita.com\/otesho1\/items\/d9a56b372d377f289ff1\" data-lkc-id=\"698\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=qiita.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">Qiita<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-hb\">1 User<\/div> <div class=\"lkc-sns-po\">4 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"https:\/\/s.wordpress.com\/mshots\/v1\/https%3A%2F%2Fqiita.com%2Fotesho1%2Fitems%2Fd9a56b372d377f289ff1?w=100\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">RaspBerryPi3\u3067IIC\/I2C 1602\u30b7\u30ea\u30a2\u30eb\u6db2\u6676\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u6587\u5b57\u3092\u8868\u793a\u3059\u308b (Pi4j) - Qiita<\/div><div class=\"lkc-url\" title=\"https:\/\/qiita.com\/otesho1\/items\/d9a56b372d377f289ff1\">https:\/\/qiita.com\/otesho1\/items\/d9a56b372d377f289ff1<\/div><div class=\"lkc-excerpt\">\\def\\textlarge#1{%  {\\rm\\Large #1}}\\def\\textsmall#1{%  {\\rm\\scriptsize #1}}\uff11\u3001RaspBerryPi3\u3092\u8cfc\u5165\u3000\u3000\u6700\u8fd1\u3001\u9045\u308c\u3070\u305b\u306a\u304c\u3089\u300c...<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<p><span style=\"font-size: 14pt;\">\u3000\u4e0b\u8abf\u3079\u3067\u898b\u3064\u3051\u305f\u4e0a\u306e\u30b5\u30a4\u30c8\u3092\u898b\u308b\u3068\u30fb\u30fb<strong><span style=\"color: #ff0000; font-size: 18pt;\">5V\u306eI2C\u3092\u30e9\u30ba\u30d1\u30a4\u306b\u76f4\u7d50\u3084\u306a\u3044\u304b\u30fc\u3044ww<\/span><\/strong>\u3002\u307e\u3041\u3001\u3053\u3046\u3044\u3046\u30b5\u30a4\u30c8\u306f\u7d50\u69cb\u3042\u3063\u3066\u3001\u7d50\u679c\u52d5\u3051\u3070\u3044\u3044\u3093\u3060\u3051\u3069\u3001\u8907\u6570\u30c7\u30d0\u30a4\u30b9\u3092I2C\u306b\u3064\u306a\u3044\u3060\u5834\u5408\u306e\u52d5\u4f5c\u4e0d\u826f\u3068\u304b\u30e9\u30ba\u30d1\u30a4\u672c\u4f53\u304c\u4e0d\u5b89\u3002LCD\u306eI2C\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u3001\u307b\u3068\u3093\u3069\u304cArduino\u5bfe\u5fdc\u54c1\u306e5V\u306a\u306e\u3067\u3001<strong><span style=\"color: #0000ff;\">\u30e9\u30ba\u30d1\u30a4\u306eI2C\u306b\u3064\u306a\u3052\u308b\u306b\u306f3.3V\u306e\u53cc\u65b9\u5411\u306e\u30ed\u30b8\u30c3\u30af\u30ec\u30d9\u30eb\u30b3\u30f3\u30d0\u30fc\u30bf\u3092\u631f\u3080\u306e\u304c\u30bb\u30aa\u30ea\u30fc<\/span><\/strong>\u3068\u306e\u3053\u3068\u3067\u30a2\u30de\u30be\u30f3\u3092\u635c\u7d22\u3002<\/span><\/p>\n<p><iframe style=\"width: 120px; height: 240px;\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&amp;t=dinagon-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B07DW7X4GS&amp;linkId=3cf40150f8170eaec0ae7aafd480cef8&amp;bc1=000000&amp;lt1=_blank&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><br \/>\n<\/iframe><iframe style=\"width: 120px; height: 240px;\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&amp;t=dinagon-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B014F8ZEVM&amp;linkId=9c9aeaf4e54692174fb9233cc1c2cfe4&amp;bc1=000000&amp;lt1=_blank&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><br \/>\n<\/iframe><\/p>\n<p><span style=\"font-size: 14pt;\">\u3000\u65e9\u901f\u8cfc\u5165\u3082\u76f8\u5909\u308f\u3089\u305a\u5b89\u3055\u306b\u3064\u3089\u308c\u3001\u4e2d\u83ef\u30fb\u53f0\u6e7e\u767a\u9001\u3092\u30dd\u30c1\u30ea\u5f85\u3061\u307c\u3046\u3051\u3092\u98df\u3089\u3046w\u3002<span style=\"text-decoration: underline;\"><strong><span style=\"font-size: 18pt; color: #000080; text-decoration: underline;\">\u3067\u3082\u3044\u3044\u3093\u3067\u3059\uff01LCD\u306f\u30ad\u30c3\u30c8\u306b\u5165\u3063\u3066\u305f\u3057\u3001136\u5186+360\u5186\/5\u500b = 208\u5186\u3067\u904a\u3079\u308b\u3093\u3060\u304b\u3089\u3063<\/span><\/strong><\/span>\u3002<\/span><\/p>\n<p><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0643-e1572600237127.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2363\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0643-e1572600237127-300x247.jpg\" alt=\"\" width=\"300\" height=\"247\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0643-e1572600237127-300x247.jpg 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0643-e1572600237127-768x631.jpg 768w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0643-e1572600237127-1024x842.jpg 1024w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0643-e1572600237127.jpg 1925w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0642-e1572600288110.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2364\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0642-e1572600288110-300x218.jpg\" alt=\"\" width=\"344\" height=\"250\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0642-e1572600288110-300x218.jpg 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0642-e1572600288110-768x559.jpg 768w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0642-e1572600288110-1024x745.jpg 1024w\" sizes=\"auto, (max-width: 344px) 100vw, 344px\" \/><\/a><\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/qiita.com\/hnw\/items\/926e5fcd2270b8ab1bad\" data-lkc-id=\"699\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=qiita.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">Qiita<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-po\">6 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"https:\/\/s.wordpress.com\/mshots\/v1\/https%3A%2F%2Fqiita.com%2Fhnw%2Fitems%2F926e5fcd2270b8ab1bad?w=100\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">5V Arduino+3.3V I2C\u30c7\u30d0\u30a4\u30b9+\u53cc\u65b9\u5411\u30ed\u30b8\u30c3\u30af\u30ec\u30d9\u30eb\u30b3\u30f3\u30d0\u30fc\u30bf\u3092\u8a66\u3059 - Qiita<\/div><div class=\"lkc-url\" title=\"https:\/\/qiita.com\/hnw\/items\/926e5fcd2270b8ab1bad\">https:\/\/qiita.com\/hnw\/items\/926e5fcd2270b8ab1bad<\/div><div class=\"lkc-excerpt\">\u96fb\u5b50\u5de5\u4f5c\u3067\u30bb\u30f3\u30b5\u30fc\u985e\u3084\u305d\u306e\u4ed6\u30c7\u30d0\u30a4\u30b9\u3092\u5165\u624b\u3059\u308b\u3068\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304cI2C\u3068\u306a\u3063\u3066\u3044\u308b\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u96fb\u5b50\u90e8\u54c1\u306e\u30d0\u30b9\u63a5\u7d9a\u3067\u3088\u304f\u7528\u3044\u3089\u308c\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u30012\u7dda\u63a5\u7d9a\u3067\u8907\u6570\u30c7\u30d0\u30a4\u30b9\u3092\u5236\u5fa1\u3067\u304d\u308b\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002\u3053\u308c\u3089\u306eI2C\u30c7\u30d0\u30a4...<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<p><span style=\"font-size: 14pt;\">\u3000\u4e0a\u306e\u30b5\u30a4\u30c8\u3092\u3088\u304f\u8aad\u3093\u3067\u63a5\u7d9a\u3002\u3053\u306e\u30ed\u30b8\u30c3\u30af\u30ec\u30d9\u30eb\u30b3\u30f3\u30d0\u30fc\u30bf\u30fc\u306f4\u30c1\u30e3\u30f3\u30cd\u30eb\u3060\u3051\u3069\u3001\u4eca\u56de\u306fI2C\u3067SCA\u3001SDL\u306e2\u7dda\u306e\u307f\u306a\u306e\u3067\u30015V\u5074HV3\u3068HV4\u306b\u30b7\u30ea\u30a2\u30eb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306eSCA\u3001SDL\u3092\u3064\u306a\u3044\u30673.3V\u5074\u306eLV3\u3001LV4\u304b\u3089\u5bfe\u5fdc\u3059\u308bSCA\u3001SDL\u3092\u30e9\u30ba\u30d1\u30a4\u306b\u3064\u306a\u3050\u3002HV\u306b\u306f5V\u3001LV\u306b\u306f3.3V\u306e\u96fb\u6e90\u3092\u3064\u306a\u3044\u3067GND\u3092\u53d6\u308a\u5efb\u305b\u3070\u5b8c\u6210\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3000\u3067\u3082\u3053\u308c\u3001<strong><span style=\"font-size: 18pt; color: #ff6600;\">\u307b\u3093\u3068\u306b3.3V\u30685V\u3092\u5909\u63db\u3057\u3066\u308b\u3093\u3067\u3057\u3087\u3046\u304b\uff1fw\u3002<\/span><\/strong>\u78ba\u8a8d\u306b\u306f\u30aa\u30b7\u30ed\u30b9\u30b3\u30fc\u30d7\u3057\u304b\u306a\u3044\u3068\u601d\u3046\u3093\u3067\u3059\u304c\u3001\u6301\u3063\u3066\u306a\u3044\u3093\u3067\u308f\u304b\u308a\u307e\u305b\u3093\u3002\u8cfc\u5165\u3057\u305f\u3089\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3059\u3051\u3069\u3001\u4fe1\u3058\u3066\u6b21\u884c\u304d\u307e\u3059www<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3000LCD1602\u3068\u30b7\u30ea\u30a2\u30eb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u534a\u7530\u3067\u3064\u3051\u305f\u304b\u3063\u305f\u3051\u3069\u3001\u3059\u3067\u306b\u4e21\u65b9\u3068\u3082\u306b\u30d4\u30f3\u30d8\u30c3\u30c0\u304c\u3064\u3044\u3066\u3044\u305f\u306e\u3067\u5916\u3059\u306e\u3082\u9762\u5012\u3060\u3063\u305f\u304b\u3089\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u3067\u7d50\u7dda\u3057\u305f\u3002LCD1602\u306e\u8868\u9762\u306e<strong><span style=\"color: #008000;\">\u50b7\u9632\u6b62\u30d5\u30a3\u30eb\u30e0\u304c\u3064\u3044\u305f\u307e\u307e\u3068\u3044\u3046\u8ca7\u4e4f\u81ed\u3055\u306f\u8a31\u3057\u3066\u304f\u3060\u3055\u3044<\/span><\/strong>\u3002\u3067\u3001\u914d\u7dda\u3092\u78ba\u8a8d\u3057\u3066\u30e9\u30ba\u30d1\u30a4\u96fb\u6e90\u30aa\u30f3\uff01\uff01<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3000\u3068\u308a\u3042\u3048\u305a\u3001LCD\u306e\u30d0\u30c3\u30af\u30e9\u30a4\u30c8\u304c\u5149\u308a\u307e\u3057\u305f\u3002<del>\u3053\u306e\u6642\u70b9\u3067\u521d\u3081\u3066\u30d0\u30c3\u30af\u30e9\u30a4\u30c8\u4ed8\u304d\u3060\u3068\u6c17\u3065\u304d\u307e\u3059w<\/del>\u3002\u3067\u3001<span style=\"color: #ff6600;\"><strong><span style=\"font-size: 18pt;\">I2C\u3092\u3064\u306a\u3044\u3060\u6642\u306e\u5100\u5f0f\u3092\u884c\u3044\u307e\u3059<\/span><\/strong><\/span><\/span><\/p>\n<pre class=\"lang:default decode:true\">i2cdetect -y 1<\/pre>\n<p><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-1_22-49-32_No-00.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2376\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-1_22-49-32_No-00-300x137.png\" alt=\"\" width=\"300\" height=\"137\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-1_22-49-32_No-00-300x137.png 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-1_22-49-32_No-00.png 651w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><span style=\"font-size: 14pt;\">\u3000\u305d\u3044\u3067\u3001\u3061\u3083\u3093\u3068\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u30020x27\u3067\u8a8d\u8b58\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u3053\u306e\u30b7\u30ea\u30a2\u30eb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306eI2C\u30a2\u30c9\u30ec\u30b9\u306f0x27\u30680x3f\u306e2\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u308a\u307e\u3059\u3002\u4eca\u56de\u306f0x27\u3067\u3057\u305f\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u306a\u3093\u3067\u3082\u3044\u3044\u3093\u3067\u6700\u521d\u306b\u6587\u5b57\u3092\u8868\u793a\u3055\u305b\u305f\u3044\u3067\u3059\u306d\u3002<\/span><\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/qiita.com\/miki-tensorflow\/items\/472d970ab0269169ed7e\" data-lkc-id=\"700\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=qiita.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">Qiita<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-po\">13 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"https:\/\/s.wordpress.com\/mshots\/v1\/https%3A%2F%2Fqiita.com%2Fmiki-tensorflow%2Fitems%2F472d970ab0269169ed7e?w=100\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Raspberry Pi 3\u3068LCD\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3092\u63a5\u7d9a\u3057\u6587\u5b57\u3092\u8868\u793a\u3055\u305b\u3066\u307f\u308b - Qiita<\/div><div class=\"lkc-url\" title=\"https:\/\/qiita.com\/miki-tensorflow\/items\/472d970ab0269169ed7e\">https:\/\/qiita.com\/miki-tensorflow\/items\/472d970ab0269169ed7e<\/div><div class=\"lkc-excerpt\">\u306f\u3058\u3081\u306bIoT\u304c\u6ce8\u76ee\u3055\u308c\u59cb\u3081\u3001\u6700\u8fd1\u4f55\u304b\u3068\u8a71\u984c\u306e\u30e9\u30ba\u30d9\u30ea\u30fc\u30d1\u30a4\u3092\u306f\u3058\u3081\u3066\u307f\u3088\u3046\u3068RaspberryPi3\u3068Raspberry Pi\u3067\u5b66\u3076\u96fb\u5b50\u5de5\u4f5c \u5c02\u7528 \u5b9f\u9a13\u30ad\u30c3\u30c8 \u57fa\u672c\u90e8\u54c1\u30bb\u30c3\u30c8 \u30b9\u30bf\u30fc\u30bf\u30fc\u30d1\u30c3\u30af (\u96fb\u5b50\u90e8\u54c1\u95a2\u9023)\u3092\u8cfc\u5165\u3057\u307e\u3057...<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<p><span style=\"font-size: 14pt;\"><del>\u4e0a\u306e\u30b5\u30a4\u30c8\u3082\u63a5\u7d9a\u304c\u30fb\u30fb\u30fb5V-I2C\u76f4\u7d50\u3067\u3059\u304c\u30fb\u30fb\u30fb\u3001<\/del>\u307e\u3041\u3044\u3044\u3068\u3057\u3066\u30fb\u30fbw\u3001\u53c2\u8003\u3068\u3057\u3066\u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u307f\u307e\u3059\u30020x27\u306a\u306e\u3067<\/span><\/p>\n<pre class=\"lang:default decode:true\">wget http:\/\/osoyoo.com\/driver\/i2clcda.py<\/pre>\n<p><span style=\"font-size: 14pt;\">\u3061\u306a\u307f\u306b0x3f\u306e\u5834\u5408\u306f<\/span><\/p>\n<pre class=\"lang:default decode:true\">wget http:\/\/osoyoo.com\/driver\/i2clcdb.py<\/pre>\n<p><span style=\"font-size: 14pt;\">\u3000\u30bf\u30fc\u30df\u30ca\u30eb\u958b\u3044\u305f\u6642\u306e\u30ab\u30ec\u30f3\u30c8\u30d5\u30a9\u30eb\u30c0\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306b\u4efb\u610f\u306e\u30d5\u30a9\u30eb\u30c0\u3067\u3082\u4f5c\u3063\u3066\u3001\u305d\u3053\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304f\u304b\u79fb\u52d5\u3057\u3066\u4e0a\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002i2clcda.py\u304c\u3067\u304d\u308b\u306e\u3067\u3001Thonny\u3067\u3082Mu\u3067\u3082\u3044\u3044\u304b\u3089\u958b\u3044\u3066\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/span><\/p>\n<p><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-1_22-59-16_No-00.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2377\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-1_22-59-16_No-00-300x205.png\" alt=\"\" width=\"462\" height=\"316\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-1_22-59-16_No-00-300x205.png 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-1_22-59-16_No-00-768x525.png 768w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-1_22-59-16_No-00-1024x700.png 1024w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-1_22-59-16_No-00-556x380.png 556w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-1_22-59-16_No-00.png 1540w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/a><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/xS2lKUclPXU\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><span style=\"font-size: 14pt;\">\u52d5\u753b\u306e\u3088\u3046\u306b\u4ea4\u4e92\u8868\u793a\u3055\u308c\u308c\u3070OK\u3002\u898b\u3048\u306a\u3044\u3068\u304d\u306f\u30b7\u30ea\u30a2\u30eb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u3042\u308b\u6fc3\u5ea6\u8abf\u6574\u306e\u53ef\u5909\u62b5\u6297\u3092\u56de\u3057\u3066\u307f\u3088\u3046\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u6b21\u306b\u3001\u81ea\u5206\u306e\u597d\u304d\u306a\u6587\u5b57\u3092\u7c21\u5358\u306b\u8868\u793a\u3055\u305b\u308b<del>\u304a\u624b\u8efd\u306a<\/del>\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u3055\u304c\u3059(<span style=\"color: #ff0000;\"><strong><span style=\"font-size: 18pt;\">\u30aa\u30a4\uff57<\/span><\/strong><\/span>)\u3002<\/span><\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/github.com\/sterlingbeason\/LCD-1602-I2C\" data-lkc-id=\"701\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=github.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">GitHub<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-po\">1 Pocket<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"\/\/androiphone.uvs.jp\/wp-content\/uploads\/pz-linkcard\/cache\/eeb4d7a949f7e01c538a6462c04fd3aeef9e27ac1f24e6a77dda7c1d8c2eccb6.jpeg\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">GitHub - sterlingbeason\/LCD-1602-I2C: A simple Python library for displaying ...<\/div><div class=\"lkc-url\" title=\"https:\/\/github.com\/sterlingbeason\/LCD-1602-I2C\">https:\/\/github.com\/sterlingbeason\/LCD-1602-I2C<\/div><div class=\"lkc-excerpt\">A simple Python library for displaying text on the LCD 1602 w\/ I2C. Implemented on the Raspberry Pi 3 B. - GitHub - sterlingbeason\/LCD-1602-I2C: A simple Python library for displaying text on the L...<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<p><span style=\"font-size: 14pt;\">\u3053\u3093\u306a\u3093\u898b\u3064\u304b\u3063\u305f\u306e\u3067\u3001\u65e9\u901f\u5c0e\u5165\u3002LCD.py\u306e\u307f\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3082\u3044\u3044\u3060\u308d\u3046\u3057\u3001\u4efb\u610f\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067<\/span><\/p>\n<pre class=\"lang:default decode:true\">git clone https:\/\/github.com\/sterlingbeason\/LCD-1602-I2C<\/pre>\n<p><span style=\"font-size: 14pt;\">\u3067\u30af\u30ed\u30fc\u30f3\u3057\u3066\u3001\u3069\u3053\u3067\u3082\u3044\u3044\u306e\u3067LCD.py\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u3084\u308c\u3070\u3044\u3044\u3068\u601d\u3046\u3002\u4e0b\u306e\u4f8b\u306f.\/LCD1602I2C\/LCD.py\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u305f\u4f8b\u3002<\/span><\/p>\n<pre class=\"lang:python decode:true\"># .\/LCD1602I2C\/LCD.py\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\r\nfrom LCD1602I2C.LCD import LCD\r\nimport time\r\n\r\nlcd = LCD(2,0x27,True)\r\n\r\nlcd.message(\"Hello World!\", 1)\r\nlcd.message(\"ANDROIPHONE!!\", 2)\r\n\r\ntime.sleep(5)\r\nlcd.clear()\r\n<\/pre>\n<p><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0654.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2389\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0654-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0654-300x225.jpg 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0654-768x576.jpg 768w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0654-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><span style=\"font-size: 14pt;\">\u3000\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u5916\u4eba\u3055\u3093\u304c\u4f5c\u3063\u305f\u306e\u3067\u65e5\u672c\u8a9e\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3002\u30ab\u30bf\u30ab\u30ca\u3092\u5165\u308c\u3066\u3082\u6587\u5b57\u5316\u3051\u3084\u3089\u6b63\u5e38\u306b\u8868\u793a\u3067\u304d\u306a\u3044\u3002\u3053\u308c\u3092\u89e3\u6c7a\u3059\u308b\u306e\u306b\u53c2\u8003\u306b\u3057\u305f\u306e\u304c\u4e0b\u306e\u30b5\u30a4\u30c8\u3002<\/span><\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/ppdr.softether.net\/osoyoo-i2c1602lcd\" data-lkc-id=\"702\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=ppdr.softether.net\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">ppdr.softether.net<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-po\">1 Pocket<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"\/\/androiphone.uvs.jp\/wp-content\/uploads\/pz-linkcard\/cache\/06dd05b82871b47d548a6a82546f436a27dd3af69a21cf009c1a3e3e61457cd7.jpeg\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">I2C 16\u00d72 LCD\u3067\u65e5\u672c\u8a9e(\u30ab\u30bf\u30ab\u30ca)\u3092\u8868\u793a\u3059\u308b(python\u30d7\u30ed\u30b0\u30e9\u30e0\u3042\u308a)<\/div><div class=\"lkc-url\" title=\"https:\/\/ppdr.softether.net\/osoyoo-i2c1602lcd\">https:\/\/ppdr.softether.net\/osoyoo-i2c1602lcd<\/div><div class=\"lkc-excerpt\">LCD\u3067\u30ab\u30bf\u30ab\u30ca\u8868\u793a \u3053\u3093\u306b\u3061\u306f\u3002\u30e9\u30ba\u30d1\u30a4\u3084Arduino\u3067\u30bb\u30f3\u30b5\u7b49\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3068\u3001\u6c17\u6e29\u306a\u3069\u306e\u6570\u5024\u3092\u3069\u3046\u3084\u3063\u2026<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<p><span style=\"font-size: 14pt;\">\u3000\u3053\u306e\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u3001LCD.py\u306eLCD\u30af\u30e9\u30b9\u306emessage\u30e1\u30bd\u30c3\u30c9\u3092\u82e5\u5e72\u6539\u9020\u3059\u308b\u3002\u3064\u3044\u3067\u306b\u5168\u89d2\u30fb\u534a\u89d2\u30ab\u30ca\u3069\u3061\u3089\u3067\u3082OK\u3001\u8868\u793a\u3067\u304d\u306a\u3044\u6587\u5b57\u306e\u5834\u5408\u306f\u5857\u308a\u3064\u3076\u3057\u8868\u793a\u3068\u3044\u3046\u4ed5\u69d8\u306b\u3057\u305f\u3002\u3068\u308a\u3042\u3048\u305amessage\u30e1\u30bd\u30c3\u30c9\u7d14\u6b63\u30b3\u30fc\u30c9\u3068\u65e5\u672c\u8a9e\u306b\u5bfe\u5fdc\u3055\u305b\u305fjmessage\u30e1\u30bd\u30c3\u30c9\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3000<del>jmessage\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3059\u308b\u306b\u3042\u305f\u308a\u3001codes\u306e\u30b3\u30fc\u30c9\u5217\u304c\u30ba\u30ec\u3066\u305f\u90e8\u5206\u304c\u3042\u3063\u305f(LCD1602\u306e\u7a2e\u985e\u5dee\u306a\u306e\u304b\u3082\u2026)\u306e\u3067\u4fee\u6b63\u3057\u3066\u3044\u308b<\/del>(\u4e0d\u8ebe\u306a\u304c\u3089\u30b3\u30e1\u30f3\u30c8\u306b\u9023\u7d61\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u305f\u6240\u3001\u8a02\u6b63\u3057\u3066\u9802\u3044\u305f\u3088\u3046\u3067\u3059)\u3002\u3053\u306ecodes\u306f\u534a\u89d2\u30ab\u30ca\u3001\u5168\u89d2\u6570\u5b57\u306b\u5bfe\u5fdc\u3057\u3066\u306a\u3044\u306e\u3067\u524d\u51e6\u7406\u7528\u306b\u534a\u89d2\u30fb\u5168\u89d2\u5909\u63db\u306e\u30e9\u30a4\u30d6\u30e9\u30eamojimoji\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u3002<\/span><\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/www.python.ambitious-engineer.com\/archives\/754\" data-lkc-id=\"703\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=www.python.ambitious-engineer.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">www.python.ambitious-engineer.com<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-hb\">4 Users<\/div> <div class=\"lkc-sns-po\">3 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"https:\/\/s.wordpress.com\/mshots\/v1\/https%3A%2F%2Fwww.python.ambitious-engineer.com%2Farchives%2F754?w=100\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">mojimoji \u534a\u89d2\u21d4\u5168\u89d2\u306e\u5909\u63db | Python\u5b66\u7fd2\u8b1b\u5ea7<\/div><div class=\"lkc-url\" title=\"https:\/\/www.python.ambitious-engineer.com\/archives\/754\">https:\/\/www.python.ambitious-engineer.com\/archives\/754<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<pre class=\"lang:default decode:true\">sudo pip3 install mojimoji<\/pre>\n<p><span style=\"font-size: 14pt;\">\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u300cimport mojimoji\u300d\u3067\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/span><\/p>\n<pre class=\"lang:python decode:true\">def message(self, string, line = 1):\r\n    # display message string on LCD line 1 or 2\r\n    if line == 1:\r\n        lcd_line = self.LCD_LINE_1\r\n    elif line == 2:\r\n        lcd_line = self.LCD_LINE_2\r\n    else:\r\n        raise ValueError('line number must be 1 or 2')\r\n\r\n    string = string.ljust(self.LCD_WIDTH,\" \")\r\n\r\n    self.lcd_byte(lcd_line, self.LCD_CMD)\r\n\r\n    for i in range(self.LCD_WIDTH):\r\n        self.lcd_byte(ord(string[i]), self.LCD_CHR)<\/pre>\n<pre class=\"lang:python decode:true\">    def jmessage(self, string, line = 1):\r\n        \r\n        #\u6587\u5b57\u30b3\u30fc\u30c9n\u306e\u6587\u5b57 \uff1d n\u756a\u76ee\u306e\u6587\u5b57\r\n        codes = u'\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000!\"#$%&amp;\\'()*+,-.\/0123456789:;&lt;=&gt;?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}\u2192\u2190\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3002\u300c\u300d\u3001\u30fb\u30f2\u30a1\u30a3\u30a5\u30a7\u30a9\u30e3\u30e5\u30e7\u30c3\u30fc\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f3\u309b\u309c\u03b1\u00e4\u03b2\u03b5\u03bc\u03c3\u03c1q\u221a\u9670\u03b9\u00d7\uffe0\uffe1n\u00f6pq\u03b8\u221e\u03a9\u00fc\u03a3\u03c0x\u03bd\u5343\u4e07\u5186\u00f7\u3000\u5857'\r\n        #\u5909\u63db\u3059\u308b\u6587\u5b57\u306e\u8f9e\u66f8(ex.\u300c\u30d0\u300d\uff1d\u300c\u30cf\u300d\u300c\u309b\u300d)\r\n        dic ={u'\u30ac':u'\u30ab\u309b',u'\u30ae':u'\u30ad\u309b',u'\u30b0':u'\u30af\u309b',u'\u30b2':u'\u30b1\u309b',u'\u30b4':u'\u30b3\u309b',u'\u30b6':u'\u30b5\u309b',u'\u30b8':u'\u30b7\u309b',u'\u30ba':u'\u30b9\u309b',u'\u30bc':u'\u30bb\u309b',u'\u30be':u'\u30bd\u309b',u'\u30c0':u'\u30bf\u309b',u'\u30c2':u'\u30c1\u309b',u'\u30c5':u'\u30c4\u309b',u'\u30c7':u'\u30c6\u309b',u'\u30c9':u'\u30c8\u309b',u'\u30d0':u'\u30cf\u309b',u'\u30d3':u'\u30d2\u309b',u'\u30d6':u'\u30d5\u309b',u'\u30d9':u'\u30d8\u309b',u'\u30dc':u'\u30db\u309b',u'\u30d1':u'\u30cf\u309c',u'\u30d4':u'\u30d2\u309c',u'\u30d7':u'\u30d5\u309c',u'\u30da':u'\u30d8\u309c',u'\u30dd':u'\u30db\u309c',u'\u2103':u'\u309cC'}\r\n        \r\n        # display message string on LCD line 1 or 2\r\n        if line == 1:\r\n            lcd_line = self.LCD_LINE_1\r\n        elif line == 2:\r\n            lcd_line = self.LCD_LINE_2\r\n        else:\r\n            raise ValueError('line number must be 1 or 2')\r\n\r\n        string = string.ljust(self.LCD_WIDTH,\" \")\r\n\r\n        self.lcd_byte(lcd_line, self.LCD_CMD)\r\n\r\n                \r\n        # \u534a\u89d2\u30ab\u30ca\u306e\u307f\u5168\u89d2\u3078\r\n        string = mojimoji.han_to_zen(string, ascii=False, digit=False)\r\n        # \u5168\u89d2\u6570\u5b57\u306e\u307f\u534a\u89d2\u3078\r\n        string = mojimoji.zen_to_han(string, ascii=False, kana=False)\r\n\r\n        # for i in range(self.LCD_WIDTH):\r\n        #     self.lcd_byte(ord(string[i]), self.LCD_CHR)\r\n        #\u6fc1\u97f3\u306a\u3069\u3001\u6587\u5b57\u306e\u5909\u63db        \r\n        string2 = \"\"\r\n        for i in range(self.LCD_WIDTH):\r\n            if ( string[i] in dic.keys() ):\r\n                string2 += dic[string[i]]\r\n            else:\r\n                string2 += string[i]\r\n        \r\n        #\u6587\u5b57\u30b3\u30fc\u30c9\u306e\u30ea\u30b9\u30c8\u306b\u3042\u308b\u6587\u5b57\u306a\u3089\u8868\u793a\u3001\u305d\u308c\u4ee5\u5916\u306f\u5857\u308a\u3064\u3076\u3057\r\n        for i in range(self.LCD_WIDTH):\r\n            if (codes.find(string2[i]) &gt;= 0):\r\n                self.lcd_byte(codes.find(string2[i])+1,self.LCD_CHR)\r\n            elif (string2[i] == u' '):\r\n                self.lcd_byte(0x10,self.LCD_CHR)\r\n            else:\r\n                self.lcd_byte(0xFF,self.LCD_CHR)\r\n<\/pre>\n<p><span style=\"font-size: 14pt;\">\u3000jmessage\u30e1\u30bd\u30c3\u30c9\u3092LCD.py\u306b\u4ed8\u3051\u52a0\u3048\u3066mojimoji\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3002LCD1602I2Cmod\u306e\u30d5\u30a9\u30eb\u30c0\u306bLCD.py\u3092\u6539\u5909\u3057\u305f\u3082\u306e\u3092\u5165\u308c\u3066\u304a\u3044\u3066\u3042\u308b\u3002<\/span><\/p>\n<pre class=\"lang:python decode:true\">from LCD1602I2Cmod.LCD import LCD\r\nimport time\r\n\r\nlcd = LCD(2,0x27,True)\r\nlcd.jmessage(\"\uff96\uff73\uff7a\uff7f!!\uff12\u5343\u5186!!\",1)\r\nlcd.jmessage(\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30d5\u30a9\u30f3\",2)\r\n\r\ntime.sleep(5)\r\n\r\nlcd.clear()\r\n<\/pre>\n<p><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0653.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2390\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0653-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0653-300x225.jpg 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0653-768x576.jpg 768w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0653-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><span style=\"font-size: 14pt;\">\u300c\u5343\u300d\u300c\u5186\u300d\u3068\u304b\u306f\u3001\u30b3\u30fc\u30c9\u8868\u306b\u3042\u308b\u6587\u5b57\u306a\u306e\u3067\u4f7f\u3048\u308b(\u53c2\u8003\u30b5\u30a4\u30c8\u306b\u30b3\u30fc\u30c9\u8868\u304c\u3042\u308b\u306e\u3067\u53c2\u8003\u306b\u3055\u308c\u305f\u3057)\u3002\u5168\u89d2\u534a\u89d2\u30ab\u30ca\u3001\u5168\u89d2\u6570\u5b57\u3082\u8868\u793a\u3067\u6765\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u826f\u3057\u3068\u3057\u305f\u3002<strong><span style=\"color: #ff0000; font-size: 18pt;\">\u30cf\u30a4\u30a8\u30ca\u7684\u30b3\u30fc\u30c9<\/span><\/strong>\u611f\u304c\u3042\u308b\u3051\u3069\u3001\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8\u69d8\u306b\u306f\u611f\u8b1d\u3067\u3059\u3002<\/span><\/p>\n<p><strong><span style=\"font-size: 18pt; color: #0000ff;\">\u5f8c\u65e5\u30fb\u30fb\u30fb\u30fb<\/span><\/strong><\/p>\n<p><span style=\"font-size: 14pt;\">\u306a\u3093\u304b\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u306eLCD.py\u3092\u3001\u76f4\u3044\u3058\u308a\u306f\u3084\u3063\u3071\u308a\u6c17\u306b\u306a\u3063\u3066\u3057\u3087\u3046\u304c\u306a\u3044\u306e\u3067\u3001LCD\u3092\u7d99\u627f\u3057\u305fJLCD.py\u3092\u4f5c\u308a\u3001message\u30e1\u30bd\u30c3\u30c9\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3068\u304d\u307e\u3057\u305f\u3002\u57fa\u672c\u30cf\u30a4\u30a8\u30ca\u306f\u5909\u308f\u3063\u3066\u307e\u305b\u3093\u304c\u2026w<\/span><\/p>\n<p><em>JLCD.py<\/em><\/p>\n<pre class=\"lang:python decode:true\">import mojimoji\r\nfrom LCD1602I2C.LCD import LCD\r\n\r\nclass JLCD(LCD):\r\n    \r\n    # message method override\r\n    def message(self, string, line = 1):\r\n        \r\n        #\u6587\u5b57\u30b3\u30fc\u30c9n\u306e\u6587\u5b57 \uff1d n\u756a\u76ee\u306e\u6587\u5b57\r\n        codes = u'\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u7dda\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000!\"#$%&amp;\\'()*+,-.\/0123456789:;&lt;=&gt;?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}\u2192\u2190\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3002\u300c\u300d\u3001\u30fb\u30f2\u30a1\u30a3\u30a5\u30a7\u30a9\u30e3\u30e5\u30e7\u30c3\u30fc\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f3\u309b\u309c\u03b1\u00e4\u03b2\u03b5\u03bc\u03c3\u03c1q\u221a\u9670\u03b9\u00d7\uffe0\uffe1n\u00f6pq\u03b8\u221e\u03a9\u00fc\u03a3\u03c0x\u03bd\u5343\u4e07\u5186\u00f7\u3000\u5857'\r\n        #\u5909\u63db\u3059\u308b\u6587\u5b57\u306e\u8f9e\u66f8(ex.\u300c\u30d0\u300d\uff1d\u300c\u30cf\u300d\u300c\u309b\u300d)\r\n        dic ={u'\u30ac':u'\u30ab\u309b',u'\u30ae':u'\u30ad\u309b',u'\u30b0':u'\u30af\u309b',u'\u30b2':u'\u30b1\u309b',u'\u30b4':u'\u30b3\u309b',u'\u30b6':u'\u30b5\u309b',u'\u30b8':u'\u30b7\u309b',u'\u30ba':u'\u30b9\u309b',u'\u30bc':u'\u30bb\u309b',u'\u30be':u'\u30bd\u309b',u'\u30c0':u'\u30bf\u309b',u'\u30c2':u'\u30c1\u309b',u'\u30c5':u'\u30c4\u309b',u'\u30c7':u'\u30c6\u309b',u'\u30c9':u'\u30c8\u309b',u'\u30d0':u'\u30cf\u309b',u'\u30d3':u'\u30d2\u309b',u'\u30d6':u'\u30d5\u309b',u'\u30d9':u'\u30d8\u309b',u'\u30dc':u'\u30db\u309b',u'\u30d1':u'\u30cf\u309c',u'\u30d4':u'\u30d2\u309c',u'\u30d7':u'\u30d5\u309c',u'\u30da':u'\u30d8\u309c',u'\u30dd':u'\u30db\u309c',u'\u2103':u'\u309cC'}\r\n        \r\n        # display message string on LCD line 1 or 2\r\n        if line == 1:\r\n            lcd_line = self.LCD_LINE_1\r\n        elif line == 2:\r\n            lcd_line = self.LCD_LINE_2\r\n        else:\r\n            raise ValueError('line number must be 1 or 2')\r\n\r\n        string = string.ljust(self.LCD_WIDTH,\" \")\r\n\r\n        self.lcd_byte(lcd_line, self.LCD_CMD)\r\n\r\n                \r\n        # \u534a\u89d2\u30ab\u30ca\u306e\u307f\u5168\u89d2\u3078\r\n        string = mojimoji.han_to_zen(string, ascii=False, digit=False)\r\n        # \u5168\u89d2\u6570\u5b57\u306e\u307f\u534a\u89d2\u3078\r\n        string = mojimoji.zen_to_han(string, ascii=False, kana=False)\r\n\r\n        # for i in range(self.LCD_WIDTH):\r\n        #     self.lcd_byte(ord(string[i]), self.LCD_CHR)\r\n        #\u6fc1\u97f3\u306a\u3069\u3001\u6587\u5b57\u306e\u5909\u63db        \r\n        string2 = \"\"\r\n        for i in range(self.LCD_WIDTH):\r\n            if ( string[i] in dic.keys() ):\r\n                string2 += dic[string[i]]\r\n            else:\r\n                string2 += string[i]\r\n        \r\n        #\u6587\u5b57\u30b3\u30fc\u30c9\u306e\u30ea\u30b9\u30c8\u306b\u3042\u308b\u6587\u5b57\u306a\u3089\u8868\u793a\u3001\u305d\u308c\u4ee5\u5916\u306f\u8868\u793a\u3057\u306a\u3044\r\n        for i in range(self.LCD_WIDTH):\r\n            if (codes.find(string2[i]) &gt;= 0):\r\n                self.lcd_byte(codes.find(string2[i])+1,self.LCD_CHR)\r\n            elif (string2[i] == u' '):\r\n                self.lcd_byte(0x10,self.LCD_CHR)\r\n            else:\r\n                self.lcd_byte(0xFF,self.LCD_CHR)\r\n<\/pre>\n<p><em>lcdtest.py<\/em><\/p>\n<pre class=\"lang:python decode:true\"># from LCD1602I2Cmod.LCD import LCD\r\nfrom JLCD import JLCD as LCD\r\nimport time\r\n\r\nlcd = LCD(2,0x27,True)\r\nlcd.message(\"\u30e8\u30a6\u30b3\u30bd!!\",1)\r\nlcd.message(\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30d5\u30a9\u30f3\",2)\r\n\r\ntime.sleep(5)\r\nlcd.clear()<\/pre>\n<p><span style=\"font-size: 14pt;\">\u3053\u308c\u3067\u3001LCD\u30af\u30e9\u30b9\u3068\u540c\u3058\u3088\u3046\u306b\u4f7f\u3048\u3066\u65e5\u672c\u8a9e\u304c\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u6700\u8fd1\u3001\u6ce8\u6587\u3057\u305f\u90e8\u54c1\u304c\u7acb\u3066\u7d9a\u3051\u306b\u5c4a\u304d\u59cb\u3081\u305f\u304b\u306a\u3002\u305f\u3076\u3093\u5373\u4f4d\u793c\u6b63\u6bbf\u306e\u5100\u304c\u7d42\u308f\u3063\u3066\u3001\u7a0e\u95a2\u306e\u6d41\u308c\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u306a\u3063\u305f\u305b\u3044\u304b\u306a\u3068\u52dd\u624b\u306b\u601d\u3063\u3066\u308bw\u3002 \u3000\u4e0a\u306e\u30ad\u30c3\u30c8\u306b\u306fLCD1602(LED\u30d0\u30c3\u30af\u30e9\u30a4\u30c8\u4ed8\u2026\u5f8c\u304b\u3089\u77e5\u3063\u305f)\u304c\u5165\u3063\u3066\u3044\u308b\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2390,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[62,58,56],"tags":[],"class_list":["post-2366","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lcd1602","category-python","category-raspberry-pi","ja"],"_links":{"self":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/2366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2366"}],"version-history":[{"count":30,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/2366\/revisions"}],"predecessor-version":[{"id":3154,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/2366\/revisions\/3154"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/media\/2390"}],"wp:attachment":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}