-
Notifications
You must be signed in to change notification settings - Fork 26
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
Arduino IDE #10
Comments
|
Hi Arduino: 1.8.13 (Mac OS X), Board: "Raspberry Pi Pico, 2MB (no FS), 133 MHz, Small (-Os) (standard), Disabled, Disabled, Disabled, Disabled, None, Pico SDK, IPv4 Only" In file included from /Users/Tony/Documents/Arduino/libraries/TFT_eSPI/examples/Sprite/Sprite_TFT_Rainbow/Sprite_TFT_Rainbow.ino:22: This report would have more information with |
The TFT-eSPI library needs to modify the configuration file to adapt to different boards. The monitor screen driver is ST7789. Have you modified the configuration file. |
Hi LilyGO |
Thank you, Lilygo |
More progress - have got the Arduino SDK on my MacBook Pro communicating with the LilyGO board. Unfortunately, I can't get an example sketch to display on the TFT screen. The sketch 'TFT_ReadWrite_Test runs, but returns zeroes read on the serial monitor, so it looks like I have got to do a further edit on the set-up files to match the board: 08:25:34.969 -> Pixel value written = 400 |
This connection has been verified with no problems. But I haven't tried reading pixels from ST7789. |
The 'Display User Setup' sketch shows this, which looks correct according to the LilyGO setup file, but still no display: |
Hi LilyGO I've got the display working now - I had to add missing signals to the test programs. The library doesn't have all the variables needed. I had to add #define TFT_BL 4 and #define PWR_ON 22. |
Hi, I have the same problem of tony1tf; I followed your indications but I can't resolve, the screen of my Raspberry Pi Pico (purchased on banggood) is always black. In file included from C:\Users\Maxi\Documents\Arduino\libraries\TFT_eSPI\examples\Test and diagnostics\TFT_ReadWrite_Test\TFT_ReadWrite_Test.ino:3: I modified the User_Setup_select.h uncommented "#include <User_Setups/Setup137_LilyGo_TDisplay_RP2040.h> // Setup file for Lilygo T-Display RP2040 (ST7789 on SPI bus with 135x240 TFT)" but nothing, the screen is always black. When I upload the sketch on the board I press boot then reset, then release reset and for the last boot Can you help me, please. @tony1tf can you send me *.ino file that work correctly with the board, please? Thanks and with beste regards |
If I uncomment the line 64 (Serial.available) yes, I can see the screen with Lilygo logo, with another image and with a written on the voltage; this is the log: |
Then please compare the difference between the two in initialization. |
I take from the TFT_espi example folder the file "Sprite_TF_Rainbow" with this code: #include <TFT_eSPI.h> // Graphics and font library TFT_eSPI tft = TFT_eSPI(); // Invoke library, pins defined in User_Setup.h TFT_eSprite img = TFT_eSprite(&tft); unsigned long targetTime = 0; void setup(void) { img.createSprite(IWIDTH, IHEIGHT); targetTime = millis() + 1000; void loop() { if (targetTime < millis()) {
} I changed it add the initialization of your firmware sketch and the new code is `#define TFT_MISO -1 #include <TFT_eSPI.h> // Graphics and font library TFT_eSPI tft = TFT_eSPI(); // Invoke library, pins defined in User_Setup.h TFT_eSprite img = TFT_eSprite(&tft); unsigned long targetTime = 0; void setup(void) { img.createSprite(IWIDTH, IHEIGHT); targetTime = millis() + 1000; void loop() { if (targetTime < millis()) {
} But don't work |
I resolve the iusse, thanks for your support.
and now all work fine. |
Hi Pietrogramma I was just working through your example when you said you had fixed it. pinMode(PWR_ON, OUTPUT); // added for LilyGO So I don't have to keep editing the examples, except for Power ON I had also edited the setup137 file: #define PWR_ON 22. // added by Tony I guess LilyGO had forgotten that the setup files need modifying if they want us to conform to Bodmers method for updating the TFT_eSPI library. Plus that Power On command which isn't mentioned anywhere except in the firmware source code. I read how pleased people are with the LilyGO board in the comments on AliExpress or BangGood, but I am not sure many of them have started to program them yet. Tony |
Thanks Tony, I'll follow your advice. |
Guys Very desperate. I've worked through this whole thread, and just cannot get my LilyGO RP2040 to display. In summary I've done/have the following:
I'm hoping it is something silly I'm doing wrong, please help. |
Let me assist you with displaying the screen.
|
Ok it works with the attached firmware.uf2 file. Now for I guess a really silly question. When I compile any of the example programs, it replaces the file you sent, and I'm back to square 1. |
I don't understand you. So now everything is normal and can be compiled and used? |
I have compiled (as example TFT_eSPI>Test and diagnostics>Colour_Test), and the UF2 is loaded ot the Pico, which is then unmounted. When I boot, nothing happens. So my understanding is that the UF2 that you sent is replaced by the file I just compiled on the Arduino IDE. This file in my mind has now been replaced by the new UF2, which seemingly does nothing. |
I understand what you mean. The .UF2 file I send works fine. But the .UF2 file you compiled is loaded into it and the operation is not normal. The phenomenon shown is that the display screen does not display as expected. I have two suggestions:
|
Hi I think I'm missing something basic. On point 1 above, I'm using the /dev/cu.usbmodem14201 Serial Port (USB), which does work for Blink. Reloaded Bodmer a few times, and uncommented #include <User_Setups/Setup137_LilyGo_TDisplay_RP2040.h> in User_Setup_Select.h. Now I'm just wondering about my paths. I have 2 locations for the TFT_eSPI, under Documents and Library. Could that be part of the problem? |
Followed the whole thing, still not working,screen is fully black, uf2 above works, i updated the TFT thing, still black, commented uncommented everything that can be done, now i just have a board that shows lily logo, voltage ,and raspberry logo, none of the examples work, i feel scamed |
Read back through this thread, and make sure you have enabled the bit to
turn on the display. It's all been explained earlier.
Tony
…On Tue, 18 Apr 2023, 12:19 RoyalB, ***@***.***> wrote:
I had the same problem with the firmware it worked fine but with the
Arduino IDE it failed even though the example upload was successful but the
screen was still black, only the blinking light worked. *Can someone help
me? - Thanks a lot !*
[image: Screenshot 2023-04-18 181003]
<https://user-images.githubusercontent.com/110828703/232761318-f5d38797-98b1-4558-8cac-0a617069ca68.png>
—
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJKGTRPE2OOOU6NDE4WGHDXBZ2E3ANCNFSM57NI6R2A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
only way to make it work (as far as i know) |
Hi realdaveblanch Thanks for another link to how to do it. pinMode(PWR_ON, OUTPUT); // added for LilyGO So I don't have to keep editing the examples, except for Power ON I had also edited the setup137 file: #define PWR_ON 22. // added by Tony Tony |
For anyone still having a black screen issue - it looks like a conflicting versions of TFT_eSPI and arduino-pico I was able to get screen working by pinpointing the versions of libraries as following:
After release v3.3.0 of arduino-pico the screen is blank up to v3.3.2 (which is current at the time of writing this). The fully working Arduino example with TFT screen support available at https://github.com/yaricom/rp2040-multitasking |
I got it to work after git bisecting after 3.3.2, but then found a simple solution here: Bodmer/TFT_eSPI#3402 - just add So with that small change one can upgrade to arduino-pico 3.9.5 and not have the black screen problem. You still need to set power on and set the backlight level. |
In your QuickStart info for adding the Pico board from the earlephilhower board manager did you mean 'Install' not 'Add'
Where is the TFT_eSPI library? I do not understand your explanation of how to install it in the Arduino IDE. Also, I cannot find the Lilygo RP2040 board - do I just select the generic RP2040 board?
Also, I cannot see any serial port for the board on my MacBookPro. Do I need to download a driver?
The text was updated successfully, but these errors were encountered: