{"id":32363275,"url":"https://github.com/slaveoftime/fun.lego.spike","last_synced_at":"2026-06-19T16:32:32.480Z","repository":{"id":199830378,"uuid":"703845518","full_name":"slaveOftime/Fun.LEGO.Spike","owner":"slaveOftime","description":"csharp/dotnet wrapper for LEGO spike 3 hub repl","archived":false,"fork":false,"pushed_at":"2023-10-22T01:12:06.000Z","size":242,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T19:11:43.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/slaveOftime.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-12T03:13:48.000Z","updated_at":"2023-10-12T03:14:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f36e8ce-d843-4ddc-a3a0-fca9147759c3","html_url":"https://github.com/slaveOftime/Fun.LEGO.Spike","commit_stats":null,"previous_names":["slaveoftime/fun.lego.spike"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/slaveOftime/Fun.LEGO.Spike","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveOftime%2FFun.LEGO.Spike","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveOftime%2FFun.LEGO.Spike/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveOftime%2FFun.LEGO.Spike/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveOftime%2FFun.LEGO.Spike/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slaveOftime","download_url":"https://codeload.github.com/slaveOftime/Fun.LEGO.Spike/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveOftime%2FFun.LEGO.Spike/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34539735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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":[],"created_at":"2025-10-24T16:33:06.027Z","updated_at":"2026-06-19T16:32:32.445Z","avatar_url":"https://github.com/slaveOftime.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fun.LEGO.Spike [![Nuget](https://img.shields.io/nuget/vpre/Fun.LEGO.Spike)](https://www.nuget.org/packages/Fun.LEGO.Spike)\n\nCurrently this library will use USB to connect to LEGO Spike hub 3 to interact it's python REPL. And it is just a dumb csharp wrapper to send python code to REPL and wait printed result from serial port.\n\nSupported wrapper:\n\n- LightMatrix\n- ColorSensor\n- Motor\n- MotorPair\n\n## How to use it\n\n```csharp\nusing var services = new ServiceCollection()\n\t.AddLogging()\n\t.Configure\u003cHubReplOptions\u003e(options =\u003e options.PortName = \"COM5\")\n\t.AddSingleton\u003cIHubRepl, HubRepl\u003e()\n\t.BuildServiceProvider();\n\nvar hub = services.GetRequiredService\u003cIHubRepl\u003e();\nawait hub.Connect(autoRetry: true);\n\nvar lightMatrix = new LightMatrix(hub);\nawait lightMatrix.SetOrientation(LightMatrixOrientation.LEFT);\nawait lightMatrix.Show(LightMatrixImage.IMAGE_BUTTERFLY);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaveoftime%2Ffun.lego.spike","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslaveoftime%2Ffun.lego.spike","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaveoftime%2Ffun.lego.spike/lists"}