{"action":"created","issue":{"url":"https://api.github.com/repos/jgautier/firmata/issues/106","labels_url":"https://api.github.com/repos/jgautier/firmata/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/jgautier/firmata/issues/106/comments","events_url":"https://api.github.com/repos/jgautier/firmata/issues/106/events","html_url":"https://github.com/jgautier/firmata/issues/106","id":125762168,"number":106,"title":"Problems with pins[pin].value","user":{"login":"jguille2","id":2926315,"avatar_url":"https://avatars.githubusercontent.com/u/2926315?v=3","gravatar_id":"","url":"https://api.github.com/users/jguille2","html_url":"https://github.com/jguille2","followers_url":"https://api.github.com/users/jguille2/followers","following_url":"https://api.github.com/users/jguille2/following{/other_user}","gists_url":"https://api.github.com/users/jguille2/gists{/gist_id}","starred_url":"https://api.github.com/users/jguille2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jguille2/subscriptions","organizations_url":"https://api.github.com/users/jguille2/orgs","repos_url":"https://api.github.com/users/jguille2/repos","events_url":"https://api.github.com/users/jguille2/events{/privacy}","received_events_url":"https://api.github.com/users/jguille2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-09T14:49:10Z","updated_at":"2016-01-13T03:48:55Z","closed_at":"2016-01-09T16:49:53Z","body":"Hello,\r\n**I can't get the real pins value in firmata 0.8.0**\r\nMy test...\r\n\r\n---\r\nWith **firmata 0.3.3** I use **pins[pin].value** and I get the **right value**.\r\n\r\n    var firmata = require('firmata');\r\n    board = new firmata.Board(portName, function(err) {console.log(err);});\r\n    console.log(board.pins[pinNumber].value);\r\n\r\n---\r\nWith **firmata 0.8.0 always report me a zero value**.\r\nIn this version I can  do\r\n\r\n      board = new firmata.Board(portName, function(err) {console.log(err);});\r\nor\r\n\r\n      board = new firmata(portName);\r\n\r\nbut in both cases I get the same: *value = 0* !!!"},"comment":{"url":"https://api.github.com/repos/jgautier/firmata/issues/comments/171153673","html_url":"https://github.com/jgautier/firmata/issues/106#issuecomment-171153673","issue_url":"https://api.github.com/repos/jgautier/firmata/issues/106","id":171153673,"user":{"login":"jguille2","id":2926315,"avatar_url":"https://avatars.githubusercontent.com/u/2926315?v=3","gravatar_id":"","url":"https://api.github.com/users/jguille2","html_url":"https://github.com/jguille2","followers_url":"https://api.github.com/users/jguille2/followers","following_url":"https://api.github.com/users/jguille2/following{/other_user}","gists_url":"https://api.github.com/users/jguille2/gists{/gist_id}","starred_url":"https://api.github.com/users/jguille2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jguille2/subscriptions","organizations_url":"https://api.github.com/users/jguille2/orgs","repos_url":"https://api.github.com/users/jguille2/repos","events_url":"https://api.github.com/users/jguille2/events{/privacy}","received_events_url":"https://api.github.com/users/jguille2/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T03:48:55Z","updated_at":"2016-01-13T03:48:55Z","body":"Thank's Rick,\r\n\r\nBut I have a question. Your link shows that pins[ ].value is update with *DIGITAL_MESSAGE*. I think that this update will be done with digitalRead calls.\r\n\r\n**Without digitalRead call, pins[ ].value isn't update, isn't it?**\r\n\r\nI tested and I've seen that (without digitalRead call) pins[ ].value don't show the real value of Input pins. Input pins show the 'state' of the pullup internal resistor, because firmata.js change its value in digitalWrite function. For output pins it's ok.\r\n\r\nI've tested more and I see with Firmata 0.3.3 there was a diferent operation mode and pins[ ].value shows always the real value of the pin.\r\n\r\nMaybe it is not an issue... only an operation mode change. But it's an important change... and it must be clear.\r\n\r\nThank for your work an patience :)"}}