First Test env

This commit is contained in:
Emanuele Trabattoni
2026-03-27 12:49:20 +01:00
parent a0710f7ee7
commit a210d808da
8 changed files with 292 additions and 86 deletions

View File

@@ -1,4 +1,5 @@
#pragma once
#include <Arduino.h>
// =====================
// USB (RISERVATA)
@@ -18,7 +19,7 @@
#define LED 48
// =====================
// STRAPPING (NON USARE)
// STRAPPING CRITICI (NON USARE)
// =====================
// 0, 3
@@ -43,7 +44,7 @@
#define SCL 9
// =====================
// ADC CONTROL (NO CONFLICT)
// ADC CONTROL
// =====================
#define ADC_A_CS 4
#define ADC_A_DRDY 5
@@ -64,28 +65,28 @@
// =====================
// TRIGGER INPUT INTERRUPTS
// =====================
#define TRIG_A12P 21
#define TRIG_A12N 33
#define TRIG_A34P 34
#define TRIG_A34N 38
#define TRIG_B12P 39
#define TRIG_B12N 40
#define TRIG_B34P 41
#define TRIG_B34N 42
#define TRIG_A12P 18
#define TRIG_A12N 21
#define TRIG_A34P 33
#define TRIG_A34N 34
#define TRIG_B12P 38
#define TRIG_B12N 39
#define TRIG_B34P 40
#define TRIG_B34N 41
// =====================
// SPARK DETECT INPUTS (INPUT ONLY SAFE)
// SPARK DETECT INPUTS
// =====================
#define SPARK_A12 45
#define SPARK_A34 46
#define SPARK_B12 47
#define SPARK_B34 18
#define SPARK_A12 42
#define SPARK_A34 45 // OK (strapping ma consentito)
#define SPARK_B12 46 // OK (strapping ma consentito)
#define SPARK_B34 47
// =====================
// PCA9555 (I2C EXPANDER)
// =====================
// --- RESET LINES (ora su expander) ---
// --- RESET LINES ---
#define RST_A12P 0
#define RST_A12N 1
#define RST_A34P 2
@@ -95,11 +96,11 @@
#define RST_B34P 6
#define RST_B34N 7
// --- RELAY LINES ---
// --- RELAY ---
#define A_RELAY 8
#define B_RELAY 9
// --- STATUS OUTPUT ---
// --- STATUS / BUTTON ---
#define BTN_3 10
#define BTN_4 11
#define STA_1 12
@@ -126,4 +127,4 @@ inline void initSparkPinInputs()
pinMode(SPARK_A34, INPUT);
pinMode(SPARK_B12, INPUT);
pinMode(SPARK_B34, INPUT);
}
}