{"id":36,"date":"2014-09-12T02:28:46","date_gmt":"2014-09-12T02:28:46","guid":{"rendered":"http:\/\/itp.fromjia.com\/?p=36"},"modified":"2014-09-16T06:54:04","modified_gmt":"2014-09-16T06:54:04","slug":"first-post","status":"publish","type":"post","link":"http:\/\/itp.fromjia.com\/?p=36","title":{"rendered":"First encounter with the Flora"},"content":{"rendered":"<p>This class works really well in parallel with Physical Computing. While we delve more into the basics of electronics in P Comp, we jumped right into implementing simple interactions with the Flora in the second part of the Costumes class. We used <a href=\"https:\/\/github.com\/kahodesu\/CAGC_button\">pre-existing code<\/a> that Kaho provided to light up a LED on the Flora with the press of a button.<\/p>\n<div id=\"attachment_69\" style=\"width: 410px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/button31.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69\" class=\"size-full wp-image-69\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/button31.gif\" alt=\"Lighting up LED with one switch.\" width=\"400\" height=\"225\" \/><\/a><p id=\"caption-attachment-69\" class=\"wp-caption-text\">Lighting up LED with one switch.<\/p><\/div>\n<div id=\"attachment_63\" style=\"width: 410px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/button2.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-63\" class=\"size-full wp-image-63\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/button2.gif\" alt=\"Lighting up LED with two buttons.\" width=\"400\" height=\"225\" \/><\/a><p id=\"caption-attachment-63\" class=\"wp-caption-text\">Lighting up LED with two buttons.<\/p><\/div>\n<p>It was fairly easy to make adjustments to the code and configurations of the connections to try various ways of lighting up the LED and even to input text with a button.<\/p>\n<div id=\"attachment_64\" style=\"width: 410px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/jia.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-64\" class=\"wp-image-64 size-full\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/jia.gif\" alt=\"jia\" width=\"400\" height=\"225\" \/><\/a><p id=\"caption-attachment-64\" class=\"wp-caption-text\">Printing strings by pressing on a switch.<\/p><\/div>\n<div id=\"attachment_65\" style=\"width: 410px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/shek.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-65\" class=\"size-full wp-image-65\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/shek.gif\" alt=\"Printing strings with DIY switch.\" width=\"400\" height=\"225\" \/><\/a><p id=\"caption-attachment-65\" class=\"wp-caption-text\">Printing strings with DIY switch.<\/p><\/div>\n<p>We also tried using conductive fabric and material as a switch. One of the takeaway from this was that, because contact from fabric is not as secure as a conventional switch, we need to &#8220;debounce&#8221; in the code to make the response more stable. Debouncing checks the lastButtonState and ensure that it&#8217;s different from the current buttonState. Again, we used pre-existing code to do this. I&#8217;ll need to look more into this to have a better understanding. There was a lot of tickering around with the code and connections until things worked. I&#8217;m making baby steps to building my own mind altering costume.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This class works really well in parallel with Physical Computing. While we delve more into the basics of electronics in P Comp, we jumped right into implementing simple interactions with the Flora in the second part of the Costumes class. We used pre-existing code that Kaho provided to light up a LED on the Flora [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":58,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-costume-as-game-controller"],"_links":{"self":[{"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36"}],"version-history":[{"count":7,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":70,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions\/70"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/media\/58"}],"wp:attachment":[{"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}