Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
started workin on EEG animation mode (behind a #define so people can …
…still compile this without)
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef BRAIN_TASKS_H | ||
#ifndef BRAIN_SERIAL | ||
#error "BRAIN_SERIAL not defined" | ||
#endif | ||
#define BRAIN_TASKS_H | ||
|
||
#include "animation_tasks.h" | ||
|
||
class EEGAnimation : public AnimationRunner | ||
{ | ||
}; | ||
|
||
class EEGReader : public Task | ||
{ | ||
public: | ||
EEGReader(); | ||
virtual void run(uint32_t now); | ||
virtual bool canRun(uint32_t now); | ||
}; | ||
|
||
EEGReader::EEGReader() | ||
: Task() | ||
{ | ||
} | ||
|
||
bool EEGReader::canRun(uint32_t now) | ||
{ | ||
return (boolean)BRAIN_SERIAL.available(); | ||
} | ||
|
||
void EEGReader::run(uint32_t now) | ||
{ | ||
|
||
} | ||
|
||
#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