Skip to content

Instantly share code, notes, and snippets.

View texwill's full-sized avatar

or.GitHub texwill

View GitHub Profile
@texwill
texwill / sdvx_arduino_leonardo.ino
Created November 23, 2017 13:17
サウンドボルテックスコントローラーのやつ
#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}}; //ロータリーエンコーダからの値を一つ前と現在の値を格納