I don't believe that every example turns white immediately.
I suspect that some will report information to the Serial Terminal even if the screen "fails".
Anyway I followed your link to aisler.net but I can't make head nor tail of it.
I expected to be able to buy the ready-made pcb e.g. by making an "Order" and paying them with a card.
But they don't appear to have any sort of "shop".
Whereas the MKR2UNO appears to be a real-life product that you can actually buy. (and use with some stackable header strips)
David.
I didn't order from aisler.net (UK based), finding their website difficult to navigate as well. I downloaded the KiCad file from github, then uploaded to OSHPark.com (based in USA), whom I've used before. Yes, I'll solder on some header strips, but that's all that's required.
Ah-ha. So you found aisler.net incomprehensible too.
I presume that OSHPark would be impractical for me in the UK.
Postage from USA to UK is similar to China to UK. I have never used an international pcb company.
Or I would make my own adapter from Protoboard.
David.
Hi David.
MOSTLY RESOLVED: Adding pinMode() for digital pins 0 through 9, after tftBegin(ID) but before the tft.setRotation(1) , resolved the problem with the screen not rendering on the first pass through loop(). Still seeing screen blink after rendering, though.
Quick update. The custom MKR2Uno shield arrived and is now working*. (See attachments.)
Two things I noticed and have questions about:
-
Unmodified, the TestCard.ino program only displays the time text and "9488". After modifying the loop() method to end/start when the seconds ss variable equals zero causes the screen to render properly on the second and successive looks. Any ideas?
-
After the screen is rendered, there is a quick flash (entire screen turns white, but then quickly displays properly). And ideas?
Once all is good, I'll push code up to GitHub.
- Anyone looking to use the custom MKR2Uno, note the original developer purposely wired MKR 0u to Uno 8u and MKR 1u to Uno 8u. Desired is MKR 8u to Uno 8u and Mkr 9u to Uno 9u so no libraries need to be changed. Soldering two wires resolved the problem. This was probably done just to give David Prentice conniptions.
Moire pattern and not quite correct brightness are my cell phone's fault. Refresh rate of TFT seems at odds with camera phone. Also, note background on lower half of screen isn't true black.
Adding a fillScreen(BLACK) and setRotation(0) to the bottom of loop() yields second screenshot.
Ok. So now you have reliable wiring. i.e. Shield male pins mating with soldered female sockets.
All that you have to do is buy pencil and paper.
Install fresh library. Edit for USE_SPECIAL and USE_MKR2UNO
Run each library example sketch. Always have Serial Terminal open e.g. 9600 baud.
If there is a problem write down the sketch name and describe the problem(s).
Copy-paste the Serial Terminal output.
I always advise graphictest_kbv.ino first because it may be complex but it shows up colours, glitches, directions, ...
Yes, photo#1 in #24 shows bad scan lines. Are they present on photo #2 ? It is difficult to see.
I would expect photo#2 with the virgin testcard_kbv.ino
You would get photo#1 from setRotation(0).
You can try setRotation(2) and setRotation(3)
Please always start with virgin library examples.
If you edit something, say so and copy-paste the changed lines
David.