Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
voelpade authored and voelpa committed Jul 22, 2016
0 parents commit c104700
Show file tree
Hide file tree
Showing 16 changed files with 913 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/

# Visual Studio 2015 cache/options directory
.vs/
project.lock.json

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets

# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 Senic GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
40 changes: 40 additions & 0 deletions NuimoSDK.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NuimoSDK", "NuimoSDK\NuimoSDK.csproj", "{E1EDA363-0B66-42DC-960F-55941ED96FA4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|ARM.ActiveCfg = Debug|ARM
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|ARM.Build.0 = Debug|ARM
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|x64.ActiveCfg = Debug|x64
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|x64.Build.0 = Debug|x64
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|x86.ActiveCfg = Debug|x86
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|x86.Build.0 = Debug|x86
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|Any CPU.Build.0 = Release|Any CPU
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|ARM.ActiveCfg = Release|ARM
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|ARM.Build.0 = Release|ARM
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|x64.ActiveCfg = Release|x64
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|x64.Build.0 = Release|x64
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|x86.ActiveCfg = Release|x86
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
39 changes: 39 additions & 0 deletions NuimoSDK/INuimoController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using System;
using System.Threading.Tasks;

namespace NuimoSDK
{
public interface INuimoController
{
event Action<NuimoConnectionState> ConnectionStateChanged;
event Action<string> FirmwareVersionRead;
event Action LedMatrixDisplayed;
event Action<int> BatteryPercentageChanged;
event Action<NuimoGestureEvent> GestureEventOccurred;

string Identifier { get;}
NuimoConnectionState ConnectionState { get;}
float MatrixBrightness { get; set; }

Task<bool> ConnectAsync();
Task<bool> DisconnectAsync();

void DisplayLedMatrixAsync(NuimoLedMatrix matrix, double displayInterval = 2.0, int options = 0);
}


public enum NuimoConnectionState
{
Disconnected,
Connecting,
Connected,
Disconnecting,
}


public enum NuimoLedMatrixWriteOption
{
WithFadeTransition = 1,
WithoutWriteResponse = 2
}
}
Binary file added NuimoSDK/NuGet.exe
Binary file not shown.
11 changes: 11 additions & 0 deletions NuimoSDK/NuGetPush.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo off
if [%1]==[] goto usage

del *.nupkg

nuget pack NuimoSDK.csproj -Prop Configuration=Release
nuget setApiKey %1 -Source https://www.nuget.org/api/v2/package
nuget push *.nupkg -Source https://www.nuget.org/api/v2/package

:usage
@echo Usage: %0 [API key]
Loading

0 comments on commit c104700

Please sign in to comment.