2021-08-02 21:37:48 +02:00
|
|
|
#pragma once
|
2021-11-03 23:02:30 +01:00
|
|
|
#include <cstdint>
|
2021-08-02 21:37:48 +02:00
|
|
|
|
2021-08-03 20:32:23 +02:00
|
|
|
namespace Pinetime {
|
|
|
|
namespace PinMap {
|
2022-05-09 17:16:08 +02:00
|
|
|
|
2022-05-10 21:46:36 +02:00
|
|
|
#if defined(DRIVER_PINMAP_P8)
|
|
|
|
// COLMI P8 and variants
|
2022-05-09 17:16:08 +02:00
|
|
|
static constexpr uint8_t Charging = 19;
|
|
|
|
static constexpr uint8_t Cst816sReset = 13;
|
|
|
|
static constexpr uint8_t Button = 17;
|
|
|
|
#else
|
|
|
|
// Pinetime
|
|
|
|
static constexpr uint8_t Charging = 12;
|
|
|
|
static constexpr uint8_t Cst816sReset = 10;
|
|
|
|
static constexpr uint8_t Button = 13;
|
|
|
|
#endif
|
2021-08-03 20:32:23 +02:00
|
|
|
|
2022-05-10 21:10:28 +02:00
|
|
|
static constexpr uint8_t ButtonEnable = 15;
|
2021-08-03 20:40:27 +02:00
|
|
|
static constexpr uint8_t Cst816sIrq = 28;
|
|
|
|
static constexpr uint8_t PowerPresent = 19;
|
2022-05-10 21:10:28 +02:00
|
|
|
static constexpr uint8_t Bma421Irq = 8;
|
2021-08-03 20:32:23 +02:00
|
|
|
|
2021-08-03 20:40:27 +02:00
|
|
|
static constexpr uint8_t Motor = 16;
|
2021-08-03 20:32:23 +02:00
|
|
|
|
2021-08-04 14:43:04 +02:00
|
|
|
static constexpr uint8_t LcdBacklightLow = 14;
|
|
|
|
static constexpr uint8_t LcdBacklightMedium = 22;
|
|
|
|
static constexpr uint8_t LcdBacklightHigh = 23;
|
2021-08-03 20:32:23 +02:00
|
|
|
|
2021-08-03 20:40:27 +02:00
|
|
|
static constexpr uint8_t SpiSck = 2;
|
|
|
|
static constexpr uint8_t SpiMosi = 3;
|
|
|
|
static constexpr uint8_t SpiMiso = 4;
|
2021-08-03 20:32:23 +02:00
|
|
|
|
2021-08-03 20:40:27 +02:00
|
|
|
static constexpr uint8_t SpiFlashCsn = 5;
|
|
|
|
static constexpr uint8_t SpiLcdCsn = 25;
|
|
|
|
static constexpr uint8_t LcdDataCommand = 18;
|
2023-05-18 15:19:44 +02:00
|
|
|
static constexpr uint8_t LcdReset = 26;
|
2021-08-03 20:32:23 +02:00
|
|
|
|
2021-08-03 20:40:27 +02:00
|
|
|
static constexpr uint8_t TwiScl = 7;
|
|
|
|
static constexpr uint8_t TwiSda = 6;
|
2021-08-03 20:32:23 +02:00
|
|
|
}
|
|
|
|
}
|