{"action":"created","issue":{"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/76","labels_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/76/comments","events_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/76/events","html_url":"https://github.com/RPi-Distro/python-gpiozero/issues/76","id":111965186,"number":76,"title":"while True: led.red = pot.value","user":{"login":"bennuttall","id":1609725,"avatar_url":"https://avatars.githubusercontent.com/u/1609725?v=3","gravatar_id":"","url":"https://api.github.com/users/bennuttall","html_url":"https://github.com/bennuttall","followers_url":"https://api.github.com/users/bennuttall/followers","following_url":"https://api.github.com/users/bennuttall/following{/other_user}","gists_url":"https://api.github.com/users/bennuttall/gists{/gist_id}","starred_url":"https://api.github.com/users/bennuttall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bennuttall/subscriptions","organizations_url":"https://api.github.com/users/bennuttall/orgs","repos_url":"https://api.github.com/users/bennuttall/repos","events_url":"https://api.github.com/users/bennuttall/events{/privacy}","received_events_url":"https://api.github.com/users/bennuttall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"waveform80","id":1076190,"avatar_url":"https://avatars.githubusercontent.com/u/1076190?v=3","gravatar_id":"","url":"https://api.github.com/users/waveform80","html_url":"https://github.com/waveform80","followers_url":"https://api.github.com/users/waveform80/followers","following_url":"https://api.github.com/users/waveform80/following{/other_user}","gists_url":"https://api.github.com/users/waveform80/gists{/gist_id}","starred_url":"https://api.github.com/users/waveform80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveform80/subscriptions","organizations_url":"https://api.github.com/users/waveform80/orgs","repos_url":"https://api.github.com/users/waveform80/repos","events_url":"https://api.github.com/users/waveform80/events{/privacy}","received_events_url":"https://api.github.com/users/waveform80/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-10-17T14:26:06Z","updated_at":"2015-10-19T10:41:45Z","closed_at":null,"body":"Would it be possible to automatically pass the value of a potentiometer directly into something like an `RGBLED`?\r\n\r\nSo that the following example:\r\n\r\n```python\r\nled = RGBLED(2, 3, 4)\r\npot = MCP3008()\r\n\r\nwhile True:\r\n    led.red = pot.value\r\n```\r\n\r\ncan be done automatically somehow?\r\n\r\ni.e. When the pot value changes, the LED changes accordingly."},"comment":{"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/comments/149181213","html_url":"https://github.com/RPi-Distro/python-gpiozero/issues/76#issuecomment-149181213","issue_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/76","id":149181213,"user":{"login":"waveform80","id":1076190,"avatar_url":"https://avatars.githubusercontent.com/u/1076190?v=3","gravatar_id":"","url":"https://api.github.com/users/waveform80","html_url":"https://github.com/waveform80","followers_url":"https://api.github.com/users/waveform80/followers","following_url":"https://api.github.com/users/waveform80/following{/other_user}","gists_url":"https://api.github.com/users/waveform80/gists{/gist_id}","starred_url":"https://api.github.com/users/waveform80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveform80/subscriptions","organizations_url":"https://api.github.com/users/waveform80/orgs","repos_url":"https://api.github.com/users/waveform80/repos","events_url":"https://api.github.com/users/waveform80/events{/privacy}","received_events_url":"https://api.github.com/users/waveform80/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T10:41:45Z","updated_at":"2015-10-19T10:41:45Z","body":"Yeah - I'm actually going off our hooks now as I think this is even better and I haven't found anything I can do with hooks that I can't with this (yet). Still, I'm not actually proposing we remove hooks or anything - they still make for really nice readable code. I'm just saying this is even nicer :)"}}