{"id":20452272,"url":"https://github.com/zakharb/legocity","last_synced_at":"2025-04-13T03:14:43.976Z","repository":{"id":142499997,"uuid":"473380874","full_name":"zakharb/LegoCity","owner":"zakharb","description":"Build LEGO City with ESP32","archived":false,"fork":false,"pushed_at":"2024-06-15T03:25:00.000Z","size":1057,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T03:14:37.932Z","etag":null,"topics":["ampy","esp32","firmware","lego","micropython"],"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/zakharb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-23T22:40:39.000Z","updated_at":"2025-02-19T16:06:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"286ae922-463e-4bf2-ae25-bf59b678b5d7","html_url":"https://github.com/zakharb/LegoCity","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/zakharb%2FLegoCity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakharb%2FLegoCity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakharb%2FLegoCity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakharb%2FLegoCity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zakharb","download_url":"https://codeload.github.com/zakharb/LegoCity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657919,"owners_count":21140846,"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":["ampy","esp32","firmware","lego","micropython"],"created_at":"2024-11-15T11:08:49.524Z","updated_at":"2025-04-13T03:14:43.948Z","avatar_url":"https://github.com/zakharb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.linkedin.com/in/zakharb/awsconnect\"\u003e\n  \u003cimg src=\"img/logo.png\" alt=\"Legorama Font #FFCE00\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\n\u003ca href=\"https://git.io/typing-svg\"\u003e\n  \u003cimg src=\"https://readme-typing-svg.herokuapp.com?font=Fira+Code\u0026weight=600\u0026pause=1000\u0026color=FFCE00\u0026center=true\u0026width=435\u0026lines=Build+your+Lego+City;Micropython+ESP32\" alt=\"description\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/version-1.1-yellow\" height=\"20\"/\u003e\n  \u003cimg src=\"https://img.shields.io/badge/python-3.11-yellow\" height=\"20\"/\u003e\n  \u003cimg src=\"https://img.shields.io/badge/ampy-1.1-yellow\" height=\"20\"/\u003e\n\u003c/p\u003e\n\n\n## :yellow_square: Getting Started\n\n[Legocity](https://github.com/zakharb/legocity) is micropython library to work with borads like ESP32     \n\n### Installing tools\n\nInstall via `pip`\n```sh\npython3 -m pip pip install adafruit-ampy\npython3 -m pip pip install esptool\n\nexport AMPY_PORT=/dev/ttyUSB0 \n```\n\n## :yellow_square: Firmware  \n\nDownload [firmware](https://micropython.org/download/esp32/)\n```sh\npython3 -m esptool --port /dev/ttyUSB0 erase_flash\npython3 -m esptool --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 esp32-20220117-v1.18.bin\n```\n\n## :yellow_square: Configure boot, wlan\n\nboot.py file listing\n```sh\n~/.local/bin/ampy put boot.py\n```\n\nwifi.py file listing\n```sh\nimport network\nwlan = network.WLAN(network.STA_IF)\nwlan.isconnected()\nwlan.active(True)\nwlan.ifconfig()\nwlan.scan()\nwlan.connect('lego_city', '')\n```\n\nGet list files on board\n```sh\n~/.local/bin/ampy ls\n```\n\nCopy files to board  \n```sh\n~/.local/bin/ampy put boot.py wifi.py main.py\n```\n\n## :yellow_square: Versioning\n\nUsing [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/zakharb/awsconnect/tags). \n\n## :yellow_square: Authors\n\n* **Zakhar Bengart** - *Initial work* - [Ze](https://github.com/zakharb)\n\nSee also the list of [contributors](https://github.com/zakharb/awsconnect/contributors) who participated in this project.\n\n## :yellow_square: License\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation - see the [LICENSE](LICENSE) file for details  \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakharb%2Flegocity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzakharb%2Flegocity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakharb%2Flegocity/lists"}