diff --git a/.development b/.development deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore index 792da4f..093356d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ .development -src.ino src/src.ino diff --git a/src/src.ino b/src/src.ino deleted file mode 100644 index 752b002..0000000 --- a/src/src.ino +++ /dev/null @@ -1,39 +0,0 @@ - -// This is a placeholder .ino file that allows you to easily edit the contents of this library using the Arduino IDE, -// as well as compile and test from this point. This file is ignored when the library is included in other sketches. - -#include "HomeSpan.h" - -void setup() { - - Serial.begin(115200); - - homeSpan.setLogLevel(2); - - homeSpan.begin(Category::Lighting,"HomeSpan Benchmark"); - - new SpanAccessory(); // Begin by creating a new Accessory using SpanAccessory(), which takes no arguments - - new Service::AccessoryInformation(); // HAP requires every Accessory to implement an AccessoryInformation Service, which has 6 required Characteristics - new Characteristic::Name("HomeSpan Test"); // Name of the Accessory, which shows up on the HomeKit "tiles", and should be unique across Accessories - new Characteristic::Manufacturer("HomeSpan"); // Manufacturer of the Accessory (arbitrary text string, and can be the same for every Accessory) - new Characteristic::SerialNumber("HSL-123"); // Serial Number of the Accessory (arbitrary text string, and can be the same for every Accessory) - new Characteristic::Model("HSL Test"); // Model of the Accessory (arbitrary text string, and can be the same for every Accessory) - new Characteristic::FirmwareRevision(HOMESPAN_VERSION); // Firmware of the Accessory (arbitrary text string, and can be the same for every Accessory) - new Characteristic::Identify(); // Create the required Identify - - new Service::HAPProtocolInformation(); // Create the HAP Protcol Information Service - new Characteristic::Version("1.1.0"); // Set the Version Characteristic to "1.1.0" as required by HAP - - new Service::LightBulb(); // Create the Light Bulb Service - new Characteristic::On(); // This Service requires the "On" Characteristic to turn the light on and off - -} // end of setup() - -////////////////////////////////////// - -void loop(){ - - homeSpan.poll(); - -} // end of loop()