Skip to content

Commit

Permalink
Separate core clearly
Browse files Browse the repository at this point in the history
  • Loading branch information
u1f992 committed Feb 7, 2024
1 parent 33a9610 commit 51816aa
Show file tree
Hide file tree
Showing 2 changed files with 233 additions and 190 deletions.
35 changes: 35 additions & 0 deletions src/jiangtun.h
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_
Loading

0 comments on commit 51816aa

Please sign in to comment.