🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    PaperS3 anyone got the touchscreen to be more sensitive?

    PRODUCTS
    1
    1
    18
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      windoze007
      last edited by

      So it looks like the GT911 can have configurable sensitivity either by adjusting the sensitivity threshold or adjusting the gain.

      I tried both, however they mainly seem to make it not work

      I edited Touch_GT911.cpp:

      constexpr uint16_t REG_CONFIG_START = 0x8047;
      constexpr size_t CONFIG_LEN = 0x80FF - REG_CONFIG_START;
      constexpr size_t TOUCH_SENS_OFF = 0x8053 - REG_CONFIG_START;
      constexpr size_t RELEASE_SENS_OFF = 0x8054 - REG_CONFIG_START;
      constexpr size_t DAC_GAIN_OFF = 0x806B - REG_CONFIG_START;
      constexpr size_t PGA_GAIN_OFF = 0x806C - REG_CONFIG_START;
      
      std::array<uint8_t, 2 + CONFIG_LEN + 2> datas;
      
      // get config
      datas[0] = 0x80;
      datas[1] = 0x47;
      _writeReadBytes(datas.data(), 2, datas.data() + 2, CONFIG_LEN);
      
      // try to change settings - none of these seem to work
      datas[2 + TOUCH_SENS_OFF] -= 5;
      datas[2 + RELEASE_SENS_OFF] -= 5;
      datas[2 + DAC_GAIN_OFF] = 0x00;
      
      // put config
      datas[2 + CONFIG_LEN] = 1 + (~std::accumulate(datas.begin() + 2, datas.end() - 2, 0));
      datas[2 + CONFIG_LEN + 1] = 0x01;
      _writeBytes(datas.data(), datas.size());
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post