{"id":14963386,"url":"https://github.com/littleguest/xiaofang","last_synced_at":"2025-09-03T08:08:17.313Z","repository":{"id":223073803,"uuid":"700409140","full_name":"LittleGuest/xiaofang","owner":"LittleGuest","description":" \"小方\"复刻，使用Rust编写，运行在esp32c3上，采用ws2812显示，集成沙漏、骰子、卦象、贪吃蛇、迷宫等游戏","archived":false,"fork":false,"pushed_at":"2024-11-18T14:17:58.000Z","size":18279,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T04:15:29.470Z","etag":null,"topics":["bagua","esp32","maze","rust","snake","sokoban","timers","ws2812"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/LittleGuest.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":"2023-10-04T14:42:06.000Z","updated_at":"2025-02-08T14:31:39.000Z","dependencies_parsed_at":"2024-02-18T05:20:45.198Z","dependency_job_id":"40c521fc-801d-4642-a192-363783eada03","html_url":"https://github.com/LittleGuest/xiaofang","commit_stats":{"total_commits":41,"total_committers":2,"mean_commits":20.5,"dds":"0.024390243902439046","last_synced_commit":"736943b10ba032b8ec78c1258c6373572930c701"},"previous_names":["littleguest/xiaofang"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LittleGuest/xiaofang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleGuest%2Fxiaofang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleGuest%2Fxiaofang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleGuest%2Fxiaofang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleGuest%2Fxiaofang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LittleGuest","download_url":"https://codeload.github.com/LittleGuest/xiaofang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleGuest%2Fxiaofang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273410256,"owners_count":25100455,"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-09-03T02:00:09.631Z","response_time":76,"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":["bagua","esp32","maze","rust","snake","sokoban","timers","ws2812"],"created_at":"2024-09-24T13:31:26.112Z","updated_at":"2025-09-03T08:08:17.280Z","avatar_url":"https://github.com/LittleGuest.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 原创作品\n\n[复古像素风 桌面电子沙漏，Arduino（atmega328p+mpu6050）](https://www.bilibili.com/video/BV1QP411Y7K3/?share_source=copy_web\u0026vd_source=41da856c543dfcc8802471a83af59251)\n\n## 复刻\n\n\"小方\"复刻，使用 Rust 编写，运行在 esp32c3 上，采用 ws2812 显示，集成沙漏、骰子、卦象、贪吃蛇、迷宫等游戏\n\n## 单机游戏\n\n- [x] 沙漏\n- [x] 骰子\n- [x] 卦象\n- [x] 贪吃蛇\n- [x] 迷宫\n- [ ] 是方块人就下一百层\n- [x] 推箱子\n- [ ] 躲避方块\n- [ ] ...\n\n## 联机游戏\n\n- [ ] 对打球\n- [ ] ...\n\n## 接线\n\n### MPU6050\n\n| MPU6050 | MCU   |         |\n| ------- | ----- | ------- |\n| VCC     | 3.3V  |         |\n| GND     | GND   |         |\n| SCL     | GPIO5 | I2C_SCL |\n| SDA     | GPIO4 | I2C_SDA |\n\n### 无缘蜂鸣器\n\n| 陶瓷片无缘蜂鸣器 | MCU    |\n| ---------------- | ------ |\n| V+               | GPIO11 |\n| V-               | GND    |\n\n### WS2812\n\n| WS2812 | MCU   |          |\n| ------ | ----- | -------- |\n| IN     | GPIO3 | SPI_MOSI |\n| V+     | 3.3V  |          |\n| V-     | GND   |          |\n\n### 麦克风\n\n| -   | MCU   |      |\n| --- | ----- | ---- |\n| A0  | GPIO0 | ADC0 |\n| V+  | 5V    |      |\n| GND | GND   |      |\n| D0  | -     |      |\n\n## wokwi仿真\n\n```bash\ncargo install wokwi-server\n\ncargo b -r\n\nwokwi-server --chip esp32c3 --id 413175440833513473 target/riscv32imc-unknown-none-elf/release/cube\n```\n\n## 三方库\n\n## 硬件相关\n\n第一次设计画PCB，暂时不知道有啥问题，未验证。\n\n## 参考链接\n\n- https://blog.theembeddedrustacean.com/esp32-embedded-rust-at-the-hal-pwm-buzzer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittleguest%2Fxiaofang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flittleguest%2Fxiaofang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittleguest%2Fxiaofang/lists"}