Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mbenford/dreamcheeky-big-red-button-dotnet
.NET class for Dream Cheeky's Big Red Button toy
https://github.com/mbenford/dreamcheeky-big-red-button-dotnet
Last synced: 7 days ago
JSON representation
.NET class for Dream Cheeky's Big Red Button toy
- Host: GitHub
- URL: https://github.com/mbenford/dreamcheeky-big-red-button-dotnet
- Owner: mbenford
- License: mit
- Created: 2014-08-25T05:36:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-27T03:34:46.000Z (over 10 years ago)
- Last Synced: 2024-12-04T11:16:19.596Z (about 1 month ago)
- Language: C#
- Homepage:
- Size: 613 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dream Cheeky's Big Red Button class for .NET
## Installing
To install DreamCheeky.BigRedButton package, run the following command in the Package Manager Console inside Visual Studio:
Install-Package DreamCheeky.BigRedButton
The package currently depends on [hidlibrary](https://www.nuget.org/packages/hidlibrary/) (≥ 3.2.28).## Usage
```csharp
using DreamCheeky;class Program
{
static void Main()
{
using (var bigRedButton = new BigRedButton())
{
bigRedButton.LidClosed += (sender, args) => Console.WriteLine("Lid closed");
bigRedButton.LidOpen += (sender, args) => Console.WriteLine("Lid open");
bigRedButton.ButtonPressed += (sender, args) => Console.WriteLine("Button pressed");bigRedButton.Start();
Console.WriteLine("Press ENTER to exit");
Console.ReadLine();
}
}
}
```