Created
March 6, 2016 05:48
-
-
Save zs40x/78311faa64760daebe4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using SensorDevices; | |
using FakeSensors; | |
using System; | |
namespace Console_SensorDevice_Test | |
{ | |
static class Program | |
{ | |
static void Main() | |
{ | |
SensorDevice sensor = new ConsoleLogFakeSensor(); | |
sensor.enable(); | |
DeviceState sensorState = sensor; | |
sensorState.isEnabledSince(); | |
sensorState.disable(); | |
DeviceControl sensorControl = sensor; | |
sensor.powerOff(); | |
Console.WriteLine("Press any key to continue..."); | |
Console.ReadKey(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment