From e3843ac0c8ab21130f9cf7a19fac62e7288619f6 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Tue, 10 Nov 2020 10:32:43 +0100 Subject: [PATCH] Fixes for T4.1-Adapter-Board. --- config.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/config.h b/config.h index e34330b..02a42b9 100644 --- a/config.h +++ b/config.h @@ -54,9 +54,10 @@ // For SYSEX Bank upload via USB: // sed -i.orig 's/SYSEX_MAX_LEN = 290/SYSEX_MAX_LEN = 4104/' /usr/local/arduino-teensy/hardware/teensy/avr/libraries/USBHost_t36/USBHost_t36.h // sed -i.orig 's/^#define USB_MIDI_SYSEX_MAX 290/#define USB_MIDI_SYSEX_MAX 4104/' /usr/local/arduino-teensy/hardware/teensy/avr/cores/teensy3/usb_midi.h +// sed -i.orig 's/^#define USB_MIDI_SYSEX_MAX 290/#define USB_MIDI_SYSEX_MAX 4104/' /usr/local/arduino-teensy/hardware/teensy/avr/cores/teensy4/usb_midi.h //#define USB_MIDI_SYSEX_MAX 4104 -#define VERSION "1.0.10" +#define VERSION "1.0.11" //************************************************************************************************* //* DEVICE SETTINGS @@ -92,7 +93,7 @@ //************************************************************************************************* //* DEBUG OUTPUT SETTINGS //************************************************************************************************* -//#define DEBUG 1 +#define DEBUG 1 #define SERIAL_SPEED 230400 #define SHOW_XRUN 1 #define SHOW_CPU_LOAD_MSEC 5000 @@ -232,18 +233,21 @@ #define ENC_L_PIN_A 3 #define ENC_L_PIN_B 2 #define BUT_L_PIN 4 -#ifndef TEENSY4 +#if defined(ARDUINO_TEENSY36) #define ENC_R_PIN_A 28 #define ENC_R_PIN_B 29 #define BUT_R_PIN 30 #else -//#define ENC_R_PIN_A 6 -//#define ENC_R_PIN_B 5 -//#define BUT_R_PIN 8 +#if defined(ARDUINO_TEENSY40) +#define ENC_R_PIN_A 6 +#define ENC_R_PIN_B 5 +#define BUT_R_PIN 8 +#else // ARDUINO_TEENSY41 #define ENC_R_PIN_A 24 #define ENC_R_PIN_B 5 #define BUT_R_PIN 9 #endif +#endif #define BUT_DEBOUNCE_MS 20 #define LONG_BUTTON_PRESS 500 @@ -284,7 +288,7 @@ // Teensy-4.x settings #if defined(__IMXRT1062__) //Teensy-4.x -#define MAX_NOTES 16 +#define MAX_NOTES 32 #define TEENSY4 #endif