{"action":"created","issue":{"url":"https://api.github.com/repos/MrYsLab/pymata-aio/issues/91","repository_url":"https://api.github.com/repos/MrYsLab/pymata-aio","labels_url":"https://api.github.com/repos/MrYsLab/pymata-aio/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/MrYsLab/pymata-aio/issues/91/comments","events_url":"https://api.github.com/repos/MrYsLab/pymata-aio/issues/91/events","html_url":"https://github.com/MrYsLab/pymata-aio/issues/91","id":395254444,"node_id":"MDU6SXNzdWUzOTUyNTQ0NDQ=","number":91,"title":"IndexError with Analog Pin","user":{"login":"yogeshck","id":46281742,"node_id":"MDQ6VXNlcjQ2MjgxNzQy","avatar_url":"https://avatars3.githubusercontent.com/u/46281742?v=4","gravatar_id":"","url":"https://api.github.com/users/yogeshck","html_url":"https://github.com/yogeshck","followers_url":"https://api.github.com/users/yogeshck/followers","following_url":"https://api.github.com/users/yogeshck/following{/other_user}","gists_url":"https://api.github.com/users/yogeshck/gists{/gist_id}","starred_url":"https://api.github.com/users/yogeshck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogeshck/subscriptions","organizations_url":"https://api.github.com/users/yogeshck/orgs","repos_url":"https://api.github.com/users/yogeshck/repos","events_url":"https://api.github.com/users/yogeshck/events{/privacy}","received_events_url":"https://api.github.com/users/yogeshck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-01-02T13:52:02Z","updated_at":"2019-01-02T15:54:50Z","closed_at":null,"author_association":"NONE","body":"I am using Windows 10 with Python 3.5 and Standard Firmata (v2.5.8). I'm using an Arduino based board which has **analog pin A6**. I want to read analog values from this pin **A6**, which is working with Arduino IDE.\r\nBut with **pymata-aio** I am getting **IndexError**:\r\n`IndexError: list index out of range`\r\n\r\nI tried with this code:\r\n\r\n```\r\nimport time\r\nfrom pymata_aio.pymata3 import PyMata3\r\nfrom pymata_aio.constants import Constants\r\n\r\nboard = PyMata3(com_port='COM4')\r\n\r\nldrpin = 6\r\n\r\ndef my_callback(data):\r\n    global value\r\n    value = (data[1])\r\n\r\ndef LDR():\r\n    board.set_pin_mode(ldr, Constants.ANALOG, my_callback)\r\n    board.enable_analog_reporting(ldr)\r\n    \r\n    while True:\r\n        print(value)\r\n        board.sleep(1)\r\n\r\nLDR()\r\n```\r\nHow can I use pin A6 ?"},"comment":{"url":"https://api.github.com/repos/MrYsLab/pymata-aio/issues/comments/450900832","html_url":"https://github.com/MrYsLab/pymata-aio/issues/91#issuecomment-450900832","issue_url":"https://api.github.com/repos/MrYsLab/pymata-aio/issues/91","id":450900832,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDkwMDgzMg==","user":{"login":"yogeshck","id":46281742,"node_id":"MDQ6VXNlcjQ2MjgxNzQy","avatar_url":"https://avatars3.githubusercontent.com/u/46281742?v=4","gravatar_id":"","url":"https://api.github.com/users/yogeshck","html_url":"https://github.com/yogeshck","followers_url":"https://api.github.com/users/yogeshck/followers","following_url":"https://api.github.com/users/yogeshck/following{/other_user}","gists_url":"https://api.github.com/users/yogeshck/gists{/gist_id}","starred_url":"https://api.github.com/users/yogeshck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogeshck/subscriptions","organizations_url":"https://api.github.com/users/yogeshck/orgs","repos_url":"https://api.github.com/users/yogeshck/repos","events_url":"https://api.github.com/users/yogeshck/events{/privacy}","received_events_url":"https://api.github.com/users/yogeshck/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T15:54:50Z","updated_at":"2019-01-02T15:54:50Z","author_association":"NONE","body":"In Arduino IDE, I'm using **Arduino Duemilanove (ATMEGA328P)**.\r\nIt shows: `Found 20 Digital Pins and 6 Analog Pins`\r\nNo, A6 is not recognized by pymata-aio.\r\nThanks for the reply."}}
{"actor":{"display_login":"yogeshck"}}