To write code for Johnny-Five in C#, you will need to use the Johnny-Five API for .NET framework which is a .NET adaptation of the original Johnny-Five API for JavaScript. The .NET version of Johnny-Five is available on NuGet, which is the package manager for .NET framework.
Here's how to write Johnny-Five code in C#:
First, create a new .NET project in your preferred C# IDE.
Install the Johnny-Five NuGet package by opening the Package Manager Console and typing the following command:
31 chars2 lines
main.cs18 chars2 lines
main.cs31 chars2 lines
main.cs312 chars5 lines
main.cs604 chars14 lines
Note that the above code is just an example and you can use any of the sensors and actuators supported by the Johnny-Five API in your own projects.
gistlibby LogSnag