{"id":791,"date":"2010-03-18T18:56:00","date_gmt":"2010-03-18T18:56:00","guid":{"rendered":"https:\/\/theshanty.us\/?p=791"},"modified":"2025-08-04T19:00:15","modified_gmt":"2025-08-04T19:00:15","slug":"arduino-first-sketch","status":"publish","type":"post","link":"http:\/\/blog.theshanty.us\/index.php\/2010\/03\/18\/arduino-first-sketch\/","title":{"rendered":"Arduino &#8211; first sketch"},"content":{"rendered":"\n<p>Of course I started with the blink one LED on pin 13 standard.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/Example 01 : Blinking LED\n\n#define LED 13\n\nvoid setup()\n{\n  pinMode(LED, OUTPUT);\n}\n\nvoid loop()\n{\n  digitalWrite(LED, HIGH);\n  delay(1000);\n  digitalWrite(LED, LOW);\n  delay(1000);\n}\n<\/code><\/pre>\n\n\n\n<p>Then, I jumped right into a servo driving program. All it does is send the servo all the way to one end of it&#8217;s rotation, wait, send it all the way to the other end of it&#8217;s rotation, wait and repeat. Not much, but it&#8217;s a start.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Of course I started with the blink one LED on<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-791","post","type-post","status-publish","format-standard","hentry","category-coding"],"featured_image_urls":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","1536x1536":"","2048x2048":"","chromenews-featured":"","chromenews-large":"","chromenews-medium":""},"author_info":{"display_name":"chuckularone","author_link":"http:\/\/blog.theshanty.us\/index.php\/author\/chuckularone\/"},"category_info":"<a href=\"http:\/\/blog.theshanty.us\/index.php\/category\/coding\/\" rel=\"category tag\">Coding<\/a>","tag_info":"Coding","comment_count":"0","_links":{"self":[{"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/posts\/791"}],"collection":[{"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/comments?post=791"}],"version-history":[{"count":2,"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/posts\/791\/revisions"}],"predecessor-version":[{"id":793,"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/posts\/791\/revisions\/793"}],"wp:attachment":[{"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/media?parent=791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/categories?post=791"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/tags?post=791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}