{"action":"created","issue":{"url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/108","repository_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5","labels_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/108/comments","events_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/108/events","html_url":"https://github.com/sandeepmistry/arduino-nRF5/issues/108","id":211280484,"number":108,"title":"Wire library","user":{"login":"kriswiner","id":6698410,"avatar_url":"https://avatars0.githubusercontent.com/u/6698410?v=3","gravatar_id":"","url":"https://api.github.com/users/kriswiner","html_url":"https://github.com/kriswiner","followers_url":"https://api.github.com/users/kriswiner/followers","following_url":"https://api.github.com/users/kriswiner/following{/other_user}","gists_url":"https://api.github.com/users/kriswiner/gists{/gist_id}","starred_url":"https://api.github.com/users/kriswiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kriswiner/subscriptions","organizations_url":"https://api.github.com/users/kriswiner/orgs","repos_url":"https://api.github.com/users/kriswiner/repos","events_url":"https://api.github.com/users/kriswiner/events{/privacy}","received_events_url":"https://api.github.com/users/kriswiner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-03-02T03:40:49Z","updated_at":"2017-03-06T18:50:56Z","closed_at":null,"body":"I am using my own custom nRF52832 development boards and I would like to initialize the I2C bus, which I have placed on pins 6 (SDA) and 7 (SCL) out of convenience. I looked in the nRF52 DK variant files and tried to change the pin numbers there but it is pretty confusing.  I managed to figure out the pin labelling for the leds of the board but how can I enable I2C on pins 6 and 7. Is the default on pins 26 and 27 or pins 20 and 21, and are these pins the P0.20 and P0.21 pins or physical pins 20, 21 or what?\r\n\r\nWouldn't it make more sense to have a general nRF52 variant and let the user choose as in:\r\n\r\nSerial.begin(RX_pin, TX_pin, baudrate);  and\r\n\r\nWire.begin(SDA_pin, SCL_pin); ?\r\n\r\nAlso, I tried to use TimerOne.h from the BLEPeripheral library examples and the IDE complains that Timer1.initialize and Timer1.attachinterrupt are not a Timer1 class.\r\n\r\nIs there no other way to use timers for the nRF52?\r\n\r\nThank you for our help!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/comments/284493122","html_url":"https://github.com/sandeepmistry/arduino-nRF5/issues/108#issuecomment-284493122","issue_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/108","id":284493122,"user":{"login":"kriswiner","id":6698410,"avatar_url":"https://avatars0.githubusercontent.com/u/6698410?v=3","gravatar_id":"","url":"https://api.github.com/users/kriswiner","html_url":"https://github.com/kriswiner","followers_url":"https://api.github.com/users/kriswiner/followers","following_url":"https://api.github.com/users/kriswiner/following{/other_user}","gists_url":"https://api.github.com/users/kriswiner/gists{/gist_id}","starred_url":"https://api.github.com/users/kriswiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kriswiner/subscriptions","organizations_url":"https://api.github.com/users/kriswiner/orgs","repos_url":"https://api.github.com/users/kriswiner/repos","events_url":"https://api.github.com/users/kriswiner/events{/privacy}","received_events_url":"https://api.github.com/users/kriswiner/received_events","type":"User","site_admin":false},"created_at":"2017-03-06T18:50:56Z","updated_at":"2017-03-06T18:50:56Z","body":"I have tried this on two different pcbs, and there is a BMP280 on the i2C\nbus as well, and I have added a different I2C deviceon a breadboard. They\nall behave the same way. No ACK from any I2C device and the first I2C\ndevice to be polled holds the SCL ine LOW. Not sure what in the software is\ndoing this, but it is not a hardware issue.\n\nOn Mon, Mar 6, 2017 at 10:48 AM, dlabun <notifications@github.com> wrote:\n\n> I do not have a scan example as I use an oscilloscope to verify bus\n> activity. I am reluctant to condemn the library itself as this is the first\n> report of an issue and so far I haven't seen issues with the Nordic\n> development kits. For the sake of troubleshooting, I'd recommend trying a\n> library for the MPU9250 or swap it out for a different I2C device.\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/sandeepmistry/arduino-nRF5/issues/108#issuecomment-284492312>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AGY1qt5hSw934QxDUSExg4hL0nYsjzK2ks5rjFTzgaJpZM4MQguS>\n> .\n>\n"}}
{"actor":{"display_login":"kriswiner"}}