{"title":"\u8ddd\u96e2\u30bb\u30f3\u30b5\u30fchcsr04","image_url":null,"author_url":"https://blog.hatena.ne.jp/mocchun/","published":"2018-04-11 00:35:26","type":"rich","blog_title":"DTP\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30dd\u30b9\u30c8","provider_name":"Hatena Blog","url":"https://mocchun.hatenadiary.org/entry/20180411/1523460926","provider_url":"https://hatena.blog","author_name":"mocchun","version":"1.0","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmocchun.hatenadiary.org%2Fentry%2F20180411%2F1523460926\" title=\"\u8ddd\u96e2\u30bb\u30f3\u30b5\u30fchcsr04 - DTP\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30dd\u30b9\u30c8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"#!/usr/bin/env python # -*- coding: utf-8 -*- def reading(sensor): import time import RPi.GPIO as GPIO GPIO.setwarnings(False) GPIO.setmode(GPIO.BOARD) TRIG = 11 ECHO = 13 if sensor == 0: GPIO.setup(TRIG,GPIO.OUT) GPIO.setup(ECHO,GPIO.IN) GPIO.output(TRIG, GPIO.LOW) time.sleep(0.3) GPIO.output(TRIG,\u2026","blog_url":"https://mocchun.hatenadiary.org/","height":"190","categories":[]}