{"action":"opened","issue":{"url":"https://api.github.com/repos/raspberrypi/hats/issues/35","repository_url":"https://api.github.com/repos/raspberrypi/hats","labels_url":"https://api.github.com/repos/raspberrypi/hats/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/raspberrypi/hats/issues/35/comments","events_url":"https://api.github.com/repos/raspberrypi/hats/issues/35/events","html_url":"https://github.com/raspberrypi/hats/issues/35","id":160999873,"number":35,"title":"Unable to specify GPIO as output, driven high.","user":{"login":"mlyle","id":90903,"avatar_url":"https://avatars.githubusercontent.com/u/90903?v=3","gravatar_id":"","url":"https://api.github.com/users/mlyle","html_url":"https://github.com/mlyle","followers_url":"https://api.github.com/users/mlyle/followers","following_url":"https://api.github.com/users/mlyle/following{/other_user}","gists_url":"https://api.github.com/users/mlyle/gists{/gist_id}","starred_url":"https://api.github.com/users/mlyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlyle/subscriptions","organizations_url":"https://api.github.com/users/mlyle/orgs","repos_url":"https://api.github.com/users/mlyle/repos","events_url":"https://api.github.com/users/mlyle/events{/privacy}","received_events_url":"https://api.github.com/users/mlyle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-18T01:17:58Z","updated_at":"2016-06-18T01:17:58Z","closed_at":null,"body":"```\r\n# SPI Chip Enables\r\n\r\n# microcontroller\r\nsetgpio   8     OUTPUT    UP\r\n# gyro\r\nsetgpio   7     OUTPUT    UP\r\n# accelerometer\r\nsetgpio   5     OUTPUT    UP\r\n```\r\n\r\nDoesn't do what one might expect; it configures these GPIOs as outputs, with the weak pullup enabled.. with the IO driven down hard.\r\n\r\nWhen used for SPI chip enables, this is super bad, because the default of driving the pin down low means the slaves can fight on the MISO pin.\r\n\r\nIdeally there would be a way to tell the bootloader to forcefully drive these pins high ASAP."}}
{"actor":{"display_login":"mlyle"}}