1faac3c59d
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
92 lines
3.1 KiB
C
92 lines
3.1 KiB
C
/*
|
|
* Copyright (c) 2023 Marcel Licence
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* Dieses Programm ist Freie Software: Sie können es unter den Bedingungen
|
|
* der GNU General Public License, wie von der Free Software Foundation,
|
|
* Version 3 der Lizenz oder (nach Ihrer Wahl) jeder neueren
|
|
* veröffentlichten Version, weiter verteilen und/oder modifizieren.
|
|
*
|
|
* Dieses Programm wird in der Hoffnung bereitgestellt, dass es nützlich sein wird, jedoch
|
|
* OHNE JEDE GEWÄHR,; sogar ohne die implizite
|
|
* Gewähr der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
|
|
* Siehe die GNU General Public License für weitere Einzelheiten.
|
|
*
|
|
* Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
|
|
* Programm erhalten haben. Wenn nicht, siehe <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/**
|
|
* @file config.h
|
|
* @author Marcel Licence
|
|
* @date 02.01.2021
|
|
*
|
|
* @brief This file contains the project configuration
|
|
*
|
|
* All definitions are visible in the entire project
|
|
*
|
|
* Put all your project settings here (defines, numbers, etc.)
|
|
* configurations which are requiring knowledge of types etc.
|
|
* shall be placed in z_config.ino (will be included at the end)
|
|
*/
|
|
|
|
|
|
#ifndef CONFIG_H_
|
|
#define CONFIG_H_
|
|
|
|
|
|
#define SERIAL_BAUDRATE 115200
|
|
|
|
|
|
//#define BOARD_ML_V1 /* activate this when using the ML PCB V1 */
|
|
//#define BOARD_ESP32_AUDIO_KIT_AC101 /* activate this when using the ESP32 Audio Kit v2.2 with the AC101 codec */
|
|
#define BOARD_ESP32_AUDIO_KIT_ES8388 /* activate this when using the ESP32 Audio Kit v2.2 with the ES8388 codec */
|
|
//#define BOARD_ESP32_DOIT /* activate this when using the DOIT ESP32 DEVKIT V1 board */
|
|
|
|
|
|
/* you can receive MIDI messages via serial-USB connection */
|
|
/*
|
|
* you could use for example https://projectgus.github.io/hairless-midiserial/
|
|
* to connect your MIDI device via computer to the serial port
|
|
*/
|
|
#define MIDI_RECV_FROM_SERIAL
|
|
|
|
/* use this to display a scope on the oled display */
|
|
#define OLED_OSC_DISP_ENABLED
|
|
|
|
#define AUDIO_KIT_BUTTON_ANALOG
|
|
|
|
/*
|
|
* include the board configuration
|
|
* there you will find the most hardware depending pin settings
|
|
*/
|
|
#include <ml_boards.h> /* requires the ML_Synth library: https://github.com/marcel-licence/ML_SynthTools */
|
|
|
|
/* our samplerate */
|
|
#define SAMPLE_RATE 44100
|
|
|
|
#define SAMPLE_BUFFER_SIZE 48
|
|
|
|
/* this variable defines the max length of the delay and also the memory consumption */
|
|
#define MAX_DELAY SAMPLE_RATE /* 1s -> @ 44100 samples */
|
|
|
|
|
|
/* on board led */
|
|
#define BLINK_LED_PIN 19
|
|
|
|
|
|
#endif /* CONFIG_H_ */
|
|
|