Skip to content

Commit

Permalink
Update to version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hanh-aj committed Jul 19, 2018
1 parent df95e4a commit 88c65d1
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 22 deletions.
Binary file modified libs/ASControllerSDK.dll
Binary file not shown.
48 changes: 34 additions & 14 deletions sample/AromaShooterControllerSample/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 13 additions & 8 deletions sample/AromaShooterControllerSample/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ namespace ControllerSample
public partial class Form1 : Form
{
//Get AromaShooterController references
private AromaShooterController aromaShooterController = AromaShooterController.sharedInstance;
private AromaShooterController aromaShooterController = AromaShooterController.SharedInstance;
public Form1()
{
InitializeComponent();

//Initalize
aromaShooterController.setup();
aromaShooterController.Setup();
}

/// <summary>
Expand All @@ -37,32 +37,37 @@ public Form1()

private void Cartridge1_Click(object sender, EventArgs e)
{
aromaShooterController.diffuse(3000, new int[] { 1 }, false);
aromaShooterController.Diffuse(3000, new int[] { 1 }, true);
}

private void Cartridge2_Click(object sender, EventArgs e)
{
aromaShooterController.diffuse(3000, new int[] { 2}, true);
aromaShooterController.Diffuse(3000, new int[] { 2}, true);
}

private void Cartridge3_Click(object sender, EventArgs e)
{
aromaShooterController.diffuse(3000, new int[] { 3 }, true);
aromaShooterController.Diffuse(3000, new int[] { 3 }, true);
}

private void Cartridge4_Click(object sender, EventArgs e)
{
aromaShooterController.diffuse(3000, new int[] { 4 }, true);
aromaShooterController.Diffuse(3000, new int[] { 4 }, true);
}

private void Cartridge5_Click(object sender, EventArgs e)
{
aromaShooterController.diffuse(3000, new int[] { 5 }, true);
aromaShooterController.Diffuse(3000, new int[] { 5 }, true);
}

private void Cartridge6_Click(object sender, EventArgs e)
{
aromaShooterController.diffuse(3000, new int[] { 6 }, true);
aromaShooterController.Diffuse(3000, new int[] { 6 }, true);
}

private void StopButton_Click(object sender, EventArgs e)
{
aromaShooterController.Stop();
}
}
}

0 comments on commit 88c65d1

Please sign in to comment.