![]() ![]() The disc included six ready-made demos to try along with the required libraries that you'll need to copy into your libraries folder. Product arrived well packaged and was ready to attach to my Arduino with no soldering required. ![]() "THIS IS SO COOL! I can't believe it was so inexpensive! With the included disc I had all the demos working on my Uno in minutes. My ultimate question is this - is there a way to use the arduino to run two or more different actions at the same time by using different loop arguments? Or does everything have to be in a single loop argument?Īnnoyingly, I have found the information you need on an Amazon review, of all places! Link: : Customer reviews: ELEGOO UNO R3 2.8 Inches TFT Touch Screen with SD Card Socket with Technical Data for Arduino UNO R3 With all these inputs on this mega board, what I am wondering is - can you create two distinct loops in the arduino code that run simultaneously? For instance, can I have my images on a loop as I have right now, then add a second loop that flashes some LED lights at a pre-defined sequence? Or does the arduino code perform like one of the approaches above? Assuming it behaves like other programs (Matlab in my case), my thought is that I can take my delay line right now and replace it with a second loop that runs for the same amount of time, acting like a delay but flashing LED lights instead. Write the two loops independently so that when I run the program, loop 1 goes through all iterations then starts loop 2 that goes through all iterations. Using this approach, every iteration would see the first variable increase by 1 and the second loop would then go through all iterations before looping back to the start of loop 1, increase by 1, then start loop 2 all over again. Write the first loop with the second loop nested. For instance, in Matlab, if I wanted to make two different loops - (1) to increment a number from 1 to 10, 1 at a time and then (2) a second loop that increments a number from 100 to 1000 by 100 - i would write the two loops and I could do one of two things. And I am wondering if Arduino follows the same basic processes. I am familiar with general computer coding - mostly in MatLab. I have the images changing appropriately and I even modified it to add some text with a custom font over each image - all the way I want it. I have had a day or so to play around and do some more work. In addition, I was hoping someone could comment on the libraries- use the vendor provided ones or something else like the UTFT libraries. As a newbie, I was just hoping that someone else had already done exactly what i am trying and could easily post a pic or schematic that I could use to verify or debunk what I have pieced together. I am not in front of my board right now, but will be experimenting more tonight after i get home. Some locations say use pins 20-29 or so for the lcs and 50-53 for SD card, but then other sources say to land the lcd pins on digital pins 1-10 (or whatever the pins are that line up if you plug the shield in directly). My confusion is the LCD pins and SD card pins. Some pins are no brainers - 5v, gnd, and the like all have a place to land. I have stumbled upon a few sites that seem to have information that lines up. That plus the PDF is in broken english and seems to contradict other sources for info. I did, but as I mentioned- I am a complete novice at this and as such I get timid to go attaching pins differently than was designed (the shield was designed for an Uno board I found out after the fact). You will have to use different pins since the Mega and the Uno have different SPI pins. There is an example on accessing the SD card. I just cannot access the sd card which was the whole reason i bought it.ĭid you get a CD with tutorials with the TFT ? I have not been able to get any sample code working with anything other than the Elegoo libraries. Most sites seem to reference Adafruit libraries or UTFT libraries. ![]() I have been using the Elegoo provided libraries and they seem to work fine. I would also appreciate help with what drivers to use. I need to know where to land the screen pins onto the mega board in order to use the screen AND access the sd card. I think I can wire the board to the screen without installing it directly onto the mega board, but that is where my knowledge ends. I have tried searching everywhere but cannot find anywhere I can find a clear explanation of how to make the two talk AND let me access the sd card. The tft does work with the mega board when installed on the pins - you just cannot access the sd card. ![]() Got the items and have been working through demos with no issues until i tried to access the sd card. Everything indicated they were 100% compatible. I bought the Elegoo mega2560 starter kit and the Elegoo 2.8 in TFT touchscreen from Amazon specifically to use together and have access to the SD card slot. I will start by saying I am 100% new to arduino’s. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |