-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call back function does not change/redraw page? #1
Comments
The only thing that jumps out at me is you don't have the images on your photos. I will run some tests to see what happens if you have missing images. Might be as simple as hitting an error trap somewhere trying to deal with images that don't exist. |
If you haven't already, ignore the above. After reading your report again i'm poking around the wrong example. D'oh. |
Things to try to rule out memory issues:
|
Okay last note of the day... If the above doesn't work please get latest. I have optimised quite a chunk of code away to reduce stack size. |
Thanks for your quick response. The LCD I am using is LGDP4535 documented here, http://ceezblog.info/2015/04/20/240x320-28-tft-shield-driver-4535-for-arduino/ and my blog tech.memoryimprintstudio.com. I will follow your advice and keep you posted later. Tony |
If I comment all buttons except Menu 1 or Settings, I only got print output from Serial Monitor. There's no behaivor change of the button upon pressing. It should go grey when pressed? I will take a look at your new code, and keep you posted. Thanks. Tony |
One thing to clarify, the Settings can be triggered by pressing Settings button, but it is just remain invisible. It renders -->Home back touchable. Tony |
So I guess 3 questions remain. 1. The setting page does not redraw. 2. Mutliple press on Menu 1 will generate a garbage display. 3. Home button triggers a partial display. |
I don't know how long you can wait for a fix on this, but it looks like I need to order an arduino mega to work this one out. Hopefully you can bear with me |
Hello Barry, Thank you for your help and your wonderful work. That will be great if you can spend some Best! Tony |
Short: I replicated your setup with no issues noted. |
Can you pass me the info of the LCD you are using with Mega R3? The one I am using is a cheap LGDP4535 (I can mail you one if you want) and I have to use a modified library to make it work (http://tech.memoryimprintstudio.com/arduino-with-a-lgdp4535-tft-lcd-touch-screen/). I have to use SD library with softSPI for mega in order to access SD card, but does not work with library at the moment. As you can see, I also have to modify your library to make it display ok. Another thing I did is to use attached zTouchScreen to rotate tft 90 to match LCD coordinate. Thank you so much for all your efforts. I will email you the code since tar file is not allowed here. Tony |
links to my code here:https://drive.google.com/file/d/0B0HMzeWCbUC3OC1wempxcWpIMTQ/view?usp=sharing |
thanks for this. I also found ceez blog where you discuss this. |
Damnit it arrived and it looks like the display was swapped to an ILI9341. I'm UK based, If I can order one cheaper than wherever you are likely to send me yours from, It is preferred. |
Can you order this from amazon in UK? if not, I will send you one from US. http://www.amazon.com/gp/product/B00UAA2XIC?psc=1&redirect=true&ref_=oh_aui_detailpage_o04_s00 Thanks. Tony |
Barry, Tony |
As I'm struggling to get the board you are using, that's a good idea. The one you see in the video is this: And I also have The second one needs slightly different pinout config to the default I have If you buy a shield, make sure it has the 6 in SPI header. It will make it On 30 November 2015 at 22:44, cryoguy [email protected] wrote:
|
I seem find the root cause.
|
Thanks for the wonderful efforts in creating this library! I got it sort of working with my Arduino Mega. It can compile, upload and display all the sample stetches; and, the touch screen works fine too.
The issue I am having are following (e.g. in GuiMetroGrid): 1. although the initial panel displays without problem, page-switching call back function does not make current page invisiable and target page visible. Press Setting button does not trigger setting page, does give feedback on Serial Monitor that setting button pressed. 2. The buttons in invisible page can be touched and triggered from another page, such as the ->Home button from setting page can be activated from home page.
3. The target page does not refresh/redraw correctly with corresponding callback function. 4. Press Menu 1 generate garbage page.
I will keep playing with it. Any thoughts and advice?
Tony
tech.memoryimprintstudio.com
The text was updated successfully, but these errors were encountered: