From f365bcbe73231bd775870c8ac281690232f54161 Mon Sep 17 00:00:00 2001 From: Nils Brenkman Date: Sun, 14 Jan 2024 06:44:14 +0100 Subject: [PATCH] Update LedCube.ino --- src/LedCube.ino | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/LedCube.ino b/src/LedCube.ino index 7570ca4..0627047 100644 --- a/src/LedCube.ino +++ b/src/LedCube.ino @@ -6,6 +6,11 @@ * https://docs.particle.io/firmware/best-practices/firmware-template/ */ +#ifndef LEDCUBE_NAMESPACE_BEGIN +#define LEDCUBE_NAMESPACE_BEGIN namespace LedCube { +#define LEDCUBE_NAMESPACE_END } +#endif + // Include Particle Device OS APIs #include "Particle.h" // #include "application.h" @@ -20,6 +25,8 @@ SYSTEM_MODE(AUTOMATIC); // Run the application and system concurrently in separate threads SYSTEM_THREAD(ENABLED); +LEDCUBE_NAMESPACE_BEGIN + // Show system, cloud connectivity, and application logs over USB // View logs with CLI using 'particle serial monitor --follow' SerialLogHandler logHandler(LOG_LEVEL_INFO); @@ -65,3 +72,6 @@ void loop() { cube_controller->update(ALL_CUBE, TOGGLE); } } + +LEDCUBE_NAMESPACE_END +