{"action":"created","issue":{"url":"https://api.github.com/repos/firmata/arduino/issues/102","labels_url":"https://api.github.com/repos/firmata/arduino/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/firmata/arduino/issues/102/comments","events_url":"https://api.github.com/repos/firmata/arduino/issues/102/events","html_url":"https://github.com/firmata/arduino/issues/102","id":22906681,"number":102,"title":"add ability to set an individual digital pin value","user":{"login":"SolidSoils","id":3380129,"avatar_url":"https://avatars.githubusercontent.com/u/3380129?v=3","gravatar_id":"","url":"https://api.github.com/users/SolidSoils","html_url":"https://github.com/SolidSoils","followers_url":"https://api.github.com/users/SolidSoils/followers","following_url":"https://api.github.com/users/SolidSoils/following{/other_user}","gists_url":"https://api.github.com/users/SolidSoils/gists{/gist_id}","starred_url":"https://api.github.com/users/SolidSoils/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SolidSoils/subscriptions","organizations_url":"https://api.github.com/users/SolidSoils/orgs","repos_url":"https://api.github.com/users/SolidSoils/repos","events_url":"https://api.github.com/users/SolidSoils/events{/privacy}","received_events_url":"https://api.github.com/users/SolidSoils/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/firmata/arduino/milestones/4","html_url":"https://github.com/firmata/arduino/milestones/2.4-beta2","labels_url":"https://api.github.com/repos/firmata/arduino/milestones/4/labels","id":744534,"number":4,"title":"2.4-beta2","description":"","creator":{"login":"soundanalogous","id":401539,"avatar_url":"https://avatars.githubusercontent.com/u/401539?v=3","gravatar_id":"","url":"https://api.github.com/users/soundanalogous","html_url":"https://github.com/soundanalogous","followers_url":"https://api.github.com/users/soundanalogous/followers","following_url":"https://api.github.com/users/soundanalogous/following{/other_user}","gists_url":"https://api.github.com/users/soundanalogous/gists{/gist_id}","starred_url":"https://api.github.com/users/soundanalogous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soundanalogous/subscriptions","organizations_url":"https://api.github.com/users/soundanalogous/orgs","repos_url":"https://api.github.com/users/soundanalogous/repos","events_url":"https://api.github.com/users/soundanalogous/events{/privacy}","received_events_url":"https://api.github.com/users/soundanalogous/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":2,"state":"closed","created_at":"2014-08-06T05:25:29Z","updated_at":"2015-04-26T20:24:21Z","due_on":null,"closed_at":"2014-12-21T21:38:42Z"},"comments":10,"created_at":"2013-11-19T11:57:30Z","updated_at":"2015-05-18T00:58:48Z","closed_at":null,"body":"Using analog messages (ANALOG 0xE0 and EXTENDED_ANALOG 0xF0-0x6F) we can control individual PWM and Servo pins. It is not possible to set the state of a digital output pin.\r\n\r\nWhen a client system needs to set a digital output port, it must now first query the state of the port, mask the pin state and write the port's state back to the Arduino.\r\n\r\nMy proposal is to extend the analog messages to enable setting digital output pins. A 0 value would then map to LOW and any non-zero value would map to HIGH.\r\n\r\nThis would also be more consistent with the Pin State Query en Set Pin Mode commands.\r\n\r\nI realize it's a bit odd writing a digital value using an analog message, but i.m.h.o. this is due to an inconsistency in the Firmata protocol itself: analog messages sent by the Arduino reflect the state of the true analog pins, where analog messages received by the Arduino are mapped to digital (PWM and Servo) pins."},"comment":{"url":"https://api.github.com/repos/firmata/arduino/issues/comments/102880969","html_url":"https://github.com/firmata/arduino/issues/102#issuecomment-102880969","issue_url":"https://api.github.com/repos/firmata/arduino/issues/102","id":102880969,"user":{"login":"rwaldron","id":27985,"avatar_url":"https://avatars.githubusercontent.com/u/27985?v=3","gravatar_id":"","url":"https://api.github.com/users/rwaldron","html_url":"https://github.com/rwaldron","followers_url":"https://api.github.com/users/rwaldron/followers","following_url":"https://api.github.com/users/rwaldron/following{/other_user}","gists_url":"https://api.github.com/users/rwaldron/gists{/gist_id}","starred_url":"https://api.github.com/users/rwaldron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwaldron/subscriptions","organizations_url":"https://api.github.com/users/rwaldron/orgs","repos_url":"https://api.github.com/users/rwaldron/repos","events_url":"https://api.github.com/users/rwaldron/events{/privacy}","received_events_url":"https://api.github.com/users/rwaldron/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T00:58:48Z","updated_at":"2015-05-18T00:58:48Z","body":"I'll give it a spin this week "}}