{"action":"created","issue":{"url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/390","labels_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/390/comments","events_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/390/events","html_url":"https://github.com/intel-iot-devkit/mraa/issues/390","id":124416444,"number":390,"title":"Galileo Gen2 and AIO: pull-up resistor bug","user":{"login":"xbolshe","id":10796236,"avatar_url":"https://avatars.githubusercontent.com/u/10796236?v=3","gravatar_id":"","url":"https://api.github.com/users/xbolshe","html_url":"https://github.com/xbolshe","followers_url":"https://api.github.com/users/xbolshe/followers","following_url":"https://api.github.com/users/xbolshe/following{/other_user}","gists_url":"https://api.github.com/users/xbolshe/gists{/gist_id}","starred_url":"https://api.github.com/users/xbolshe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbolshe/subscriptions","organizations_url":"https://api.github.com/users/xbolshe/orgs","repos_url":"https://api.github.com/users/xbolshe/repos","events_url":"https://api.github.com/users/xbolshe/events{/privacy}","received_events_url":"https://api.github.com/users/xbolshe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/intel-iot-devkit/mraa/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/intel-iot-devkit/mraa/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-31T00:09:10Z","updated_at":"2016-01-04T21:35:44Z","closed_at":null,"body":"Let's see https://github.com/intel-iot-devkit/mraa/blob/master/src/x86/intel_galileo_rev_g.c\r\n\r\n   // ANALOG\r\n    strncpy(b->pins[14].name, \"A0\", 8);\r\n    b->pins[14].aio.pinmap = 0;\r\n    b->pins[14].aio.mux_total = 1;\r\n    b->pins[14].aio.mux[0].pin = 49;\r\n    b->pins[14].aio.mux[0].value = 1;\r\n\r\n    strncpy(b->pins[15].name, \"A1\", 8);\r\n    b->pins[15].aio.pinmap = 1;\r\n    b->pins[15].aio.mux[0].pin = 51;\r\n    b->pins[15].aio.mux[0].value = 1;\r\n    b->pins[15].aio.mux_total = 0;\r\n\r\n    strncpy(b->pins[16].name, \"A2\", 8);\r\n    b->pins[16].aio.pinmap = 2;\r\n    b->pins[16].aio.mux_total = 1;\r\n    b->pins[16].aio.mux[0].pin = 53;\r\n    b->pins[16].aio.mux[0].value = 1;\r\n\r\n    strncpy(b->pins[17].name, \"A3\", 8);\r\n    b->pins[17].aio.mux_total = 1;\r\n    b->pins[17].aio.mux[0].pin = 55;\r\n    b->pins[17].aio.mux[0].value = 1;\r\n\r\n\r\nI'm not sure about bugs, but have questions:\r\n\r\n1. Why only A1 has mux_total = 0, while A0,A2,A3 have mux_total = 1 ?\r\n2. Why MUX 49,51,53 and 55 values are equal 1 while for a normal ADC operation need to disable pull-up/pull-down resistors using a direction value \"INPUT\" ?\r\n\r\nBR,\r\nxbolshe"},"comment":{"url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/comments/168817066","html_url":"https://github.com/intel-iot-devkit/mraa/issues/390#issuecomment-168817066","issue_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/390","id":168817066,"user":{"login":"xbolshe","id":10796236,"avatar_url":"https://avatars.githubusercontent.com/u/10796236?v=3","gravatar_id":"","url":"https://api.github.com/users/xbolshe","html_url":"https://github.com/xbolshe","followers_url":"https://api.github.com/users/xbolshe/followers","following_url":"https://api.github.com/users/xbolshe/following{/other_user}","gists_url":"https://api.github.com/users/xbolshe/gists{/gist_id}","starred_url":"https://api.github.com/users/xbolshe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbolshe/subscriptions","organizations_url":"https://api.github.com/users/xbolshe/orgs","repos_url":"https://api.github.com/users/xbolshe/repos","events_url":"https://api.github.com/users/xbolshe/events{/privacy}","received_events_url":"https://api.github.com/users/xbolshe/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T21:35:44Z","updated_at":"2016-01-04T21:35:44Z","body":"Problem: ADC performs a measurement of unexpected signal (when an additional resistor is connected to the GND or VCC, or an analog pin is connected to the GND or VCC via diginal A0,A1,A2,...)."}}