fix: touch and update constants
This commit is contained in:
@@ -19,11 +19,11 @@ FT6206::FT6206() { touches = 0; }
|
||||
/**************************************************************************/
|
||||
// bool begin(uint8_t thresh = FT62XX_DEFAULT_THRESHOLD, uint16_t width, uint16_t height, bool flip );
|
||||
|
||||
bool FT6206::begin(uint16_t width, uint16_t height, bool flip, uint8_t thresh) {
|
||||
Wire.begin();
|
||||
_width = width;
|
||||
_height = height;
|
||||
_flip = flip;
|
||||
bool FT6206::begin(uint8_t sda, uint8_t scl, uint16_t width, uint16_t height, bool flip, uint8_t thresh) {
|
||||
Wire.begin(sda, scl);
|
||||
_width = width;
|
||||
_height = height;
|
||||
_flip = flip;
|
||||
#ifdef FT6206_DEBUG
|
||||
Serial.print("Vend ID: 0x");
|
||||
Serial.println(readRegister8(FT62XX_REG_VENDID), HEX);
|
||||
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
class FT6206 {
|
||||
public:
|
||||
FT6206(void);
|
||||
bool begin(uint16_t width, uint16_t height, bool flip = false, uint8_t thresh = FT62XX_DEFAULT_THRESHOLD);
|
||||
bool begin(uint8_t sda, uint8_t scl, uint16_t width, uint16_t height, bool flip = false, uint8_t thresh = FT62XX_DEFAULT_THRESHOLD);
|
||||
uint8_t touched(void);
|
||||
TS_Point getPoint(uint8_t n = 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user