{"id":292,"date":"2012-01-09T22:49:52","date_gmt":"2012-01-10T05:49:52","guid":{"rendered":"http:\/\/zethus.ca\/wp\/?p=292"},"modified":"2012-01-09T22:49:52","modified_gmt":"2012-01-10T05:49:52","slug":"basic-arduino-support-for-gina-board","status":"publish","type":"post","link":"http:\/\/zethus.ca\/wp\/?p=292","title":{"rendered":"Basic Arduino Support for Gina Board"},"content":{"rendered":"<p><a href=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/01\/chuck_3.gif\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-293\" title=\"Gina running the blink sketch\" src=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/01\/chuck_3.gif\" alt=\"\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>I&#8217;ve built in basic support for the Arduino 1.0RC1 for the Gina Boards. This is the modified version of the &#8220;Blink sketch&#8221; running. \u00a0No big deal here, but this will make the board more accessible to those not interested in programming details.<\/p>\n<p>&nbsp;<\/p>\n<pre><span style=\"color: #00ff00;\">int ledPin1 =  13;\u00a0<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">int ledPin2 =  14;\u00a0<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">int ledPin3 =  15;\u00a0<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">int ledPin4 =  16;\u00a0<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">\/\/ The setup() method runs once, when the sketch starts<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">void setup()   {<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">\/\/ initialize the digital pin as an output:<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">pinMode(ledPin1, OUTPUT);<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">pinMode(ledPin2, OUTPUT);<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">pinMode(ledPin3, OUTPUT);<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">pinMode(ledPin3, OUTPUT);<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">}<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">\/\/ the loop() method runs over and over again,<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">\/\/ as long as the Arduino has power<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">void loop()<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">{<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">digitalWrite(ledPin1, HIGH);   \/\/ set the LED on<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">delay(200);                  \/\/ wait for a second<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">digitalWrite(ledPin2, HIGH);    \/\/ set the LED off<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">delay(200);<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">digitalWrite(ledPin3, HIGH);    \/\/ set the LED off<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">delay(200);<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">digitalWrite(ledPin4, HIGH);    \/\/ set the LED off<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">delay(200);<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">digitalWrite(ledPin1, LOW);   \/\/ set the LED on<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">delay(100);                  \/\/ wait for a second<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">digitalWrite(ledPin2, LOW);    \/\/ set the LED off<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">delay(100);<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">digitalWrite(ledPin3, LOW);    \/\/ set the LED off<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">delay(100);        \/\/ wait for a second<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">digitalWrite(ledPin4, LOW);    \/\/ set the LED off<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">delay(100);        \/\/ wait for a second<\/span><\/pre>\n<pre><span style=\"color: #00ff00;\">}<\/span><\/pre>\n<pre>\r\n<\/pre>\n<pre><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; I&#8217;ve built in basic support for the Arduino 1.0RC1 for the Gina Boards. This is the modified version of the &#8220;Blink sketch&#8221; running. \u00a0No big deal here, but this will make the board more accessible to those not interested &hellip; <a href=\"http:\/\/zethus.ca\/wp\/?p=292\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[14,5],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/292"}],"collection":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=292"}],"version-history":[{"count":3,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":296,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/292\/revisions\/296"}],"wp:attachment":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}