Skip to content

Commit c104700

Browse files
voelpadevoelpa
authored andcommitted
Initial commit
0 parents  commit c104700

16 files changed

Lines changed: 913 additions & 0 deletions

.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# User-specific files (MonoDevelop/Xamarin Studio)
11+
*.userprefs
12+
13+
# Build results
14+
[Dd]ebug/
15+
[Dd]ebugPublic/
16+
[Rr]elease/
17+
[Rr]eleases/
18+
x64/
19+
x86/
20+
bld/
21+
[Bb]in/
22+
[Oo]bj/
23+
[Ll]og/
24+
25+
# Visual Studio 2015 cache/options directory
26+
.vs/
27+
project.lock.json
28+
29+
# ReSharper is a .NET coding add-in
30+
_ReSharper*/
31+
*.[Rr]e[Ss]harper
32+
*.DotSettings.user
33+
34+
# NuGet Packages
35+
*.nupkg
36+
# The packages folder can be ignored because of Package Restore
37+
**/packages/*
38+
# except build/, which is used as an MSBuild target.
39+
!**/packages/build/
40+
# Uncomment if necessary however generally it will be regenerated when needed
41+
#!**/packages/repositories.config
42+
# NuGet v3's project.json files produces more ignoreable files
43+
*.nuget.props
44+
*.nuget.targets
45+
46+
# Visual Studio cache files
47+
# files ending in .cache can be ignored
48+
*.[Cc]ache
49+
# but keep track of directories ending in .cache
50+
!*.[Cc]ache/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Senic GmbH
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

NuimoSDK.sln

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25123.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NuimoSDK", "NuimoSDK\NuimoSDK.csproj", "{E1EDA363-0B66-42DC-960F-55941ED96FA4}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Debug|ARM = Debug|ARM
12+
Debug|x64 = Debug|x64
13+
Debug|x86 = Debug|x86
14+
Release|Any CPU = Release|Any CPU
15+
Release|ARM = Release|ARM
16+
Release|x64 = Release|x64
17+
Release|x86 = Release|x86
18+
EndGlobalSection
19+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
20+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|ARM.ActiveCfg = Debug|ARM
23+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|ARM.Build.0 = Debug|ARM
24+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|x64.ActiveCfg = Debug|x64
25+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|x64.Build.0 = Debug|x64
26+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|x86.ActiveCfg = Debug|x86
27+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Debug|x86.Build.0 = Debug|x86
28+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|Any CPU.Build.0 = Release|Any CPU
30+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|ARM.ActiveCfg = Release|ARM
31+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|ARM.Build.0 = Release|ARM
32+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|x64.ActiveCfg = Release|x64
33+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|x64.Build.0 = Release|x64
34+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|x86.ActiveCfg = Release|x86
35+
{E1EDA363-0B66-42DC-960F-55941ED96FA4}.Release|x86.Build.0 = Release|x86
36+
EndGlobalSection
37+
GlobalSection(SolutionProperties) = preSolution
38+
HideSolutionNode = FALSE
39+
EndGlobalSection
40+
EndGlobal

NuimoSDK/INuimoController.cs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
using System;
2+
using System.Threading.Tasks;
3+
4+
namespace NuimoSDK
5+
{
6+
public interface INuimoController
7+
{
8+
event Action<NuimoConnectionState> ConnectionStateChanged;
9+
event Action<string> FirmwareVersionRead;
10+
event Action LedMatrixDisplayed;
11+
event Action<int> BatteryPercentageChanged;
12+
event Action<NuimoGestureEvent> GestureEventOccurred;
13+
14+
string Identifier { get;}
15+
NuimoConnectionState ConnectionState { get;}
16+
float MatrixBrightness { get; set; }
17+
18+
Task<bool> ConnectAsync();
19+
Task<bool> DisconnectAsync();
20+
21+
void DisplayLedMatrixAsync(NuimoLedMatrix matrix, double displayInterval = 2.0, int options = 0);
22+
}
23+
24+
25+
public enum NuimoConnectionState
26+
{
27+
Disconnected,
28+
Connecting,
29+
Connected,
30+
Disconnecting,
31+
}
32+
33+
34+
public enum NuimoLedMatrixWriteOption
35+
{
36+
WithFadeTransition = 1,
37+
WithoutWriteResponse = 2
38+
}
39+
}

NuimoSDK/NuGet.exe

3.61 MB
Binary file not shown.

NuimoSDK/NuGetPush.bat

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@echo off
2+
if [%1]==[] goto usage
3+
4+
del *.nupkg
5+
6+
nuget pack NuimoSDK.csproj -Prop Configuration=Release
7+
nuget setApiKey %1 -Source https://www.nuget.org/api/v2/package
8+
nuget push *.nupkg -Source https://www.nuget.org/api/v2/package
9+
10+
:usage
11+
@echo Usage: %0 [API key]

0 commit comments

Comments
 (0)