alex-code / GT911

GT911 Touch library for Arduino
MIT License
17 stars 6 forks source link

where the I2C_BUFFER_LENGTH define? #6

Open ItielEdri opened 6 days ago

ItielEdri commented 6 days ago

i didnt see where the I2C_BUFFER_LENGTH define and i keep getting error becuase of this what am i missing?

alex-code commented 6 days ago

I'm using the Arduino espressif32 framework and that has a value of 128 defined in Wire.h but this may vary depending on your target framework/microcontroller.

ItielEdri commented 6 days ago

Ahh I understand So if im use atmega1280 and use arduino ideWhat do i need to change in the library?Cause from what I understand i have the same issue like urs im my screen have the same RST pon for the touch and the spi(for the screen)Thanks in advance Sent from my iPhoneOn 24 Nov 2024, at 14:16, Alex @.***> wrote: I'm using the Arduino espressif32 framework and that has a value of 128 defined in Wire.h but this may vary depending on your target framework/microcontroller.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

alex-code commented 6 days ago

Looks like the default i2c buffer size for AVR chips is 32. You can just add #define I2C_BUFFER_LENGTH 32 before the include.

ItielEdri commented 5 days ago

Thank u really appreciate it Sent from my iPhoneOn 24 Nov 2024, at 18:59, Alex @.***> wrote: Looks like the default i2c buffer size for AVR chips is 32. You can just add #define I2C_BUFFER_LENGTH 32 before the include.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>