Premier commit

This commit is contained in:
Serge NOEL
2026-09-21 13:07:54 +02:00
commit 387838349d
5 changed files with 189 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include <Arduino.h>
namespace Pins {
// Shared pins. GPIO0, GPIO2 and GPIO15 need explicit boot-level validation.
constexpr uint8_t batteryVoltage = A0;
constexpr uint8_t i2cSda = D2;
constexpr uint8_t i2cScl = D1;
// Boat: MX1508 uses two inputs per motor.
constexpr uint8_t motorLeftForward = D5;
constexpr uint8_t motorLeftReverse = D6;
constexpr uint8_t motorRightForward = D7;
constexpr uint8_t motorRightReverse = D8;
constexpr uint8_t rudderServo = D4;
// Remote: use an external ADC for two analog Hall sensors.
constexpr uint8_t hallThrottle = A0;
constexpr uint8_t hallRudderSignal = D5;
}