spejsiot/sonoff/app/application.cpp

11 lines
218 B
C++
Raw Permalink Normal View History

2017-09-29 19:01:56 +00:00
#include <SpejsNode.h>
#include <endpoints/OutputEndpoint.h>
SpejsNode node("switch");
void init() {
node.statusLED.config(13, LOW);
node.init();
node.registerEndpoint("relay", new OutputEndpoint(12));
}