mirror of
https://gitlab.com/wirelos/sprocket-plugin-gpio.git
synced 2025-12-14 13:26:48 +01:00
fix library name
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user