{"id":706,"date":"2015-11-12T13:38:51","date_gmt":"2015-11-12T12:38:51","guid":{"rendered":"http:\/\/heppg.de\/ikg\/wordpress\/?p=706"},"modified":"2016-01-02T17:27:26","modified_gmt":"2016-01-02T16:27:26","slug":"blink1-for-scratch","status":"publish","type":"post","link":"https:\/\/heppg.de\/ikg\/wordpress\/?p=706","title":{"rendered":"blink(1) for scratch"},"content":{"rendered":"<p>blink(1) is a neat small USB device with two RGB LED inside. <a href=\"https:\/\/blink1.thingm.com\/\">See also their home page<\/a>.<\/p>\n<p><a href=\"http:\/\/heppg.de\/ikg\/wordpress\/wp-content\/uploads\/2015\/11\/blink.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-704\" src=\"http:\/\/heppg.de\/ikg\/wordpress\/wp-content\/uploads\/2015\/11\/blink.gif\" alt=\"blink\" width=\"480\" height=\"268\" \/><\/a><\/p>\n<p>The scratch code is straightforward. With variable &#8216;led_1&#8217; the LED#1 is set, and &#8216;led_2&#8217; sets LED#2. The device supports also a setAll-Command, a variable &#8216;led_all&#8217; or &#8216;led_0&#8217; is used for this purpose.<\/p>\n<p>Download and install <a href=\"http:\/\/heppg.de\/ikg\/wordpress\/?page_id=6\">scratchClient-Software<\/a>. In addition to the usual installation of scratchClient it is needed to install &#8216;pyusb&#8217;. This installation is described in the <a href=\"http:\/\/www.heppg.de\/ikg\/administration\/pi\/scratchClient\/doc\/scratchClient.pdf\">documentation<\/a>.<\/p>\n<p>scratchClient is designed to work with raspberry pi, but as pyusb is available on linux in general, this should be generally available on these platforms.<\/p>\n<p>Start scratchClient with<\/p>\n<pre>cd ~\/scratchClient\r\npython src\/scratchClient.py -c config_blink<\/pre>\n<p><a href=\"http:\/\/heppg.de\/ikg\/wordpress\/wp-content\/uploads\/2015\/11\/blink.sb_.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-705\" src=\"http:\/\/heppg.de\/ikg\/wordpress\/wp-content\/uploads\/2015\/11\/blink.sb_.gif\" alt=\"blink.sb\" width=\"180\" height=\"341\" \/><\/a><\/p>\n<p>This is the sample scratch Code from the animation. The two led are controlled by a small delay.<\/p>\n<p>Basically, there is the possibility to use more than one blink(1) device. These are identified by their serial number, which can be used to control them separately. Drop me a note if you need this feature.<\/p>\n<p>The usb-control software needs some additional installation, see the the <a href=\"http:\/\/heppg.de\/ikg\/wordpress\/?p=390\">installation remarks <\/a>in barcode scanner for details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>blink(1) is a neat small USB device with two RGB LED inside. See also their home page. The scratch code is straightforward. With variable &#8216;led_1&#8217; the LED#1 is set, and &#8216;led_2&#8217; sets LED#2. The device supports also a setAll-Command, a variable &#8216;led_all&#8217; or &#8216;led_0&#8217; is used for this purpose. Download and install scratchClient-Software. In addition [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,3],"tags":[],"class_list":["post-706","post","type-post","status-publish","format-standard","hentry","category-scratch","category-scratchclient"],"_links":{"self":[{"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=706"}],"version-history":[{"count":3,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/706\/revisions"}],"predecessor-version":[{"id":738,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/706\/revisions\/738"}],"wp:attachment":[{"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}