{"id":33145507,"url":"https://github.com/oivron/bitbotxl","last_synced_at":"2025-11-20T07:01:34.329Z","repository":{"id":57415343,"uuid":"267300764","full_name":"oivron/bitbotxl","owner":"oivron","description":"A Python module for the 4tronix Bit:bot XL.","archived":false,"fork":false,"pushed_at":"2020-06-02T06:44:38.000Z","size":50,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-27T08:27:36.686Z","etag":null,"topics":["python","python-stubs"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oivron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-27T11:26:38.000Z","updated_at":"2025-08-28T03:35:10.000Z","dependencies_parsed_at":"2022-09-02T11:51:02.895Z","dependency_job_id":null,"html_url":"https://github.com/oivron/bitbotxl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oivron/bitbotxl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oivron%2Fbitbotxl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oivron%2Fbitbotxl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oivron%2Fbitbotxl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oivron%2Fbitbotxl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oivron","download_url":"https://codeload.github.com/oivron/bitbotxl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oivron%2Fbitbotxl/sbom","scorecard":{"id":703740,"data":{"date":"2025-08-11","repo":{"name":"github.com/oivron/bitbotxl","commit":"af4fefbb32ef5dda0a922bb000e4e2e04d4375ad"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":8,"reason":"binaries present in source code","details":["Warn: binary detected: dist/bitbotxl-0.0.1-py3-none-any.whl:1","Warn: binary detected: dist/bitbotxl-0.0.2-py3-none-any.whl:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-22T05:52:06.211Z","repository_id":57415343,"created_at":"2025-08-22T05:52:06.212Z","updated_at":"2025-08-22T05:52:06.212Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285389437,"owners_count":27163377,"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-11-20T02:00:05.334Z","response_time":54,"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":["python","python-stubs"],"created_at":"2025-11-15T13:00:33.624Z","updated_at":"2025-11-20T07:01:34.323Z","avatar_url":"https://github.com/oivron.png","language":"Python","readme":"# bitbotxl\n\nA Python module for the 4tronix Bit:bot XL.\n\nYou might use this with the Visual Studio Code extension found at [https://github.com/oivron/microbit-extension-vscode](https://github.com/oivron/microbit-extension-vscode). The extension is available from [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/).\n\n## Installation\n```pip install bitbotxl```\n\n## Usage\nSee documentation and examples for the Bit:bot XL below.\n\nSee [micro:bit Micropython API](https://microbit-micropython.readthedocs.io/en/latest/microbit_micropython_api.html) for a complete documentation on how to use the micro:bit.\n\n### Import\nTo use this module in your Python script:\n```\nfrom bitbot import *\n```\n\n### Bit:bot XL documentation/API\n```\n# Set left/right bias to match motors.\n# Direction: LEFT or RIGHT.\n# Bias in %.\nbias(direction, percent)\n```\n\n```\n# Move robot forward or reverse at speed.\n# Direction: FORWARD or REVERSE.\n# Speed in %.\ngo(direction, speed)\n```\n\n```\n# Move robot forward or reverse at speed for milliseconds.\n# Direction: FORWARD or REVERSE.\n# Speed in %.\n# Duration in milliseconds.\ngoms(direction, speed, duration)\n```\n\n```\n# Rotate robot left or right at speed.\n# Direction: LEFT or RIGHT.\n# Speed in %.\nspin(direction, speed)\n```\n\n```\n# Rotate robot left or right at speed for milliseconds.\n# Direction: LEFT or RIGHT.\n# Speed in %.\n# Duration in milliseconds.\nspinms(direction, speed, duration)\n```\n\n```\n# Sound a buzz for milliseconds.\n# Duration in milliseconds.\nbuzz(duration)\n```\n\n```\n# Read line sensor.\n# Directon: LEFT or RIGHT.\nlinesensor(direction)\n```\n\n```\n# Read ultrasonic distance sensor.\n# Returns distance in cm.\nsonar()\n```\n\n```\n# Stops the Bit:bot.\nstop()\n```\n\n## Examples\nSimple examples on how to use the line sensor and the ultrasonic distance sensor. You need to add additional code to create complete scripts.\n\nAdjust the arguments for speed and duration according to your own preferences.\n\n### Line sensor\n```\n# Let Bit:bot follow a dark line.\nif (bitbot.linesensor(RIGHT) == 1):\n    bitbot.spinms(RIGHT, 10, 1) # Adjusts direction. Arguments need to have very small values.\nelif (bitbot.linesensor(LEFT) == 1):\n    bitbot.spinms(LEFT, 10, 1) # Adjusts direction. Arguments need to have very small values.\nelse:\n    bitbot.go(FORWARD, 50)\n```\n\n```\n# Let Bit:bot drive between two dark lines.\nif (bitbot.linesensor(RIGHT) == 1):\n    bitbot.spinms(LEFT, 10, 1)\nelif (bitbot.linesensor(LEFT) == 1):\n    bitbot.spinms(RIGHT, 10, 1)\nelse:\n    bitbot.go(FORWARD, 50)\n```\n\n### Sonar\n```\n# Stop, reverse and spin the Bit:bot when it gets close to an object.\n# The sonar() method returns the distance to the nearest object in cm.\nbitbot.go(FORWARD, 50)\nif bitbot.sonar() \u003c 20:\n    bitbot.stop()\n    bitbot.goms(REVERSE, 50, 700)\n    bitbot.spinms(RIGHT, 50, 200)\n```\n","funding_links":[],"categories":["🐍 Python"],"sub_categories":["🐍 MicroPython Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foivron%2Fbitbotxl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foivron%2Fbitbotxl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foivron%2Fbitbotxl/lists"}