{"action":"created","issue":{"url":"https://api.github.com/repos/buserror/simavr/issues/102","labels_url":"https://api.github.com/repos/buserror/simavr/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/buserror/simavr/issues/102/comments","events_url":"https://api.github.com/repos/buserror/simavr/issues/102/events","html_url":"https://github.com/buserror/simavr/pull/102","id":46957555,"number":102,"title":"twi: Remove start condition delay","user":{"login":"dougszumski","id":1140727,"avatar_url":"https://avatars.githubusercontent.com/u/1140727?v=3","gravatar_id":"","url":"https://api.github.com/users/dougszumski","html_url":"https://github.com/dougszumski","followers_url":"https://api.github.com/users/dougszumski/followers","following_url":"https://api.github.com/users/dougszumski/following{/other_user}","gists_url":"https://api.github.com/users/dougszumski/gists{/gist_id}","starred_url":"https://api.github.com/users/dougszumski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougszumski/subscriptions","organizations_url":"https://api.github.com/users/dougszumski/orgs","repos_url":"https://api.github.com/users/dougszumski/repos","events_url":"https://api.github.com/users/dougszumski/events{/privacy}","received_events_url":"https://api.github.com/users/dougszumski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-10-27T20:49:04Z","updated_at":"2015-08-09T12:17:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/buserror/simavr/pulls/102","html_url":"https://github.com/buserror/simavr/pull/102","diff_url":"https://github.com/buserror/simavr/pull/102.diff","patch_url":"https://github.com/buserror/simavr/pull/102.patch"},"body":"  > This corrects a problem where a non-interrupt driven twi driver\r\n    functions on the target (m32) but not in simavr.\r\n  > This also fixes ../examples/board_i2ctest so that it functions as\r\n    expected."},"comment":{"url":"https://api.github.com/repos/buserror/simavr/issues/comments/129174092","html_url":"https://github.com/buserror/simavr/pull/102#issuecomment-129174092","issue_url":"https://api.github.com/repos/buserror/simavr/issues/102","id":129174092,"user":{"login":"TheCrazyT","id":498863,"avatar_url":"https://avatars.githubusercontent.com/u/498863?v=3","gravatar_id":"","url":"https://api.github.com/users/TheCrazyT","html_url":"https://github.com/TheCrazyT","followers_url":"https://api.github.com/users/TheCrazyT/followers","following_url":"https://api.github.com/users/TheCrazyT/following{/other_user}","gists_url":"https://api.github.com/users/TheCrazyT/gists{/gist_id}","starred_url":"https://api.github.com/users/TheCrazyT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheCrazyT/subscriptions","organizations_url":"https://api.github.com/users/TheCrazyT/orgs","repos_url":"https://api.github.com/users/TheCrazyT/repos","events_url":"https://api.github.com/users/TheCrazyT/events{/privacy}","received_events_url":"https://api.github.com/users/TheCrazyT/received_events","type":"User","site_admin":false},"created_at":"2015-08-09T12:17:37Z","updated_at":"2015-08-09T12:17:37Z","body":"See here https://gist.github.com/TheCrazyT/7b34002cdd2d38df86ca .\r\nI slightly modified the code to actually check the return result of i2c_write.\r\nAccording to twimaster.c(https://github.com/buserror/simavr/blob/8075bc3a89bd1eec23a913ffe0c14b715f870251/examples/shared/twimaster.c) it should return \"1\" if it has an error because it got no \"TW_MT_DATA_ACK\".\r\n\r\nIf i execute the code i get the following output:\r\nFirmware pathname is atmega1280_i2ctest.axf\r\nLoaded 1138 .text at address 0x0\r\nLoaded 16 .data\r\nfirmware atmega1280_i2ctest.axf f=8000000 mmcu=atmega1280\r\navr_interrupt_init\r\n\r\nDemo launching:\r\neeprom received start\r\neeprom set address to 0xb1aa\r\neeprom WRITE data 0x01aa: de\r\neeprom WRITE data 0x01ab: ad\r\neeprom received stop\r\neeprom received start\r\neeprom set address to 0xb1a8\r\neeprom received start\r\neeprom READ data 0x01a8: ff\r\neeprom READ data 0x01a9: ff\r\neeprom READ data 0x01aa: de\r\neeprom READ data 0x01ab: ad\r\neeprom READ data 0x01ac: ff\r\neeprom READ data 0x01ad: ff\r\neeprom READ data 0x01ae: ff\r\neeprom READ data 0x01af: ff\r\neeprom received stop\r\neeprom received start\r\neeprom received stop\r\n\r\nLooks like it fails already on the first i2c_write.\r\n"}}