{"action":"created","issue":{"url":"https://api.github.com/repos/DeniSix/node-lpt/issues/3","labels_url":"https://api.github.com/repos/DeniSix/node-lpt/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/DeniSix/node-lpt/issues/3/comments","events_url":"https://api.github.com/repos/DeniSix/node-lpt/issues/3/events","html_url":"https://github.com/DeniSix/node-lpt/issues/3","id":58679537,"number":3,"title":"Data port not cleared to allow reading data.","user":{"login":"humblewizard","id":771347,"avatar_url":"https://avatars.githubusercontent.com/u/771347?v=3","gravatar_id":"","url":"https://api.github.com/users/humblewizard","html_url":"https://github.com/humblewizard","followers_url":"https://api.github.com/users/humblewizard/followers","following_url":"https://api.github.com/users/humblewizard/following{/other_user}","gists_url":"https://api.github.com/users/humblewizard/gists{/gist_id}","starred_url":"https://api.github.com/users/humblewizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humblewizard/subscriptions","organizations_url":"https://api.github.com/users/humblewizard/orgs","repos_url":"https://api.github.com/users/humblewizard/repos","events_url":"https://api.github.com/users/humblewizard/events{/privacy}","received_events_url":"https://api.github.com/users/humblewizard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-02-24T01:21:48Z","updated_at":"2015-02-24T22:12:13Z","closed_at":null,"body":"The output writing works on my system. I can set D0-D7 either high or low. But I can't read external data through the port. The read operation does not change the data direction. \r\n\r\n    var lpt = require('lpt'), port = new lpt.Port(0);\r\n\r\n    port.data = 255;\r\n    console.log(port.data) // read data register does not read external io\r\n\r\n    port.data = 0;\r\n    console.log(port.data) // read data register does not read external io\r\n\r\nI can see with an oscilloscope that the ports are being set by the port.data command but the read operation does not clear the output state to allow the external CMOS to drive the port. \r\n\r\nThe ECP Reverse Data Cycle needs to be used?????\r\n"},"comment":{"url":"https://api.github.com/repos/DeniSix/node-lpt/issues/comments/75858015","html_url":"https://github.com/DeniSix/node-lpt/issues/3#issuecomment-75858015","issue_url":"https://api.github.com/repos/DeniSix/node-lpt/issues/3","id":75858015,"user":{"login":"humblewizard","id":771347,"avatar_url":"https://avatars.githubusercontent.com/u/771347?v=3","gravatar_id":"","url":"https://api.github.com/users/humblewizard","html_url":"https://github.com/humblewizard","followers_url":"https://api.github.com/users/humblewizard/followers","following_url":"https://api.github.com/users/humblewizard/following{/other_user}","gists_url":"https://api.github.com/users/humblewizard/gists{/gist_id}","starred_url":"https://api.github.com/users/humblewizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humblewizard/subscriptions","organizations_url":"https://api.github.com/users/humblewizard/orgs","repos_url":"https://api.github.com/users/humblewizard/repos","events_url":"https://api.github.com/users/humblewizard/events{/privacy}","received_events_url":"https://api.github.com/users/humblewizard/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T22:12:13Z","updated_at":"2015-02-24T22:12:13Z","body":"It works! \r\n\r\nUsing: 'byte'"}}