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
#include <HID-Settings.h> | |
#include <HID-Project.h> | |
//keys | |
char keys[7] = {'d','f','j','k','c','m','6'}; //左から順にBT-AからBT-D、FX-L、FX-R、STARTの割り当て | |
int key[7] = {11,10,9,8,7,6,12}; //startが12ピンになっているので注意(ミスです) | |
int keyState[7] = {0,0,0,0,0,0,0}; //キーの状態を格納 | |
//rotary | |
int rotaryFlag[2][2] = {{0,0},{0,0}}; //ロータリーエンコーダからの値を一つ前と現在の値を格納 |