MCPcopy Create free account
hub / github.com/attermann/microReticulum / setup

Function setup

examples/lora_announce/src/main.cpp:246–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244#endif
245
246void setup() {
247
248#ifdef ARDUINO
249 Serial.begin(115200);
250 Serial.print("Hello from T-Beam on PlatformIO!\n");
251
252 // Setup user button
253 pinMode(BUTTON_PIN, INPUT);
254 attachInterrupt(BUTTON_PIN, userKey, FALLING);
255#endif
256
257 RNS::loglevel(RNS::LOG_TRACE);
258 //RNS::loglevel(RNS::LOG_MEM);
259
260/*
261 {
262 //RNS::Reticulum reticulum_test;
263 RNS::Destination destination_test({RNS::Type::NONE}, RNS::Type::Destination::IN, RNS::Type::Destination::SINGLE, "test", "test");
264 }
265*/
266
267 reticulum_setup();
268
269#ifdef ARDUINO
270 //Serial.print("Goodbye from T-Beam on PlatformIO!\n");
271#endif
272}
273
274void loop() {
275

Callers 1

mainFunction · 0.70

Calls 2

reticulum_setupFunction · 0.70
beginMethod · 0.45

Tested by

no test coverage detected