mirror of
https://github.com/erik-toth/audio-synth.git
synced 2025-12-06 15:20:01 +00:00
Refactor code structure for improved readability and maintainability, imporved matrix read, improved SB button read
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
@author: Erik Tóth
|
||||
@contact: etoth@tsn.at
|
||||
@date: 2025-10-26
|
||||
@brief: Header for FIRMWARE.cpp
|
||||
@updated: 2025-12-06
|
||||
@brief: Header for FIRMWARE.cpp (FIXED)
|
||||
*/
|
||||
#include <Arduino.h>
|
||||
#include <Wire.h>
|
||||
@@ -139,6 +140,7 @@ class SequencerBlock
|
||||
unsigned long _lastStepTime;
|
||||
unsigned long _playStartTime;
|
||||
unsigned long _stepStartTime;
|
||||
unsigned long _lastAddStepTime; // NEU: Rate-Limiting
|
||||
|
||||
// Status flags
|
||||
bool _isRecording;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
@author: Erik Tóth
|
||||
@contact: etoth@tsn.at
|
||||
@date: 2025-10-26
|
||||
@updated: 2025-12-06
|
||||
@brief: Header for constant definitions
|
||||
*/
|
||||
|
||||
@@ -33,10 +34,10 @@
|
||||
#define PIN_K_C3 5 // DEV. not in use
|
||||
#define PIN_K_C4 6 // DEV. not in use
|
||||
// SEQUENCER BUTTON PINS
|
||||
#define PIN_SB_1_REC 37 // for PROD. change to 33 / not available on dev board
|
||||
#define PIN_SB_1_PLAY 38 // for PROD. change to 34 / not available on dev board
|
||||
#define PIN_SB_2_REC 35
|
||||
#define PIN_SB_2_PLAY 36
|
||||
#define PIN_SB_1_REC 42 // for PROD. change to 33 / not available on dev board
|
||||
#define PIN_SB_1_PLAY 41 // for PROD. change to 34 / not available on dev board
|
||||
#define PIN_SB_2_REC 40 // 35
|
||||
#define PIN_SB_2_PLAY 39 // 36
|
||||
// MISC/INFO PINS
|
||||
#define PIN_ACTIVE -1 // TODO: if any key is played return HIGH
|
||||
#define PIN_REC -1 // TODO: if any sb is recording return HIGH
|
||||
|
||||
Reference in New Issue
Block a user