{"blog_url":"https://arakik10.hatenadiary.org/","height":"190","image_url":null,"title":"Raspberry Pi 3 \u306e SPI \u3092\u7528\u3044\u3066A/D\u30b3\u30f3\u30d0\u30fc\u30bf\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u3080 python \u95a2\u6570 readadc() \u306e\u5404\u884c\u306e\u52d5\u4f5c","provider_name":"Hatena Blog","width":"100%","type":"rich","version":"1.0","url":"https://arakik10.hatenadiary.org/entry/20170903/p1","author_url":"https://blog.hatena.ne.jp/arakik10/","categories":[],"blog_title":"\u3042\u3089\u304d\u3051\u3044\u3059\u3051\u306e\u96d1\u8a18\u5e33","provider_url":"https://hatena.blog","author_name":"arakik10","description":"\u6559\u80b2\u7528\u306e\u899a\u3048\u66f8\u304d\u3002\u30e9\u30ba\u30d1\u30a43\u3067\u6a19\u6e96\u306eSPI\u30d0\u30b9(+RPi.GPIO\u30e9\u30a4\u30d6\u30e9\u30ea)\u3092\u7528\u3044\u3066A/D\u30b3\u30f3\u30d0\u30fc\u30bf\u30fcIC\u304b\u3089\u30bb\u30f3\u30b5\u5024\u3092\u8aad\u307f\u51fa\u3059\u89e3\u8aac\u8a18\u4e8b\u306b\u983b\u51fa\u3059\u308b python \u95a2\u6570 readadc() \u306e\u5404\u884c\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u305f\u306e\u3067\u30e1\u30e2\u3092\u6b8b\u3059\u3002output()\u3067bit1\u500b\u5206\u306e\u30d4\u30f3\u3078\u306eON/OFF\u4fe1\u53f7\u306e\u9001\u51fa, input()\u3067bit1\u500b\u5206\u306e\u30c7\u30fc\u30bf\u8aad\u307f\u51fa\u3057\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u547c\u3073\u51fa\u3057\u6642\u306e\u95a2\u6570\u306e\u52d5\u4f5c\u6642\u9593\u306f\u591a\u5206\u3001\u4e00\u5b9a\u3057\u3066\u3044\u306a\u3044\u3002\u30b3\u30e1\u30f3\u30c8\u306fA/D\u30b3\u30f3\u30d0\u30fc\u30bf\u30fc\u3068\u3057\u3066MCP3208\u3092\u60f3\u5b9a\u3057\u3066\u66f8\u3044\u3066\u3044\u308b\u3002def readadc(adcnum, clockpin, mosipin, misopin, cspin): # \u5ba3\u8a00\u3057\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Farakik10.hatenadiary.org%2Fentry%2F20170903%2Fp1\" title=\"Raspberry Pi 3 \u306e SPI \u3092\u7528\u3044\u3066A/D\u30b3\u30f3\u30d0\u30fc\u30bf\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u3080 python \u95a2\u6570 readadc() \u306e\u5404\u884c\u306e\u52d5\u4f5c - \u3042\u3089\u304d\u3051\u3044\u3059\u3051\u306e\u96d1\u8a18\u5e33\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2017-09-03 00:00:00"}