{"action":"created","issue":{"url":"https://api.github.com/repos/IntoYun/firmware/issues/210","repository_url":"https://api.github.com/repos/IntoYun/firmware","labels_url":"https://api.github.com/repos/IntoYun/firmware/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/IntoYun/firmware/issues/210/comments","events_url":"https://api.github.com/repos/IntoYun/firmware/issues/210/events","html_url":"https://github.com/IntoYun/firmware/issues/210","id":348765105,"node_id":"MDU6SXNzdWUzNDg3NjUxMDU=","number":210,"title":"模组W32的i2c通讯问题","user":{"login":"xpzzh","id":39616248,"node_id":"MDQ6VXNlcjM5NjE2MjQ4","avatar_url":"https://avatars0.githubusercontent.com/u/39616248?v=4","gravatar_id":"","url":"https://api.github.com/users/xpzzh","html_url":"https://github.com/xpzzh","followers_url":"https://api.github.com/users/xpzzh/followers","following_url":"https://api.github.com/users/xpzzh/following{/other_user}","gists_url":"https://api.github.com/users/xpzzh/gists{/gist_id}","starred_url":"https://api.github.com/users/xpzzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpzzh/subscriptions","organizations_url":"https://api.github.com/users/xpzzh/orgs","repos_url":"https://api.github.com/users/xpzzh/repos","events_url":"https://api.github.com/users/xpzzh/events{/privacy}","received_events_url":"https://api.github.com/users/xpzzh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-08T14:59:59Z","updated_at":"2018-08-09T10:43:33Z","closed_at":null,"author_association":"NONE","body":"< Please summarize your issue here.  Check [x] as many boxes below as you can before submitting your issue.  Thanks -- you rock! >\r\n< 请在这把你的问题描述清楚。提交issue之前通过[x], 确定下面的完成点 >\r\n通过测试程序验证问题：未接从设备运行程序，Wire.endTransmission()均返回0，即: 传输成功\r\n#include <Wire.h>\r\n\r\n//int PIN_I2C_SCL = GPIO19;\r\n//int PIN_I2C_SDA = GPIO23;\r\n\r\nvoid setup(){\r\n  Wire.begin();\r\n  Serial.begin(9600);\r\n  Serial.println(\"\\nI2C Scanner\");\r\n}\r\nvoid loop(){\r\n  byte error, address;\r\n  int nDevices;\r\n  Serial.println(\"Scanning...\");\r\n  nDevices = 0;\r\n  for (address = 1; address < 127; address++ ){\r\n    // The i2c_scanner uses the return value of\r\n    // the Write.endTransmisstion to see if\r\n    // a device did acknowledge to the address.\r\n    Wire.beginTransmission(address);\r\n    error = Wire.endTransmission();\r\n    if (error == 0){\r\n      Serial.print(\"I2C device found at address 0x\");\r\n      if (address < 16)\r\n        Serial.print(\"0\");\r\n      Serial.print(address, HEX);\r\n      Serial.println(\" !\");\r\n      nDevices++;\r\n    }else if (error == 4){\r\n      Serial.print(\"Unknow error at address 0x\");\r\n      if (address < 16)\r\n        Serial.print(\"0\");\r\n      Serial.println(address, HEX);\r\n    }\r\n  }\r\n  if (nDevices == 0)\r\n    Serial.println(\"No I2C devices found\\n\");\r\n  else\r\n    Serial.println(\"done\\n\");\r\n  delay(5000); // wait 5 seconds for next scan\r\n}\r\n\r\nCompleteness(完成点):\r\n- [ ] Minimum test case added(请添加最简且能够暴露问题的测试代码)\r\n- [ ] Device, system and user firmware versions stated(请指出模块类型，系统库版本，用户版本)"},"comment":{"url":"https://api.github.com/repos/IntoYun/firmware/issues/comments/411716051","html_url":"https://github.com/IntoYun/firmware/issues/210#issuecomment-411716051","issue_url":"https://api.github.com/repos/IntoYun/firmware/issues/210","id":411716051,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTcxNjA1MQ==","user":{"login":"chenkaiyao","id":15307314,"node_id":"MDQ6VXNlcjE1MzA3MzE0","avatar_url":"https://avatars3.githubusercontent.com/u/15307314?v=4","gravatar_id":"","url":"https://api.github.com/users/chenkaiyao","html_url":"https://github.com/chenkaiyao","followers_url":"https://api.github.com/users/chenkaiyao/followers","following_url":"https://api.github.com/users/chenkaiyao/following{/other_user}","gists_url":"https://api.github.com/users/chenkaiyao/gists{/gist_id}","starred_url":"https://api.github.com/users/chenkaiyao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenkaiyao/subscriptions","organizations_url":"https://api.github.com/users/chenkaiyao/orgs","repos_url":"https://api.github.com/users/chenkaiyao/repos","events_url":"https://api.github.com/users/chenkaiyao/events{/privacy}","received_events_url":"https://api.github.com/users/chenkaiyao/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T10:43:33Z","updated_at":"2018-08-09T10:43:33Z","author_association":"COLLABORATOR","body":"已修正，合并到develop分支"}}
{"actor":{"display_login":"chenkaiyao"}}