{"id":45520423,"url":"https://github.com/microsoft/pxt-microturtle","last_synced_at":"2026-02-22T22:20:03.332Z","repository":{"id":65976087,"uuid":"113539526","full_name":"microsoft/pxt-microturtle","owner":"microsoft","description":"A LOGO turtle library for micro:bit in MakeCode","archived":false,"fork":false,"pushed_at":"2024-08-09T23:32:43.000Z","size":72,"stargazers_count":5,"open_issues_count":3,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-02-14T09:30:35.114Z","etag":null,"topics":["micro","microbit"],"latest_commit_sha":null,"homepage":"https://makecode.microbit.org/pkg/microsoft/pxt-microturtle","language":"TypeScript","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/microsoft.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-08T06:21:17.000Z","updated_at":"2025-04-04T02:04:20.000Z","dependencies_parsed_at":"2023-02-19T18:45:17.832Z","dependency_job_id":null,"html_url":"https://github.com/microsoft/pxt-microturtle","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/microsoft/pxt-microturtle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-microturtle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-microturtle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-microturtle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-microturtle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/pxt-microturtle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-microturtle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29721840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T15:10:41.462Z","status":"ssl_error","status_checked_at":"2026-02-22T15:10:04.636Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["micro","microbit"],"created_at":"2026-02-22T22:20:02.570Z","updated_at":"2026-02-22T22:20:03.241Z","avatar_url":"https://github.com/microsoft.png","language":"TypeScript","readme":"# micro turtle [![Build Status](https://travis-ci.org/Microsoft/pxt-microturtle.svg?branch=master)](https://travis-ci.org/Microsoft/pxt-microturtle)\n\nA LOGO-like turtle library for the micro:bit in MakeCode.\n\n```blocks\nturtle.setPosition(0, 0)\nturtle.setSpeed(45)\nbasic.forever(() =\u003e {\n    turtle.forward(4)\n    turtle.turnLeft()\n})\n```\n\nThe turtle is a single pixel moving on the micro:bit screen.\nIt starts in the center at ``2,2``, pointing up.\n\n## Reference\n\n### forward #turtle-forward\n\nMoves the turtle forward by the given amount of steps. If the turtle goes out of the screen, it wraps around.\n\n```sig\nturtle.forward(1)\n```\n\n### back #turtle-back\n\nMoves the turtle backward by the given amount of steps. If the turtle goes out of the screen, it wraps around.\n\n```sig\nturtle.back(1)\n```\n\n## turn left #turtle-turnleft\n\nTurns the turtle in a clockwise fashion by 90 degrees.\n\n```sig\nturtle.turnLeft()\n```\n\n\n## turn right #turtle-turnright\n\nTurns the turtle in a counter-clockwise fashion by 90 degrees.\n\n```sig\nturtle.turnRight()\n```\n\n## pen #turtle-pen\n\nSets the drawing mode of the turtle.\n\n* ``up``, the turtle leaves no trail (this is the default)\n* ``down``, the turtle paints the LEDs\n\n```sig\nturtle.pen(TurtlePenMode.Down)\n```\n\n## set position #turtle-setposition\n\nMoves the turtle to a particular location\n\n```sig\nturtle.setPosition(1,1)\n```\n\n## home #turtle-home\n\nMoves the turtle to the center of the screen, pointing up.\n\n```sig\nturtle.home()\n```\n\n## set speed #turtle-setspeed\n\nDetermines how many steps per second a trutle may take.\n\n```sig\nturtle.setSpeed(50)\n```\n\n## License\n\nMIT\n\n## Supported targets\n\n* for PXT/microbit\n* for PXT/calliope\n\n(The metadata above is needed for package search.)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fpxt-microturtle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fpxt-microturtle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fpxt-microturtle/lists"}