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 +