Updating .gitignore
This commit is contained in:
parent
19829c8c6b
commit
8b1ea2a70e
|
|
@ -1,3 +1,2 @@
|
||||||
.development
|
.development
|
||||||
src.ino
|
|
||||||
src/src.ino
|
src/src.ino
|
||||||
|
|
|
||||||
39
src/src.ino
39
src/src.ino
|
|
@ -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()
|
|
||||||
Loading…
Reference in New Issue