diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2021-09-22 09:03:41 (GMT) |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2021-09-22 09:03:41 (GMT) |
| commit | b2100908373f76660fcfb5f3c454eb69a38ca4ef (patch) | |
| tree | 090a52c4e10646a0d7a9383920452342b4898f4c /src/drivers/PinMap.h | |
| parent | b31b2425f8afd5022173852f5a78592b37104c39 (diff) | |
| parent | 1c3c3c8db919c703bbd3f1be4ce9c6833237ea6f (diff) | |
Merge branch 'develop' into detect_full_charge
Diffstat (limited to 'src/drivers/PinMap.h')
| -rw-r--r-- | src/drivers/PinMap.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/drivers/PinMap.h b/src/drivers/PinMap.h new file mode 100644 index 0000000..5796402 --- /dev/null +++ b/src/drivers/PinMap.h @@ -0,0 +1,38 @@ +#pragma once + +namespace Pinetime { + namespace PinMap { + + #ifdef WATCH_P8 + // COLMI P8 + 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 + + static constexpr uint8_t Cst816sIrq = 28; + static constexpr uint8_t PowerPresent = 19; + + static constexpr uint8_t Motor = 16; + + static constexpr uint8_t LcdBacklightLow = 14; + static constexpr uint8_t LcdBacklightMedium = 22; + static constexpr uint8_t LcdBacklightHigh = 23; + + static constexpr uint8_t SpiSck = 2; + static constexpr uint8_t SpiMosi = 3; + static constexpr uint8_t SpiMiso = 4; + + static constexpr uint8_t SpiFlashCsn = 5; + static constexpr uint8_t SpiLcdCsn = 25; + static constexpr uint8_t LcdDataCommand = 18; + + static constexpr uint8_t TwiScl = 7; + static constexpr uint8_t TwiSda = 6; + } +} |
