NHD-7.0-800480EF-ASXN-CTP Touch Controller

Comments

2 comments

  • Ted M.
    NHD Staff

    Hi Meder,

    The I2C slave address of the CTP is in the NHD-7.0-800480EF-ASXN-CTP datasheet under sample code on page 18.

    https://newhavendisplay.com/content/specs/NHD-7.0-800480EF-ASXN-CTP.pdf

    Sample code to read touch data:
    i2c_start();
    i2c_tx(0x70); //Slave Address (Write)
    i2c_tx(0x00); //Start reading address
    i2c_stop();
    i2c_start();
    i2c_tx(0x71); //Slave Address (Read)
    for(i=0x00;i<0x1F;i++)
    {touchdata_buffer[i] = i2c_rx(1);}
    i2c_stop();

    Regards, 

    0
  • erinsandoval

    Thanks for the information. It really helped me!

    0

Please sign in to leave a comment.