{"id":22360455,"url":"https://github.com/nobonobo/joycon","last_synced_at":"2025-07-30T13:31:57.739Z","repository":{"id":57503651,"uuid":"113922784","full_name":"nobonobo/joycon","owner":"nobonobo","description":"Device access library for Joycon(Nintendo Switch)","archived":false,"fork":false,"pushed_at":"2018-03-20T09:20:31.000Z","size":32,"stargazers_count":64,"open_issues_count":4,"forks_count":15,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-06T09:03:01.098Z","etag":null,"topics":["bluetooth","controllers","go","joycon","nintendo-switch"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nobonobo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-12T00:14:49.000Z","updated_at":"2025-03-14T14:58:02.000Z","dependencies_parsed_at":"2022-08-29T20:21:50.412Z","dependency_job_id":null,"html_url":"https://github.com/nobonobo/joycon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nobonobo/joycon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobonobo%2Fjoycon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobonobo%2Fjoycon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobonobo%2Fjoycon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobonobo%2Fjoycon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nobonobo","download_url":"https://codeload.github.com/nobonobo/joycon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobonobo%2Fjoycon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267875497,"owners_count":24158780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bluetooth","controllers","go","joycon","nintendo-switch"],"created_at":"2024-12-04T16:16:44.264Z","updated_at":"2025-07-30T13:31:57.476Z","avatar_url":"https://github.com/nobonobo.png","language":"Go","readme":"# joycon\n\nNintendo Switch's Joycon Device access library(via bluetooth only)\n\n## Reverse engineering info\n\nhttps://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering\n\n## Feature\n\n- supported deveces: Joycon(L/R), Pro-Controller\n- get: Digial Buttons state\n- get: Analog Sticks state\n- set: Raw Vibration data\n- calibration support for analog stick.\n\n## Dependencies\n\n- go get -u github.com/flynn/hid\n- go get -u github.com/shibukawa/gotomation `optional`\n\n## Usage\n\nIn advance, you perform Bluetooth pairing for Joycon.\n(Joycon must be connected before execute below code.)\n\nNote: When Joycon is fitted to the main body, BT sessions are overwritten, so when you connect to PC later, you need to redo pairing.\n\n```go\npackage main\n\nimport \"github.com/nobonobo/joycon\"\n\nfunc main() {\n    devices, err := joycon.Search(joycon.JoyConL)\n    if err != nil {\n        log.Fatalln(err)\n    }\n    jc, err := joycon.NewJoycon(devices[0].Path, false)\n    if err != nil {\n        log.Fatalln(err)\n    }\n    s := \u003c-jc.State()\n    fmt.Println(s.Buttons)  // Button bits\n    fmt.Println(s.LeftAdj)  // Left Analog Stick State\n    fmt.Println(s.RightAdj) // Right Analog Stick State\n    a := \u003c-jc.Sensor()\n    fmt.Println(a.Accel) // Acceleration Sensor State\n    fmt.Println(a.Gyro)  // Gyro Sensor State\n\n    jc.Close()\n}\n```\n## TODO\n\n- [ ] Deadzone parameter read from SPI memory. \n- [x] Rich Vibration support.\n- [ ] Set Player LED.\n- [ ] Set HomeButton LED.\n- [ ] Low power mode support.\n- [ ] IR sensor capture.(wip)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnobonobo%2Fjoycon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnobonobo%2Fjoycon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnobonobo%2Fjoycon/lists"}