Elegoo TFT shield with Arduino Nano BLE

I bought a Nano BLE Because I wanted some of its advanced features, including Bluetooth and the ability to run MicroPython. I bought an Elegoo TFT shield, knowing I would not be able to use it in shield configuration, because it looked like the right size of screen at the right price.

Now I'm dealing with the nitty-gritty details of wiring it up manually. First question: does anybody make an adapter thing that can adapt a Nano series processor board to a shield with an Uno form factor?

Apart from that, I'm going to have to figure out how to choose my pins and how to configure the software to know that. I see that D0 and D1 aren't going to be available, not if I want serial output while I'm debugging. So where do I go to tell it that I'm using D2-D9, not D0=D7?

And then, in the header file I see that I should either comment or uncomment the following line:
#define USE_Elegoo_SHIELD_PINOUT 1
so I'm using the shield, but I can't align it to processor board pins in the normal fashion. Which way should it be? Commented or uncommented.

Thanks for all help,
Joymaker

It depends on what you mean by "debugging". Unlike on the classic Nano, pins 0 and 1 on the Nano 33 BLE are Serial1, which is separate from the Serial interface used to communicate with the computer over the USB cable. So if you can use Serial for your debugging then pins 0 and 1 are free to use for other things.

We need to know which library you are using. for the TFT.

Again, we need to know which library you are using.

The distinction between Serial and Serial1 is really good news! That may solve my problem.

I would gladly take advice on which library to use! That is how new I am to this business. The library I am looking at is Elegoo_TFTLCD which came on a CD packaged with the touchscreen. Header file attached in case it is not readily available to you. I wonder if this software is fundamentally identical to the TFTLCD library provided by Adafruit.

Additional question: that library contains the constructor
Elegoo_TFTLCD(uint8_t cs, uint8_t cd, uint8_t wr, uint8_t rd, uint8_t rst);
Can you give me some insight on what to put in those five parameters? It looks like they specify control lines, I am not clear on where to specify what lines are used for data.

Elegoo_TFTLCD.h (3.0 KB)

Okay, I have more information now. I am pretty sure I have got my breadboard wired correctly (with pin assignments as for an UNO), I am setting out to run the example, attached. But there is this little file pinmagic.h that only wants to recognize certain Arduino board types. Attached also. Does this look like something that I could coerce it into using one of the defined board types for my Nano BLE? Or is it time to give up on this library and try a different one?

Elegoo_Graphicstest.ino (10.5 KB)
pin_magic.h (18.4 KB)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.