Premier commit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user