11 lines
218 B
C++
11 lines
218 B
C++
|
#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));
|
||
|
}
|