Skip to content

Commit

Permalink
fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
fbiego committed Aug 9, 2023
1 parent 89f0528 commit 9d90031
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CST816S.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ void CST816S::read_touch() {
data.gestureID = data_raw[0];
data.points = data_raw[1];
data.event = data_raw[2] >> 6;
data.x = data_raw[3];
data.y = data_raw[5];
data.x = ((data_raw[2] & 0xF) << 8) + data_raw[3];
data.y = ((data_raw[4] & 0xF) << 8) + data_raw[5];
}

/*!
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CST816S",
"version": "1.1.0",
"version": "1.1.1",
"keywords": "Arduino, ESP32, Touch, Hynitron, CST816S, I2C",
"description": "An Arduino library for the CST816S capacitive touch screen IC",
"repository":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=CST816S
version=1.1.0
version=1.1.1
author=fbiego
maintainer=fbiego
sentence=Capacitive touch screen library
Expand Down

0 comments on commit 9d90031

Please sign in to comment.