From 65804e29b6378ac1898e9fd57f76a9e840122099 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Thu, 8 May 2025 07:42:24 +0800 Subject: Touch detection. --- r503.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'r503.c') diff --git a/r503.c b/r503.c index d1483a0..0b5addc 100644 --- a/r503.c +++ b/r503.c @@ -4,15 +4,15 @@ #include "r503.h" -#define MAXPDLEN 64 -#define RST_DELAY_MS 500 +#define MAXPDLEN 64 +#define RST_DELAY_MS 500 -#define HEADER_HO 0xEF -#define HEADER_LO 0x01 -#define ADDR 0xFFFFFFFF +#define HEADER_HO 0xEF +#define HEADER_LO 0x01 +#define ADDR 0xFFFFFFFF -#define OK 0x00 -#define PACKID 0x01 +#define OK 0x00 +#define PACKID 0x01 static inline uint8_t read(void) { -- cgit v1.2.3