Configuration matérielle et paramètres globaux du firmware Brick. Plus de détails...
Aller au code source de ce fichier.
Macros | |
#define | CCM_DATA __attribute__((section(".ram4"), aligned(4))) |
#define | BRICK_FIRMWARE_VERSION "0.9.3" |
#define | BRICK_DEVICE_NAME "Brick Synth Engine" |
#define | NUM_BUTTONS 40 |
#define | NUM_ENCODERS 4 |
#define | NUM_POTS 4 |
#define | NUM_ADRESS_LEDS 17 |
#define | NUM_GPIO_LEDS 8 |
#define | LED_BRIGHTNESS 32 |
#define | LED_MODE_DEFAULT LED_MODE_ON |
#define | ENC_TICKS_PER_STEP 8 |
#define | ENC_ACCEL_TAU_MS 120.0f |
#define | ENC_ACCEL_V0 50.0f |
#define | ENC_ACCEL_V1 300.0f |
#define | ENC_ACCEL_G1 0.010f |
#define | ENC_ACCEL_G2 0.003f |
#define | ENC_ACCEL_MAX 10.0f |
#define | ENC_FLICK_THRESH 600.0f |
#define | ENC_FLICK_GAIN 0.003f |
#define | ENC_FLICK_TAU_MS 150.0f |
#define | UI_FRAME_INTERVAL_MS 16 |
#define | UI_INPUT_POLL_MS 20 |
#define | LED_RENDER_INTERVAL_MS 20 |
#define | CART_BUS_TIMEOUT_MS 50 |
#define | CART_LINK_DEFAULT CART1 |
Configuration matérielle et paramètres globaux du firmware Brick.
Ce fichier centralise toutes les constantes liées :
#define BRICK_DEVICE_NAME "Brick Synth Engine" |
#define BRICK_FIRMWARE_VERSION "0.9.3" |
#define CART_BUS_TIMEOUT_MS 50 |
#define CART_LINK_DEFAULT CART1 |
#define CCM_DATA __attribute__((section(".ram4"), aligned(4))) |
#define ENC_ACCEL_G1 0.010f |
Gain de pente pour zone moyenne.
#define ENC_ACCEL_G2 0.003f |
Gain de pente pour zone haute.
#define ENC_ACCEL_MAX 10.0f |
Multiplicateur maximum.
#define ENC_ACCEL_TAU_MS 120.0f |
Constante de temps EMA pour la vitesse.
#define ENC_ACCEL_V0 50.0f |
Seuil de début d’accélération.
#define ENC_ACCEL_V1 300.0f |
Seuil haut de la zone accélérée.
#define ENC_FLICK_GAIN 0.003f |
Gain ajouté lors d’un flick.
#define ENC_FLICK_TAU_MS 150.0f |
Durée de décroissance du flick.
#define ENC_FLICK_THRESH 600.0f |
Seuil de détection d’un flick rapide.
#define ENC_TICKS_PER_STEP 8 |
Nombre de ticks matériels par pas logique.
#define LED_BRIGHTNESS 32 |
Intensité globale (0–255).
#define LED_MODE_DEFAULT LED_MODE_ON |
Mode par défaut.
#define LED_RENDER_INTERVAL_MS 20 |
Périodicité du rendu LED.
#define NUM_ADRESS_LEDS 17 |
Nombre de LEDs adressables (WS2812/SK6812).
#define NUM_BUTTONS 40 |
Nombre total de boutons.
#define NUM_ENCODERS 4 |
Nombre total d’encodeurs rotatifs.
#define NUM_GPIO_LEDS 8 |
LEDs simples sur GPIO (optionnel).
#define NUM_POTS 4 |
Nombre total de potentiomètres analogiques.
#define UI_FRAME_INTERVAL_MS 16 |
Intervalle d’affichage (≈ 60 FPS).
#define UI_INPUT_POLL_MS 20 |
Fréquence de polling des entrées.