{"id":16283482,"url":"https://github.com/damiansuess/test.raspberrypinet","last_synced_at":"2026-05-20T10:01:32.253Z","repository":{"id":143243126,"uuid":"230481252","full_name":"DamianSuess/Test.RaspberryPiNet","owner":"DamianSuess","description":"Example of C# on a RaspberryPi and remote debugging","archived":false,"fork":false,"pushed_at":"2020-02-08T15:24:45.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T13:16:50.265Z","etag":null,"topics":["csharp","raspberry-pi-3","raspberrypi","remote-debugging","xeno-innovations","xenoinc"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/DamianSuess.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":"2019-12-27T17:00:12.000Z","updated_at":"2020-02-08T15:24:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"f99bc893-e557-4162-9680-6c1efa63334e","html_url":"https://github.com/DamianSuess/Test.RaspberryPiNet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DamianSuess/Test.RaspberryPiNet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DamianSuess%2FTest.RaspberryPiNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DamianSuess%2FTest.RaspberryPiNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DamianSuess%2FTest.RaspberryPiNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DamianSuess%2FTest.RaspberryPiNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DamianSuess","download_url":"https://codeload.github.com/DamianSuess/Test.RaspberryPiNet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DamianSuess%2FTest.RaspberryPiNet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264890087,"owners_count":23678833,"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":["csharp","raspberry-pi-3","raspberrypi","remote-debugging","xeno-innovations","xenoinc"],"created_at":"2024-10-10T19:13:33.142Z","updated_at":"2026-05-20T10:01:27.213Z","avatar_url":"https://github.com/DamianSuess.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Intro\nThis example uses C# for Raspberry Pi 3 and demonstrates remote debugging.\n\nFore note, all tests are performed using vs2019 (v16.4), RaspberryPi 3b v1.2 w/ Raspbian v9.\n\n## Linux - Launching the app\nTo launch your app using a clickable link on Desktop Linux.\n\nWe uploaded ours using [WinSCP](https://winscp.net/eng/downloads.php) portable app to a new folder called ``TestApps`` under ``/home/pi/Desktop``, and renamed the exe to ``test-pinet.exe`` to keep things simple.\n\nNext, we'll create the clicking file. Open a console window and navigate to our new folder. Now, type ``sudo nano TestPi.sh`` and input the following content\n\n```bash\n#!/bin/bash\nmono /home/pi/Desktop/TestApps/test-pinet.exe\n```\n\nNow give the ``TestPi.sh`` file executable rights\n\n```bash\nsudo chmod +x TestPi.sh\n```\n\nGive it a try by double clicking your file via the Desktop.\n\n## Raspberry Pi GPIO\n* https://elinux.org/RPi_Low-level_peripherals#General_Purpose_Input.2FOutput_.28GPIO.29\n\n### .NET Core IoT\nThe C# snip below can be found at the [.NET Core IoT samples](https://github.com/dotnet/iot/blob/master/samples/led-blink/README.md).\n\n**Requires:**\n* Red LED (1.8 - 2.2 Vf)\n* 100K resistor\n* GPIO pin 17 and GND.\n\n```cs\nint pin = 17;\nGpioController controller = new GpioController();\ncontroller.OpenPin(pin, PinMode.Output);\n\n// Blink the LED\nint lightTimeInMilliseconds = 1000;\nint dimTimeInMilliseconds = 200;\n\nwhile (true)\n{\n  Console.WriteLine($\"Light for {lightTimeInMilliseconds}ms\");\n  controller.Write(pin, PinValue.High);\n\n  Thread.Sleep(lightTimeInMilliseconds);\n  Console.WriteLine($\"Dim for {dimTimeInMilliseconds}ms\");\n\n  controller.Write(pin, PinValue.Low);\n  Thread.Sleep(dimTimeInMilliseconds);\n}\n```\n\n## Resources\n**Raspberry Pi GPIO**\n* .NET Core IoT [System.Device.Gpio](https://github.com/dotnet/iot) - 2019-12-22\n  * [Samples](https://github.com/dotnet/iot/blob/master/samples/README.md) for .NET Core 2.1 and 3.0.\n  * Supports Raspberry Pi 2B, 3, and 4 models (ARMv7/v8).\n  * Raspberry Pi Zero or Arduino is not supported at this time (2019-12-27)\n* [Raspberry-GPIO-Manager](https://github.com/AlexSartori/Raspberry-GPIO-Manager) - 2018-01-20\n* [RaspberryPi.Net](https://github.com/cypherkey/RaspberryPi.Net) - 2017-05-06\n* http://raspberrypi-aa.github.io/session2/led_control.html\n* https://www.hanselman.com/blog/InstallingTheNETCore2xSDKOnARaspberryPiAndBlinkingAnLEDWithSystemDeviceGpio.aspx\n\n\n**Remote Debugging:**\n* [Connect VS to remote Linux](https://docs.microsoft.com/en-us/cpp/linux/connect-to-your-remote-linux-computer?view=vs-2019)\n* [VSMonoDebugger](https://marketplace.visualstudio.com/items?itemName=GordianDotNet.VSMonoDebugger0d62)\n  * https://github.com/GordianDotNet/VSMonoDebugger\n  * Tested uploading EXE works\n  * Tested remote debugging and it fails out of the box.\n* [Mono Remote Debugger](https://marketplace.visualstudio.com/items?itemName=Bongho.MonoRemoteDebugger)\n  * https://github.com/techl/MonoRemoteDebugger\n  * [MSDN Thread](https://social.msdn.microsoft.com/Forums/vstudio/en-US/0654a5e4-42ba-4ebd-95b0-1a729d41f4d3/debugging-mono-apps-from-visual-studio?forum=vsdebug)\n* MonoDevelop Remote Debugger\n  * https://addins.monodevelop.com/Project/Index/205\n  * https://github.com/logicethos/SSHDebugger\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamiansuess%2Ftest.raspberrypinet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamiansuess%2Ftest.raspberrypinet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamiansuess%2Ftest.raspberrypinet/lists"}