Bug fixes

This commit is contained in:
Edgar P. Burkhart 2021-01-30 15:10:31 +01:00
parent 5ed36ce26a
commit a09124d7fa
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 7 additions and 8 deletions

View file

@ -5,23 +5,22 @@ Joystick_ Joystick;
const byte BR[3] = {1,2,3}; // Button array rows
const byte BC[3] = {4,5,6}; // Button array columns
const byte BK[3][3] = {{1,2,3},{4,5,6},{7,8,9}}; // Buttons controller keys
const bool Bstate[3][3] = {{0,0,0},{0,0,0},{0,0,0}}; // Buttons state
bool Bstate[3][3] = {{0,0,0},{0,0,0},{0,0,0}}; // Buttons state
const byte RE[6][2] = {{7,8},{9,10},{11,12},{13,14},{15,16},{17,18}}; // Rotary encoders pins {A,B}
const byte REK[6][2] = {{10,11},{12,13},{14,15},{16,17},{18,19},{20,21}}; // Rotary encoders keys {-,+}
const bool REstate[6][2] = {{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}}; // Rotary encoders state
bool REstate[6][2] = {{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}}; // Rotary encoders state
void setup() {
for(int i=0; i<6; i++) {
pinMode(REl[i], INPUT_PULLUP);
pinMode(REr[i], INPUT_PULLUP);
for(int i=0; i<12; i++) {
pinMode(RE[i/2][i%2], INPUT_PULLUP);
}
for(int i=0; i<6; i++) {
for(int i=0; i<3; i++) {
pinMode(BR[i], INPUT);
pinMode(BC[i], INPUT_PULLUP);
}
Joystick.begin()
Joystick.begin();
}
void readMatrix() {

Binary file not shown.