{"action":"created","issue":{"url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/132","repository_url":"https://api.github.com/repos/intel-iot-devkit/mraa","labels_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/132/comments","events_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/132/events","html_url":"https://github.com/intel-iot-devkit/mraa/issues/132","id":57967480,"number":132,"title":"SPI module, setting frequency imposes no limit","user":{"login":"cosscat","id":9968072,"avatar_url":"https://avatars.githubusercontent.com/u/9968072?v=3","gravatar_id":"","url":"https://api.github.com/users/cosscat","html_url":"https://github.com/cosscat","followers_url":"https://api.github.com/users/cosscat/followers","following_url":"https://api.github.com/users/cosscat/following{/other_user}","gists_url":"https://api.github.com/users/cosscat/gists{/gist_id}","starred_url":"https://api.github.com/users/cosscat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosscat/subscriptions","organizations_url":"https://api.github.com/users/cosscat/orgs","repos_url":"https://api.github.com/users/cosscat/repos","events_url":"https://api.github.com/users/cosscat/events{/privacy}","received_events_url":"https://api.github.com/users/cosscat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/intel-iot-devkit/mraa/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/intel-iot-devkit/mraa/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":{"login":"alext-mkrs","id":6135723,"avatar_url":"https://avatars.githubusercontent.com/u/6135723?v=3","gravatar_id":"","url":"https://api.github.com/users/alext-mkrs","html_url":"https://github.com/alext-mkrs","followers_url":"https://api.github.com/users/alext-mkrs/followers","following_url":"https://api.github.com/users/alext-mkrs/following{/other_user}","gists_url":"https://api.github.com/users/alext-mkrs/gists{/gist_id}","starred_url":"https://api.github.com/users/alext-mkrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alext-mkrs/subscriptions","organizations_url":"https://api.github.com/users/alext-mkrs/orgs","repos_url":"https://api.github.com/users/alext-mkrs/repos","events_url":"https://api.github.com/users/alext-mkrs/events{/privacy}","received_events_url":"https://api.github.com/users/alext-mkrs/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-02-17T19:11:51Z","updated_at":"2016-03-28T09:57:21Z","closed_at":null,"body":"Hello,\r\n\r\nWhile testing SPI of mraa on Gallileo v1, I observed that there is no limit for setting the frequency in Hz except the boundries of integer values. Is there a way to interogate the hardware for the max. frequency it accepts?\r\n\r\n>>> m.getVersion()\r\n'v0.5.4-118-g818e1a8'\r\n\r\n>>> s.frequency(1000)\r\n0\r\n>>> s.frequency(1000000)\r\n0\r\n>>> s.frequency(10000000000)\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/lib/python2.7/site-packages/mraa.py\", line 795, in frequency\r\n    return _mraa.Spi_frequency(self, *args)\r\nTypeError: in method 'Spi_frequency', argument 2 of type 'int'\r\n>>> \r\n\r\n\r\nRegards,\r\n\r\nCostin"},"comment":{"url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/comments/202326511","html_url":"https://github.com/intel-iot-devkit/mraa/issues/132#issuecomment-202326511","issue_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/132","id":202326511,"user":{"login":"alext-mkrs","id":6135723,"avatar_url":"https://avatars.githubusercontent.com/u/6135723?v=3","gravatar_id":"","url":"https://api.github.com/users/alext-mkrs","html_url":"https://github.com/alext-mkrs","followers_url":"https://api.github.com/users/alext-mkrs/followers","following_url":"https://api.github.com/users/alext-mkrs/following{/other_user}","gists_url":"https://api.github.com/users/alext-mkrs/gists{/gist_id}","starred_url":"https://api.github.com/users/alext-mkrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alext-mkrs/subscriptions","organizations_url":"https://api.github.com/users/alext-mkrs/orgs","repos_url":"https://api.github.com/users/alext-mkrs/repos","events_url":"https://api.github.com/users/alext-mkrs/events{/privacy}","received_events_url":"https://api.github.com/users/alext-mkrs/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T09:57:21Z","updated_at":"2016-03-28T09:57:21Z","body":"Ok, thanks - I'll submit a patch shortly then."}}