{"action":"created","issue":{"url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0/issues/230","repository_url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0","labels_url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0/issues/230/labels{/name}","comments_url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0/issues/230/comments","events_url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0/issues/230/events","html_url":"https://github.com/felis/USB_Host_Shield_2.0/issues/230","id":150103389,"number":230,"title":"Merged PS3BT and PS3USB example program","user":{"login":"bbf3","id":18582535,"avatar_url":"https://avatars.githubusercontent.com/u/18582535?v=3","gravatar_id":"","url":"https://api.github.com/users/bbf3","html_url":"https://github.com/bbf3","followers_url":"https://api.github.com/users/bbf3/followers","following_url":"https://api.github.com/users/bbf3/following{/other_user}","gists_url":"https://api.github.com/users/bbf3/gists{/gist_id}","starred_url":"https://api.github.com/users/bbf3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbf3/subscriptions","organizations_url":"https://api.github.com/users/bbf3/orgs","repos_url":"https://api.github.com/users/bbf3/repos","events_url":"https://api.github.com/users/bbf3/events{/privacy}","received_events_url":"https://api.github.com/users/bbf3/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-21T15:10:51Z","updated_at":"2016-04-28T15:49:37Z","closed_at":"2016-04-21T18:06:17Z","body":"I don't know if this will help anyone, but I merged the PS3BT and PS3USB examples so that one program can run the controller wired and wirelessly. It's a bit long (I'm pretty new to Arduino), but it works (other than the USB-only LED control issue previously mentioned). This is hot swappable by just unplugging your bluetooth dongle and plugging in the controller with a usb cord. It also has commented sections for code to execute when there's no controller and when either controller is first plugged in. The status output to the serial monitor (when the SELECT button is pressed) indicates that the controller does charge through the usb host shield 2.0. I removed the Move controller sections for clarity.\r\n\r\nI hope this will help someone, and I'm sure someone knows a better way to do it than I did.\r\n\r\nThanks,\r\nBlake\r\n\r\n [PS3-merged_example.zip](https://github.com/felis/USB_Host_Shield_2.0/files/230179/PS3-merged_example.zip)"},"comment":{"url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0/issues/comments/215473840","html_url":"https://github.com/felis/USB_Host_Shield_2.0/issues/230#issuecomment-215473840","issue_url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0/issues/230","id":215473840,"user":{"login":"d33pend","id":18685103,"avatar_url":"https://avatars.githubusercontent.com/u/18685103?v=3","gravatar_id":"","url":"https://api.github.com/users/d33pend","html_url":"https://github.com/d33pend","followers_url":"https://api.github.com/users/d33pend/followers","following_url":"https://api.github.com/users/d33pend/following{/other_user}","gists_url":"https://api.github.com/users/d33pend/gists{/gist_id}","starred_url":"https://api.github.com/users/d33pend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d33pend/subscriptions","organizations_url":"https://api.github.com/users/d33pend/orgs","repos_url":"https://api.github.com/users/d33pend/repos","events_url":"https://api.github.com/users/d33pend/events{/privacy}","received_events_url":"https://api.github.com/users/d33pend/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T15:49:37Z","updated_at":"2016-04-28T15:49:37Z","body":"@Lauszus I tried to read all the four files that you kindy provide me and i try to understand something but unfortunately without much success, it was like reading Japanese as i'm just at the start with Arduino :(\r\n\r\n> I was planning to do that for all drivers, but I simply don't have the time.\r\n\r\nYeah, because i think it's the best thing for all to have both possibility on the same file to use the controller plugged and just remove the usb cable and use it with Bluetooth instead to have to edit/upload the files just to use one of them, so please when you'll have a little time take a look at it, thank you very much for now!"}}