assign all button

This commit is contained in:
2020-09-14 01:27:33 +09:00
parent 03f7212661
commit ca5fd1ae18

View File

@@ -24,7 +24,7 @@ struct ButtonInfo {
};
struct arrow arrowTable[4];
#define ButtonInfoTableSize 2
#define ButtonInfoTableSize 9
struct ButtonInfo buttonInfoTable[ButtonInfoTableSize];
@@ -70,7 +70,14 @@ void setup()
MsTimer2::start();
setupButton(&(buttonInfoTable[0]), 3, Button::B);
setupButton(&(buttonInfoTable[1]), 15, Button::PLUS);
setupButton(&(buttonInfoTable[1]), 4, Button::X);
setupButton(&(buttonInfoTable[2]), 5, Button::Y);
setupButton(&(buttonInfoTable[3]), 16, Button::L);
setupButton(&(buttonInfoTable[4]), 10, Button::R);
setupButton(&(buttonInfoTable[5]), 15, Button::PLUS);
setupButton(&(buttonInfoTable[6]), 18, Button::HOME);
setupButton(&(buttonInfoTable[7]), 19, Button::CAPTURE);
setupButton(&(buttonInfoTable[8]), 14, Button::MINUS);
/*
bButton.pinNumber = 3;