{"id":102,"date":"2015-04-21T18:55:05","date_gmt":"2015-04-21T18:55:05","guid":{"rendered":"https:\/\/drakesoe.wordpress.com\/?p=102"},"modified":"2015-04-21T18:55:05","modified_gmt":"2015-04-21T18:55:05","slug":"milsteads-group-4-21-15","status":"publish","type":"post","link":"https:\/\/rodmilstead.com\/pt\/2015\/04\/21\/milsteads-group-4-21-15\/","title":{"rendered":"Milstead&#8217;s group 4-21-15"},"content":{"rendered":"<p>Today your goal is to add in the walk\/don&#8217;t walk lights.<\/p>\n<p>You will have to do TWO things.<\/p>\n<p>1. modify your breadboard.<br \/>\n2. modify your code.<\/p>\n<p>updated breadboard<br \/>\n<a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-105\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage.jpg?w=300\" alt=\"dontwalkimage\" width=\"300\" height=\"225\" srcset=\"https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage.jpg 1632w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage-300x225.jpg 300w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage-768x576.jpg 768w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage-1024x768.jpg 1024w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage-1568x1176.jpg 1568w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-106\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage2.jpg?w=300\" alt=\"dontwalkimage2\" width=\"300\" height=\"225\" srcset=\"https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage2.jpg 1632w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage2-300x225.jpg 300w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage2-768x576.jpg 768w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage2-1024x768.jpg 1024w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/dontwalkimage2-1568x1176.jpg 1568w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The incomplete code is available below. \u00a0Why is it incomplete? \u00a0Because the code below only controls the WALK light that comes on when the light is green. \u00a0YOU have to add in the DON&#8217;T WALK signal code. \u00a0Take a look at the code and the commented section that gives an important clue.<\/p>\n<p>Here&#8217;s the INCOMPLETE CODE:<\/p>\n<p>void setup() {<br \/>\npinMode(13, OUTPUT);<br \/>\npinMode(12, OUTPUT);<br \/>\npinMode(11, OUTPUT);<br \/>\npinMode(9, OUTPUT); \/\/walk signal<br \/>\npinMode(10,OUTPUT); \/\/don&#8217;t walk signal<br \/>\npinMode(2, INPUT);<\/p>\n<p>}<\/p>\n<p>void loop() {<br \/>\nif(digitalRead(2) == HIGH){<\/p>\n<p>digitalWrite(11, LOW);<br \/>\ndigitalWrite(12, HIGH);<br \/>\ndigitalWrite(9,LOW);<br \/>\ndelay(1000);<br \/>\ndigitalWrite(12, LOW);<br \/>\ndigitalWrite(13, HIGH);<br \/>\ndigitalWrite(9,LOW);<br \/>\ndelay(3000);<br \/>\ndigitalWrite(13,LOW);<br \/>\ndigitalWrite(11,HIGH);<br \/>\ndigitalWrite(9,HIGH);<br \/>\n} else{<br \/>\ndigitalWrite(11, HIGH);<br \/>\ndigitalWrite(9, HIGH);<br \/>\ndelay(100);<br \/>\n}<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today your goal is to add in the walk\/don&#8217;t walk lights. You will have to do TWO things. 1. modify your breadboard. 2. modify your code. updated breadboard The incomplete code is available below. \u00a0Why is it incomplete? \u00a0Because the code below only controls the WALK light that comes on when the light is green. &hellip; <a href=\"https:\/\/rodmilstead.com\/pt\/2015\/04\/21\/milsteads-group-4-21-15\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Milstead&#8217;s group 4-21-15<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":0,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"wp:attachment":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}