-
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
Showing
2 changed files
with
233 additions
and
190 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,35 @@ | ||
#ifndef JIANGTUN_H_ | ||
#define JIANGTUN_H_ | ||
|
||
#include <Servo.h> | ||
|
||
#include <array> | ||
|
||
#include "Bluewhale.h" | ||
#include "nthaka.h" | ||
|
||
namespace jiangtun | ||
{ | ||
|
||
enum class ResetAction | ||
{ | ||
Press, | ||
Release, | ||
PressRelease, | ||
Nothing | ||
}; | ||
|
||
struct State | ||
{ | ||
Gamecube_Data_t gc_data; | ||
nthaka_button_state_t gc_reset; | ||
|
||
ResetAction next_action; | ||
|
||
uint16_t hue; | ||
uint32_t color; | ||
}; | ||
|
||
} | ||
|
||
#endif // JIANGTUN_H_ |
Oops, something went wrong.