{"id":418,"date":"2012-03-16T10:43:59","date_gmt":"2012-03-16T17:43:59","guid":{"rendered":"http:\/\/..\/?p=418"},"modified":"2012-03-16T10:43:59","modified_gmt":"2012-03-16T17:43:59","slug":"scripting-the-directfb","status":"publish","type":"post","link":"https:\/\/blog.engine12.com\/?p=418","title":{"rendered":"Scripting the DirectFB"},"content":{"rendered":"<p><a href=\"..\/wp-content\/uploads\/2012\/03\/df_window.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignright\" src=\"..\/wp-content\/uploads\/2012\/03\/df_window-300x225.png\" alt=\"\" width=\"300\" height=\"225\" \/><\/a>There is a new version of NodeZ2.\u00a0 The biggest addition is a module for scripting the DirectFB within Node.js.\u00a0 No browser required.\u00a0 How cool is that!<\/p>\n<p>It&#8217;s not very tested and there are holes in the implementation, but it&#8217;s still very functional.\u00a0 Included are several example scripts that should get you going.\u00a0 No cross compiler needed.<\/p>\n<p>If you decide to flash it to the onboard memory beware, there is very little memory left in the jffs2 file system.\u00a0 There is enough to store quite a bit of javascript, but if you opkg anything it should be directed to the overlayfs.<\/p>\n<p><span style=\"color: #888888\">There is a problem with the keypad not working shortly after bootup.\u00a0  Symptoms include not being able to use the alt key.\u00a0 Until the problem  is resolved you&#8217;ll need to work around it&#8230; suspend the ZipIt by pressing the power  button, then wake it up by pressing power again.\u00a0 This should get the  keyboard working again.<\/span><\/p>\n<p><a href=\"http:\/\/engine12.com\/files\/nodejs-zipit\/NodeZ2_v4.tar.bz2\">NodeZ2_v4<\/a><\/p>\n<p>To start one of the example scripts&#8230; cd to \/root\/node\/dfb_examples and enter the following:<\/p>\n<p>root@OpenWrt:~\/node\/dfb_examples# <span style=\"color: #ff9900\">node df_window.js<\/span><\/p>\n<p>Use the escape key to end the program.<\/p>\n<p>Other new features include color syntax highlighting for javascript in nano.\u00a0 You can add other syntax maps for bash or cpp files, but they&#8217;re not included by default.\u00a0 I compiled nano to use the mouse too, but no luck.\u00a0 Additional packages must be needed, I didn&#8217;t troubleshoot much.<\/p>\n<p>The source for the new bindings is on <a href=\"https:\/\/github.com\/engine12\/node-directfb\">github<\/a>.<\/p>\n<p><span style=\"color: #888888\"> <\/span><\/p>\n<p><span style=\"color: #ff9900\"><br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is a new version of NodeZ2.\u00a0 The biggest addition is a module for scripting the DirectFB within Node.js.\u00a0 No browser required.\u00a0 How cool is that! It&#8217;s not very tested and there are holes in the implementation, but it&#8217;s still very functional.\u00a0 Included are several example scripts that should get you going.\u00a0 No cross compiler <a href='https:\/\/blog.engine12.com\/?p=418'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[5,7,11,13],"_links":{"self":[{"href":"https:\/\/blog.engine12.com\/index.php?rest_route=\/wp\/v2\/posts\/418"}],"collection":[{"href":"https:\/\/blog.engine12.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.engine12.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.engine12.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.engine12.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=418"}],"version-history":[{"count":0,"href":"https:\/\/blog.engine12.com\/index.php?rest_route=\/wp\/v2\/posts\/418\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.engine12.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.engine12.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.engine12.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}