{"width":"100%","author_name":"gutskun","author_url":"https://blog.hatena.ne.jp/gutskun/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatsuyoshi.hatenadiary.com%2Fentry%2F2022%2F12%2F17%2F114106\" title=\"M5StickC\u3067M5Unified\u3067IMU(4) - \u3072\u3068\u3057\u308c\u305a\u3072\u3063\u305d\u308a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2022-12-17 11:41:06","version":"1.0","blog_title":"\u3072\u3068\u3057\u308c\u305a\u3072\u3063\u305d\u308a","provider_url":"https://hatena.blog","url":"https://katsuyoshi.hatenadiary.com/entry/2022/12/17/114106","blog_url":"https://katsuyoshi.hatenadiary.com/","provider_name":"Hatena Blog","height":"190","categories":["IoT"],"type":"rich","description":"\u30d9\u30af\u30c8\u30eb\u9577\u306e\u30b0\u30e9\u30d5\u8868\u793a\u3092\u3057\u3066\u307f\u308b\u3002 static void display() { int bar_height = 20; int h = M5.Lcd.height(); int w = M5.Lcd.width(); int y = h - bar_height; int value = 0; value = map((int)(velocity * 10000), 0, 10000, 0, w); Serial.println(value); value = constrain(value, 0, w); Serial.println(value); M5.Lcd.fillRect(0\u2026","title":"M5StickC\u3067M5Unified\u3067IMU(4)"}