sumotoy / RA8875

A library for RAiO RA8875 display driver for Teensy3.x or LC/Arduino's/Energia/Spark
GNU General Public License v3.0
79 stars 55 forks source link

Arduino DUE & FT5206 #79

Closed gcharles81 closed 8 years ago

gcharles81 commented 8 years ago

I am testing the capacitive touch with eastrising 7" and up to now cannot make it working ,

I am using SCL1 & SDA1 on DUE

sumotoy commented 8 years ago

display it's working or just touch? I had recently a feedback from an user that was working on DUE with capacitive as well but cannot remember witch I2C channel he was using.

gcharles81 commented 8 years ago

The display works fine only the touch is not working I changed the wire commands from Wire.send to Wire1.send etc but cannot make it working tomorrow I will try to add a pull-up to the interrupt pin maybe it's flooting.

Thanks charles

Thanks

On Friday, 27 November 2015, max mc costa notifications@github.com wrote:

display it's working or just touch? I had recently a feedback from an user that was working on DUE with capacitive as well but cannot remember witch I2C channel he was using.

— Reply to this email directly or view it on GitHub https://github.com/sumotoy/RA8875/issues/79#issuecomment-160222637.

sumotoy commented 8 years ago

Mmm, I don't even expected to use wire1, have to look inside code. I coded all DUE stuff by looking datasheet since I don't have it. My chinese clone never worked and the original DUE I buy from Arduino site arrived with both USB out of order (bad soldering, not bad for over 50 euro, sigh) so I give up with DUE time ago!

sumotoy commented 8 years ago

Try the last version, see inside RA8875UserSettings.h to use Wire1. On Arduino site the information about DUE wire are quite confused, looks like that alternative I2C port needs pullup resistors, some clone board needs pullup even on wire, early arduino DUE board have on Wire1 and not on wire, I'm lost. I will first experiment if Wire1 works and/or needs Pullups, then I will focus on INT, if INT doesn't work your Touch will never work! Of course INT on capacitive works only when FT chip has been programmed via I2C, at every touch it will pulldown his INT line (so you can check this one) that is connected to a pin of your DUE. If the FT works and pulldown INT pin I will focus on DUE to check if the pin choosed as INT it really works.

gcharles81 commented 8 years ago

Hi I could make it running with the below changes :user Version:0.70b11p6

Usersettings file still left as Wire. because this is calling the Wire library.

Edit file RA8875.cpp rename all Wire. to Wire1.

Also added 10K pullup to arduino pin serving as touch interrupt in may case I am using pin 17.

Works like a charm thanks for your effort making this amazing library.

P.S one last question if i need only one touch and I define MAXTOUCHES to 1 , is there and call to get only X&Y coordinates .

thanks

sumotoy commented 8 years ago

This has been fixed yesterday with the p7, the new user settings has an option to use alternative wire for DUE, I never tested but shoul work, maybe you can test it and approve so I will fix as gold master. There's an handly trick to change wire without rename everithing, take a look at the top of cpp file.

gcharles81 commented 8 years ago

Thanks verified working with Version:0.70b11p7

sumotoy commented 8 years ago

Hurra!

sumotoy commented 8 years ago

About last question: "P.S one last question if i need only one touch and I define MAXTOUCHES to 1 , is there and call to get only X&Y coordinates " The FT chip it's quite primitive, it simply return all it's registers so why I'm using an array. Setting MAXTOUCHES to 1 will just break the filling routine (and save some ms) so at the end you have location 0 filled with the vars you need (see example).