{"id":4322,"date":"2021-10-26T12:03:41","date_gmt":"2021-10-26T04:03:41","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=4322"},"modified":"2021-10-26T12:13:42","modified_gmt":"2021-10-26T04:13:42","slug":"wiringpi-sample1","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=4322","title":{"rendered":"wiringPi-sample1"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>#include &lt;wiringPi.h>\nint main (void)\n{\n  wiringPiSetup () ;\n  pinMode (0, OUTPUT) ;\n  for (;;)\n  {\n    digitalWrite (0, HIGH) ; delay (500) ;\n    digitalWrite (0,  LOW) ; delay (500) ;\n  }\n  return 0 ;\n}\n\ngcc -Wall -o blink blink.c -lwiringPi\nsudo .\/blink\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-wiring-pi\"><div class=\"wp-block-embed__wrapper\">\nhttp:\/\/wiringpi.com\/examples\/blink\/\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2021\/10\/blink1.jpg\" alt=\"blink1\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"hide_page_title":"","footnotes":""},"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4322"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4322"}],"version-history":[{"count":2,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4322\/revisions"}],"predecessor-version":[{"id":4327,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4322\/revisions\/4327"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}