Skip to content

Instantly share code, notes, and snippets.

@zs40x
Created March 6, 2016 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zs40x/78311faa64760daebe4a to your computer and use it in GitHub Desktop.
Save zs40x/78311faa64760daebe4a to your computer and use it in GitHub Desktop.
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