{"id":5035,"date":"2022-02-11T11:46:30","date_gmt":"2022-02-11T02:46:30","guid":{"rendered":"https:\/\/now0930.pe.kr\/wordpress\/?p=5035"},"modified":"2022-02-11T12:03:32","modified_gmt":"2022-02-11T03:03:32","slug":"sensehat-i2c-led2472g","status":"publish","type":"post","link":"https:\/\/now0930.pe.kr\/wordpress\/sensehat-i2c-led2472g\/","title":{"rendered":"sensehat i2c led2472g"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\" id=\"i2c\uc5d0-\uc5f0\uacb0\ub41c-led-matrix-\ubc1d\uae30-\uc81c\uc5b4\">I2C\uc5d0 \uc5f0\uacb0\ub41c LED Matrix \ubc1d\uae30 \uc81c\uc5b4<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">sensehat \ubaa8\ub4c8\uc5d0 LED matrix\uac00 i2c\ub85c \uc124\uce58, \uc5f0\uacb0\ub418\uc5b4 \uc788\ub2e4. LED2472G\uac00 \uac01 \uc5f0\uacb0\ub41c LED\ub97c \uc81c\uc5b4\ud558\ub294\ub370, AVR\uc774 i2c\ub85c \ub77c\uc988\ubca0\ub9ac \ud30c\uc774\uc640 LED2472G \ub97c \uc911\uacc4\ud55c\ub2e4. LED\ub97c \uc81c\uc5b4\ud55c\ub2e4\uace0 LED2472G datasheet\ub97c \ucc3e\uc73c\uba74 \ubcc4 \ub3c4\uc6c0\uc774 \uc548\ub41c\ub2e4. AVR\ub85c led\ub97c \uc5b4\ub5bb\uac8c \uc81c\uc5b4\ud558\ub294\uc9c0 \uc798 \uacf5\uac1c\ub418\uc9c0 \uc54a\uc740 \ub4ef \ud558\ub2e4. \uc544\ubb34\ub9ac \ucc3e\uc544\ub3c4 c\ub85c \uc791\uc131\ud55c \ucf54\ub4dc\ub97c \ucc3e\uc744 \uc218 \uc5c6\ub2e4. i2c 0x46\uc5d0 0~191\uae4c\uc9c0 \ubc1d\uae30\ub97c \uc804\uc1a1\ud558\uba74 led \ubc1d\uae30\ub97c \uc81c\uc5b4\ud560 \uc218 \uc788\ub2e4. \uc544\ub798 game of life python \ucf54\ub4dc\ub97c \ubcf4\uba74 \ub300\ucda9 \uc5b4\ub5bb\uac8c \ub3cc\uc544\uac00\ub294\uc9c0 \uc54c \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">shell\ub85c i2cset\uc73c\ub85c \ud55c \uac1c\uc529 \ub7a8\ud504\ub97c \uaed0\ub2e4. 0x46\ubc88\uc740 LED matrix \ub178\ub4dc \ubc88\uc774\uace0, 0 ~ 191\uae4c\uc9c0 led \ub7a8\ud504 \uc704\uce58\ub97c \ub9d0\ud558\ub294 \ub4ef \ud558\ub2e4. \ub4a4\uc5d0 255, 0\uc740 \ubc1d\uae30\ub2e4. \uceec\ub7ec \ucf54\ub4dc\ub97c \ub123\ub294 \ubc29\ubc95\uc774 \uc788\ub294\ub370, \uc544\uc9c1 \uc798 \ubaa8\ub974\uaca0\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pi@raspberrypi:~\/rasp\/sense_temperature $ i2cset 1 0x46 1 255\nWARNING! This program can confuse your I2C bus, cause data loss and worse!\nI will write to device file \/dev\/i2c-1, chip address 0x46,\ndata address 0x01, data 0xff, mode byte.\nContinue? [Y\/n] y\npi@raspberrypi:~\/rasp\/sense_temperature $ i2cset 1 0x46 1 0\nWARNING! This program can confuse your I2C bus, cause data loss and worse!\nI will write to device file \/dev\/i2c-1, chip address 0x46,\ndata address 0x01, data 0x00, mode byte.\nContinue? [Y\/n] y\npi@raspberrypi:~\/rasp\/sense_temperature $ i2cdetect 1\nWARNING! This program can confuse your I2C bus, cause data loss and worse!\nI will probe file \/dev\/i2c-1.\nI will probe address range 0x08-0x77.\nContinue? [Y\/n] y\n     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f\n00:                         -- -- -- -- -- -- -- -- \n10: -- -- -- -- -- -- -- -- -- -- -- -- 1c -- -- -- \n20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \n30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \n40: -- -- -- -- -- -- 46 -- -- -- -- -- -- -- -- -- \n50: -- -- -- -- -- -- -- -- -- -- -- -- 5c -- -- 5f \n60: -- -- -- -- -- -- -- -- -- -- 6a -- -- -- -- -- \n70: -- -- -- -- -- -- -- --                   <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">shell\ub85c 0\ubd80\ud130 191\uae4c\uc9c0 \ud574\ubcf4\uba74 led\uac00 \uaebc\uc9c0\uc9c0 \uc54a\ub294\ub370 \ub8e8\ud504\ub97c \ub9cc\ub4e4\uc5b4 \ub3cc\ub9ac\uba74 \ud55c \ubc88\uc5d0 \uaebc\uc9c4\ub2e4. \uad6c\ub9e4 5\uc77c\ub9cc\uc5d0 led\ub97c \uaed0\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uace0\uc218\ub294 frame buffer\ub97c \ub9cc\ub4e4\uc5b4\uc11c \ud558\ub294 \uac83 \uac19\uc740\ub370, \uc544\uc9c1 \uc798 \ubaa8\ub974\uaca0\ub2e4. \uc815\ub9d0 \ud544\uc694\ud55c\uc9c0\ub3c4 \ubaa8\ub974\uaca0\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ucc38\uc870 \uc0ac\uc774\ud2b8<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/github.com\/4eMaLo\/SenseHAT-Game-of-Life\/blob\/master\/sense_hat.py\">game of life<\/a><\/li><li><a href=\"https:\/\/github.com\/bitbank2\/sense_hat_unchained\">sensehat unchained<\/a><\/li><li><a href=\"https:\/\/github.com\/davebm1\/c-sense-hat\">C language demonstration code<\/a><\/li><li><a href=\"https:\/\/www.opensourceforu.com\/2015\/05\/writing-a-basic-framebuffer-driver\/\">Writing a Basic Framebuffer Driver<\/a><\/li><li><a href=\"https:\/\/github.com\/underground-software\/sensehat\/tree\/master\/tests\">underground-software\/sensehat<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I2C\uc5d0 \uc5f0\uacb0\ub41c LED Matrix \ubc1d\uae30 \uc81c\uc5b4 sensehat \ubaa8\ub4c8\uc5d0 LED matrix\uac00 i2c\ub85c \uc124\uce58, \uc5f0\uacb0\ub418\uc5b4 \uc788\ub2e4. LED2472G\uac00 \uac01 \uc5f0\uacb0\ub41c LED\ub97c \uc81c\uc5b4\ud558\ub294\ub370, AVR\uc774 i2c\ub85c \ub77c\uc988\ubca0\ub9ac \ud30c\uc774\uc640 LED2472G \ub97c \uc911\uacc4\ud55c\ub2e4. LED\ub97c \uc81c\uc5b4\ud55c\ub2e4\uace0 LED2472G datasheet\ub97c \ucc3e\uc73c\uba74 \ubcc4 \ub3c4\uc6c0\uc774 \uc548\ub41c\ub2e4. AVR\ub85c led\ub97c \uc5b4\ub5bb\uac8c \uc81c\uc5b4\ud558\ub294\uc9c0 \uc798 \uacf5\uac1c\ub418\uc9c0 \uc54a\uc740 \ub4ef \ud558\ub2e4. \uc544\ubb34\ub9ac \ucc3e\uc544\ub3c4 c\ub85c \uc791\uc131\ud55c \ucf54\ub4dc\ub97c \ucc3e\uc744 \uc218 \uc5c6\ub2e4. i2c 0x46\uc5d0 0~191\uae4c\uc9c0 \ubc1d\uae30\ub97c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[12],"tags":[775,1032,911,1034,53],"wpgpxmaps_activity":[],"class_list":["post-5035","post","type-post","status-publish","format-standard","hentry","category-12","tag-c","tag-i2c","tag-kernel","tag-led2472g","tag-linux"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/posts\/5035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/comments?post=5035"}],"version-history":[{"count":5,"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/posts\/5035\/revisions"}],"predecessor-version":[{"id":5041,"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/posts\/5035\/revisions\/5041"}],"wp:attachment":[{"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/media?parent=5035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/categories?post=5035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/tags?post=5035"},{"taxonomy":"wpgpxmaps_activity","embeddable":true,"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/wpgpxmaps_activity?post=5035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}