summaryrefslogtreecommitdiff
path: root/src/drivers/Cst816s.h
diff options
context:
space:
mode:
authorhubmartin <hub.martin@gmail.com>2021-08-02 19:37:48 (GMT)
committerhubmartin <hub.martin@gmail.com>2021-08-02 19:37:48 (GMT)
commit28abeae21bb370c45d26912bba4737a1cc6ddca7 (patch)
tree2a4d45d952da9788234090219e216c842f59f321 /src/drivers/Cst816s.h
parent514481ef7f9c71ad816b31d979c6ab39ce9380dd (diff)
DRAFT: Put gpio pins to separate file
Diffstat (limited to 'src/drivers/Cst816s.h')
-rw-r--r--src/drivers/Cst816s.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/Cst816s.h b/src/drivers/Cst816s.h
index 14c296e..fa53907 100644
--- a/src/drivers/Cst816s.h
+++ b/src/drivers/Cst816s.h
@@ -1,6 +1,7 @@
#pragma once
#include "TwiMaster.h"
+#include <drivers/PinMap.h>
namespace Pinetime {
namespace Drivers {
@@ -40,7 +41,7 @@ namespace Pinetime {
private:
static constexpr uint8_t pinIrq = 28;
- static constexpr uint8_t pinReset = 10;
+ static constexpr uint8_t pinReset = PINMAP_CST816S_RESET_PIN;
static constexpr uint8_t lastTouchId = 0x0f;
static constexpr uint8_t touchPointNumIndex = 2;
static constexpr uint8_t touchMiscIndex = 8;