{"id":610,"date":"2020-11-29T20:32:00","date_gmt":"2020-11-29T12:32:00","guid":{"rendered":"https:\/\/blog.haostudio.net\/hwp\/?p=610"},"modified":"2020-11-29T20:32:00","modified_gmt":"2020-11-29T12:32:00","slug":"raspberry-pi4-%e9%a1%af%e7%a4%ba-cpu-%e6%ba%ab%e5%ba%a6%e9%a0%bb%e7%8e%87","status":"publish","type":"post","link":"https:\/\/blog.haostudio.net\/hwp\/raspberry-pi4-%e9%a1%af%e7%a4%ba-cpu-%e6%ba%ab%e5%ba%a6%e9%a0%bb%e7%8e%87\/","title":{"rendered":"Raspberry Pi4 \u986f\u793a CPU \u6eab\u5ea6,\u983b\u7387"},"content":{"rendered":"<h1>Raspberry Pi4<\/h1>\n<h2>\u986f\u793a CPU \u6eab\u5ea6,\u983b\u7387..etc<\/h2>\n<h3>\u4f7f\u7528 Ubuntu \u5b98\u65b9 Image<\/h3>\n<pre><code>root@ubuntu:~# cat disp_pi4_temperture.sh\n#!\/bin\/bash\norg_value=$(cat \/sys\/class\/thermal\/thermal_zone0\/temp)\ncmd=&quot;bc &lt;&lt;&lt; &#039;scale=2; ${org_value}\/1000&#039;&quot;\ntemperture=$(eval $cmd)\necho &quot;CPU Temp: $temperture &deg;C&quot;\necho &quot;CPU Freq:&quot; $(($(cat \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_cur_freq)\/1000)) MHz\n<\/code><\/pre>\n<h3>\u4f7f\u7528 Raspbian Image<\/h3>\n<pre><code># vcgencmd measure_temp\n<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi4 \u986f\u793a CPU \u6eab\u5ea6,\u983b\u7387..etc \u4f7f\u7528 Ubunt &hellip; <a href=\"https:\/\/blog.haostudio.net\/hwp\/raspberry-pi4-%e9%a1%af%e7%a4%ba-cpu-%e6%ba%ab%e5%ba%a6%e9%a0%bb%e7%8e%87\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,111],"tags":[],"class_list":["post-610","post","type-post","status-publish","format-standard","hentry","category-embedded-system","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/posts\/610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/comments?post=610"}],"version-history":[{"count":1,"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/posts\/610\/revisions"}],"predecessor-version":[{"id":611,"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/posts\/610\/revisions\/611"}],"wp:attachment":[{"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/media?parent=610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/categories?post=610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/tags?post=610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}