-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eda248f
commit e4b040b
Showing
13 changed files
with
178 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "blink.h" | ||
|
||
LEDCUBE_NAMESPACE_BEGIN | ||
|
||
Blink::Blink() { | ||
// | ||
} | ||
|
||
void Blink::tick() { | ||
Log.info("toggle"); | ||
print_to_serial(); | ||
update(ALL_CUBE, TOGGLE); | ||
} | ||
|
||
int Blink::frequency() { return 1000; } | ||
|
||
LEDCUBE_NAMESPACE_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef Ticker_H | ||
#define Ticker_H | ||
|
||
#include "Particle.h" | ||
#include "abstract_program.h" | ||
#include "abstract_program.h" | ||
#include "cube_types.h" | ||
#include "singletons.h" | ||
|
||
LEDCUBE_NAMESPACE_BEGIN | ||
|
||
class Blink : public AbstractProgram { | ||
public: | ||
Blink(); | ||
|
||
protected: | ||
void tick(); | ||
int frequency(); | ||
|
||
}; | ||
|
||
LEDCUBE_NAMESPACE_END | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.