{"action":"created","issue":{"url":"https://api.github.com/repos/raspberry-sharp/raspberry-sharp-io/issues/56","repository_url":"https://api.github.com/repos/raspberry-sharp/raspberry-sharp-io","labels_url":"https://api.github.com/repos/raspberry-sharp/raspberry-sharp-io/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/raspberry-sharp/raspberry-sharp-io/issues/56/comments","events_url":"https://api.github.com/repos/raspberry-sharp/raspberry-sharp-io/issues/56/events","html_url":"https://github.com/raspberry-sharp/raspberry-sharp-io/issues/56","id":138727092,"number":56,"title":"I2C not working on Pi 3","user":{"login":"StarlightNL","id":7126102,"avatar_url":"https://avatars.githubusercontent.com/u/7126102?v=3","gravatar_id":"","url":"https://api.github.com/users/StarlightNL","html_url":"https://github.com/StarlightNL","followers_url":"https://api.github.com/users/StarlightNL/followers","following_url":"https://api.github.com/users/StarlightNL/following{/other_user}","gists_url":"https://api.github.com/users/StarlightNL/gists{/gist_id}","starred_url":"https://api.github.com/users/StarlightNL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StarlightNL/subscriptions","organizations_url":"https://api.github.com/users/StarlightNL/orgs","repos_url":"https://api.github.com/users/StarlightNL/repos","events_url":"https://api.github.com/users/StarlightNL/events{/privacy}","received_events_url":"https://api.github.com/users/StarlightNL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-05T21:56:44Z","updated_at":"2016-05-23T21:02:58Z","closed_at":null,"body":"This code works on my Pi 2 but not the new Pi 3\r\nThe code and the libs for the project is on my github account\r\n```\r\npi@Natsukipi:~/monodevelop/BattleBotServer/BattleBotServer/bin/Debug $ sudo mono BattleBotServer.exe\r\n\r\nUnhandled Exception:\r\nSystem.TypeInitializationException: An exception was thrown by the type initializer for BattleBotServer.Helpers ---> System.NotSupportedException: Connector pintout Unknown is not supported\r\n  at Raspberry.IO.InterIntegratedCircuit.I2cDriver.GetBscBase (ProcessorPin sdaPin, ProcessorPin sclPin) [0x00000] in <filename unknown>:0\r\n  at Raspberry.IO.InterIntegratedCircuit.I2cDriver..ctor (ProcessorPin sdaPin, ProcessorPin sclPin) [0x00000] in <filename unknown>:0\r\n  at BattleBotServer.Helpers..cctor () [0x00000] in <filename unknown>:0\r\n  --- End of inner exception stack trace ---\r\n  at BattleBotServer.LogWriter.get_Instance () [0x00000] in <filename unknown>:0\r\n  at BattleBotServer.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0\r\n[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for BattleBotServer.Helpers ---> System.NotSupportedException: Connector pintout Unknown is not supported\r\n  at Raspberry.IO.InterIntegratedCircuit.I2cDriver.GetBscBase (ProcessorPin sdaPin, ProcessorPin sclPin) [0x00000] in <filename unknown>:0\r\n  at Raspberry.IO.InterIntegratedCircuit.I2cDriver..ctor (ProcessorPin sdaPin, ProcessorPin sclPin) [0x00000] in <filename unknown>:0\r\n  at BattleBotServer.Helpers..cctor () [0x00000] in <filename unknown>:0\r\n  --- End of inner exception stack trace ---\r\n  at BattleBotServer.LogWriter.get_Instance () [0x00000] in <filename unknown>:0\r\n  at BattleBotServer.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0\r\n```"},"comment":{"url":"https://api.github.com/repos/raspberry-sharp/raspberry-sharp-io/issues/comments/221095424","html_url":"https://github.com/raspberry-sharp/raspberry-sharp-io/issues/56#issuecomment-221095424","issue_url":"https://api.github.com/repos/raspberry-sharp/raspberry-sharp-io/issues/56","id":221095424,"user":{"login":"OddmarDam","id":4441007,"avatar_url":"https://avatars.githubusercontent.com/u/4441007?v=3","gravatar_id":"","url":"https://api.github.com/users/OddmarDam","html_url":"https://github.com/OddmarDam","followers_url":"https://api.github.com/users/OddmarDam/followers","following_url":"https://api.github.com/users/OddmarDam/following{/other_user}","gists_url":"https://api.github.com/users/OddmarDam/gists{/gist_id}","starred_url":"https://api.github.com/users/OddmarDam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OddmarDam/subscriptions","organizations_url":"https://api.github.com/users/OddmarDam/orgs","repos_url":"https://api.github.com/users/OddmarDam/repos","events_url":"https://api.github.com/users/OddmarDam/events{/privacy}","received_events_url":"https://api.github.com/users/OddmarDam/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T21:02:57Z","updated_at":"2016-05-23T21:02:57Z","body":"Here is what i get when i test the I2C on a RPI3::\n\nUnhandled Exception:\nSystem.NotSupportedException: Connector pintout Unknown is not supported\n  at Raspberry.IO.InterIntegratedCircuit.I2cDriver.GetBscBase (ProcessorPin\nsdaPin, ProcessorPin sclPin) <0x74a5e610 + 0x001f4> in <filename unknown>:0\n  at Raspberry.IO.InterIntegratedCircuit.I2cDriver..ctor (ProcessorPin\nsdaPin, ProcessorPin sclPin) <0x74a5e268 + 0x0005b> in <filename unknown>:0\n  at Test.Components.Ssd1306.MainClass.Main (System.String[] args)\n<0x76abdf50 + 0x00047> in <filename unknown>:0\n[ERROR] FATAL UNHANDLED EXCEPTION: System.NotSupportedException: Connector\npintout Unknown is not supported\n  at Raspberry.IO.InterIntegratedCircuit.I2cDriver.GetBscBase (ProcessorPin\nsdaPin, ProcessorPin sclPin) <0x74a5e610 + 0x001f4> in <filename unknown>:0\n  at Raspberry.IO.InterIntegratedCircuit.I2cDriver..ctor (ProcessorPin\nsdaPin, ProcessorPin sclPin) <0x74a5e268 + 0x0005b> in <filename unknown>:0\n  at Test.Components.Ssd1306.MainClass.Main (System.String[] args)\n<0x76abdf50 + 0x00047> in <filename unknown>:0\n\n\nOn Sun, May 22, 2016 at 7:00 PM, Jason Snow <notifications@github.com>\nwrote:\n\n> I just had a deeper look at this. Looks like PinMapping has already been\n> updated to account for RPI 2 and RPI 3, however GpioConnectionSettings.cs\n> had not. I added a HACK into GpioConnectionSettings.cs that might\n> potentially fix the RPI 3 I2C issue. This isn't a long term fix, so if\n> someone can test it and get back to me I will gladly work on a more\n> permanent solution.\n>\n> You can find the fix/hack in my fork of raspberry-sharp-io\n> <https://github.com/jyksnw/raspberry-sharp-io/tree/rpi3_i2c>. Be sure to\n> checkout the rpi3_i2c branch after cloning the fork.\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/raspberry-sharp/raspberry-sharp-io/issues/56#issuecomment-220843335>\n>\n"}}
{"actor":{"display_login":"OddmarDam"}}