{"id":17880383,"url":"https://github.com/brainstorm/bbtrackball-rs","last_synced_at":"2025-03-22T07:31:31.418Z","repository":{"id":104041459,"uuid":"274619195","full_name":"brainstorm/bbtrackball-rs","owner":"brainstorm","description":"Experimenting with Blackberry trackball for keyboard ergonomics","archived":false,"fork":false,"pushed_at":"2023-10-29T05:42:27.000Z","size":1002,"stargazers_count":27,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T09:21:35.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brainstorm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["brainstorm"]}},"created_at":"2020-06-24T08:42:08.000Z","updated_at":"2024-12-26T03:41:22.000Z","dependencies_parsed_at":"2024-10-28T12:30:21.674Z","dependency_job_id":"bb487fbf-9830-44aa-bff9-da5853b62a76","html_url":"https://github.com/brainstorm/bbtrackball-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstorm%2Fbbtrackball-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstorm%2Fbbtrackball-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstorm%2Fbbtrackball-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstorm%2Fbbtrackball-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brainstorm","download_url":"https://codeload.github.com/brainstorm/bbtrackball-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244925174,"owners_count":20532873,"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","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":[],"created_at":"2024-10-28T12:14:19.970Z","updated_at":"2025-03-22T07:31:30.856Z","avatar_url":"https://github.com/brainstorm.png","language":"Rust","funding_links":["https://github.com/sponsors/brainstorm"],"categories":[],"sub_categories":[],"readme":"# :mouse: Blackberry rusty mouse\n\nThe purpose of this project is to build a [blackberry-trackball mouse][bb_trackball] and glue it to the middle of [an (allegedly) ergonomic keyboard][microsoft_natural_keyboard_4000]... **in Rust Embedded**, for the [STM32F042][stm32f042] :)\n\n![dev_board](img/dev_board.jpg)\n\nThis came about [from twitter idea to board, then to Rust Embedded](https://twitter.com/braincode/status/1275406584714104833). The code is based on [RTIC][rtic] rust-embedded framework (formerly known as RTFM). It exclusively uses interrupts *and* [also works on OSX, not only Linux][osx_not_working] (wink wink, nudge nudge, [James][jamesmunns] ;P).\n\n## :rocket: Future improvements shall you take this code with you\n\n* DPI tweaking to have a better trackball accuracy or speed/stepping.\n* [Button debouncer][debouncer].\n* Remove one of the buttons of the \u003cacronym title=\"Printed Circuit Board\"\u003ePCB\u003c/acronym\u003e, since it conflicts with one of the trackball GPIOs... oops, hardware blopper ;)\n* Add acceleration [like @LSChyi did][add_accel]?\n* Perhaps a clever (optical) system to make this experiment actually practical and useful :P\n* On OSX the mouse works fine. **On GNU/Linux systems, the mouse might stop responding after ~30 seconds of use**. [This could be related to the Linux USB autosuspend subsystem.](https://askubuntu.com/questions/185274/how-can-i-disable-usb-autosuspend-for-a-specific-device). Try to fix that from the firmware so that it works everywhere?\n* If enough people show interest and [**choose to sponsor me**][gh_sponsor_1], I would love to look at how to:\n\t1. Understand the flash process of the [Beken 3231][beken3231].\n\t2. Implement an LLVM backend for the [ARM968E-S][ARM968E-S] and have `rustc` working with it.\n\t3. Goal: **have a sub-$1 bluetooth IC that potentially does all we need and more** plus learn to [implement an LLVM backend from scratch][llvm_cpu0]. Also provide [**a way to upcycle bluetooth hardware, keeping it away from the dumpster.**][old_beken_hardware]\n* ~~[Write a simplified RTIC example to return the favour to that amazing rust-embedded community][rtic_hid_example]~~: [Done][rtic_pr].\n\n## :clap: Special thanks to\n\n[@joshajohnson][joshajohnson]\n[@mvirkkunen][lumpio]\n[@therealprof][therealprof]\n[@jamesmunns][jamesmunns]\n[@TeXitoi][texitoi]\n[@TheZoq2][thezoq2]\n\nAnd all the folks from the [RTIC matrix.org community][rtic_matrix] for patiently guiding and helping me in this experiment.\n\n[bb_trackball]: https://os.mbed.com/users/AdamGreen/notebook/blackberrytrackballmouse/\n[joshajohnson]: https://github.com/joshajohnson\n[lumpio]: https://github.com/mvirkkunen/\n[therealprof]: https://github.com/therealprof/\n[rtic]: https://rtic.rs/\n[jamesmunns]: https://github.com/jamesmunns\n[osx_not_working]: https://github.com/jamesmunns/OtterPill-rs/commit/8e68fbd5bb1161d8131a99d98c90c3e949f49ec1\n[rtic_hid_example]: https://github.com/rtic-rs/rtic-examples/issues/10#issuecomment-677464683\n[add_accel]: https://github.com/LSChyi/blackberry-mini-trackball\n[debouncer]: https://crates.io/crates/unflappable\n[microsoft_natural_keyboard_4000]: https://www.microsoft.com/accessories/en-us/products/keyboards/natural-ergonomic-keyboard-4000/b2m-00012\n[stm32f042]: https://www.st.com/en/microcontrollers-microprocessors/stm32f0-series.html\n[rtic_pr]: https://github.com/rtic-rs/rtic-examples/pull/12\n[gh_sponsor_1]: https://github.com/login?return_to=%2Fsponsors%2Fbrainstorm%2Fsponsorships%3Ftier_id%3D27561\n[mitxela]: https://mitxela.com/forum/topic/beken-bk3231\n[ARM968E-S]: https://static.docs.arm.com/ddi0311/d/DDI0311.pdf\n[beken3231]: https://pdfhost.io/v/3r1I3HggE_BK3231_Bluetooth_HID_SoCpdf.pdf\n[llvm_cpu0]: http://jonathan2251.github.io/lbd/TutorialLLVMBackendCpu0.pdf\n[texitoi]: https://github.com/TeXitoi\n[thezoq2]: https://gitlab.com/TheZoq2/hotas\n[old_beken_hardware]: https://mitxela.com/forum/topic/mocute-051-bluetooth-gamepad-bk3231-change-hid-profile-from-keyboard-gamepad\n[rtic_matrix]: https://matrix.to/#/#rtic:matrix.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainstorm%2Fbbtrackball-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrainstorm%2Fbbtrackball-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainstorm%2Fbbtrackball-rs/lists"}