diff --git a/library.json b/library.json index 38d576d..353ea9f 100644 --- a/library.json +++ b/library.json @@ -1,7 +1,7 @@ { - "name": "sprocket-plugin-template", + "name": "sprocket-plugin-gpio", "keywords": "sprocket, plugin", - "description": "Template for a sprocket plugin", + "description": "GPIO plugin for a Sprocket", "authors": { "name": "Patrick Balsiger", @@ -11,7 +11,7 @@ "repository": { "type": "git", - "url": "https://gitlab.com/wirelos/sprocket-plugin-template" + "url": "https://gitlab.com/wirelos/sprocket-plugin-gpio" }, "frameworks": "arduino", "platforms": "espressif8266, esp32", diff --git a/src/examples/combined/main.cpp b/src/examples/combined/main.cpp index a0ae6b5..deca20c 100644 --- a/src/examples/combined/main.cpp +++ b/src/examples/combined/main.cpp @@ -22,6 +22,7 @@ void addAnalogInput(Sprocket* s, int pin, const char* topic) }, topic, _1)); s->addPlugin(new AnalogInputPlugin({pin, POT_THRESHOLD, POT_POLL_INTERVAL, topic})); } + void addDigitalInput(Sprocket* s, int pin, const char* topic) { s->subscribe(topic, bind([](String label, String val){