Skip to content

Commit

Permalink
Update LedCube.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsbrenkman authored Jan 14, 2024
1 parent e7212e8 commit f365bcb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/LedCube.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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);
Expand Down Expand Up @@ -65,3 +72,6 @@ void loop() {
cube_controller->update(ALL_CUBE, TOGGLE);
}
}

LEDCUBE_NAMESPACE_END

0 comments on commit f365bcb

Please sign in to comment.