{"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\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"eYZW7S1ETl\"><a href=\"http:\/\/wiringpi.com\/examples\/blink\/\">Blink<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Blink&#8221; &#8212; Wiring Pi\" src=\"http:\/\/wiringpi.com\/examples\/blink\/embed\/#?secret=eYZW7S1ETl\" data-secret=\"eYZW7S1ETl\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\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":{"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}]}}