nik-sharky / arduino-goodix Goto Github PK
View Code? Open in Web Editor NEWArduino goodix touch screen driver
License: MIT License
Arduino goodix touch screen driver
License: MIT License
Hi, I kinda new to touch panels world, is there was any tests for GT92* chips? I'm looking into playing with https://www.buydisplay.com/default/10-1-inch-capacitive-touch-panel-with-controller-gt9271-10-point-multi-touch touch panel in my project, I wonder if I'll get any luck connecting it to arduino or esp32?
when i try to run it on my arduino mega my arduino show
////////////////////////////////////////////////////////////////////
C:\Users\sa\Documents\arduino\libraries\arduino-goodix-master\Goodix.cpp: In member function 'void Goodix::armIRQ()':
C:\Users\sa\Documents\arduino\libraries\arduino-goodix-master\Goodix.cpp:150:27: error: '_goodix_irq_handler' was not declared in this scope
attachInterrupt(intPin, _goodix_irq_handler, RISING);
/////////////////////////////////////////////////////////////////////
how can i fix it?
thank you;
Hi!
I want to test the driver but when I check the sketch in Arduino IDE I get a stuck on log.h. where I can find it? Or I do something wrong?
Hey,
thanks for your work.
I just now try to get it running with ESP32 Arduino.
The I2C communication is ok, but gt911 don´t send int when it is press. but sometimes he send a lot int without different data.
i don´t know where i should start to search ?.
what´s going on with your firmware file. do i need this ?
thanks arnold
The callback mechanism is useless for many applications, like feeding input to LVGL
Can you add a way to use this without forcing a callback?
Hello
I am starting to work with a 9 inch gt911 touch panel, just wanted to know if this code is configuring the values of the registers, such as command register Or I should do that on my own?
It seems like it's using the touch panel after giving a start condition and it's not sending data for the registers to make it ready.
Thanks
Hi, Thanks for the awesome effort you put into this library. I tried to run this code. however, I'm getting very large numbers for X and Y positions. I have called the readInfo()
function and it returned the correct resolution as 320 x 480.
This is the screen I'm using - http://www.lcdwiki.com/3.5inch_LCD_MODULE-Capacitive_Touch
This is what I'm getting when I touch the screen,
C0: #0 X = 65280 Y = 12032 s:0
C0: #0 X = 65280 Y = 12032 s:0
C0: #0 X = 65280 Y = 12032 s:0
C0: #0 X = 65280 Y = 12032 s:0
C0: #0 X = 65280 Y = 12032 s:0
C0: #0 X = 65280 Y = 12032 s:0
C0: #0 X = 65280 Y = 12032 s:0
What could be the issue here?
Hi, I connect GT9110 TP with Arduino Nano with I2C and the other two pins connection and uploaded your AVR code from the Examples folder, and open Serial monitor and I receive these logs from Serial monitor.
-> Goodix GT911x touch driver
-> Module reset OK
-> Check ACK on addr request on 0x5D: SUCCESS
END. No Coordinate values are printed.
Please correct me if I'm doing something wrong. and I also try this same with ESP32 and the results are the same.
I added 2.2k ohm pull-up for I2C and 10k ohm Pull-up with RST pin (as suggested in datasheet)
Hi, thanks for your code, when i run with my TP, but the X/Y point was inaccuracy, how to config it?
thank you.
Bro , First thanks for sharing your lib
but I can't make it work with Uno
I get some errors about godix::armIRQ ......
Can u help?
I still must admit, that I may have some hardware issues, so take this with a grain of salt.
After re-wiring my WEMOS, I finally got some readings from the sensor, which I consider a bit strange. I got stable results including the sensing of 1 to 5 fingers, but for the different contact points I got for instance a changing for the x-axis with values ranging from about 10000 to 60000 with a nearly constant y-axis-value. For other points x or y was always 0. My first guess was some sort of register misalignement and I wanted to check this later.
Then I decides to make some tests with the firmware. I dumped the current firmware with your helper function and wrote g911xFW[] from GoodixFW.h to the device with:
touch.write(GOODIX_REG_CONFIG_DATA, g911xFW, sizeof(g911xFW));
This firmware did not survive a device reset but I could see the change in memory with a register dump before and after writing. My strange readings did not change.
Then I gave your g911xLenovoTab-FW a chance and added a 0x01 at the end. This firmware survives a reset and stopped all readings from the sensor immediatly. I can still do a register dump without a problem.
So my concrete question is:
Should g911xFW[] from GoodixFW.h be writable to the chip and stay persistent in memory? And should it be possible to write different firmwares back and forth?
Hi have a few touch screens and one of them gives the x axis inverted in relation to the other. I've scratch the datasheet and can't see any config for this..
Hello!
how can i detect a touch release of the touch panel? so far I only have interrupts that signal that I touched the panel, but I would also like to have interrupts when I release the panel after touching it!
How can I have this second kind of interrupt?
thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.