T-rgb (half circle)
-
Can anyone help please. I cannot get any of the examples to compile in the Arduino IDE. A myriad of errors are reported. Icopied all of the files to the environment. If you please can send me a working .ino with description of the used libraries, I would be very greatful
-
@basvandepavert What kind of errors? Have you gotten a basic test sketch to compile and run?
Have you been to the GitHub repository?
https://github.com/Xinyuan-LilyGO/T-RGB
-Terry -
@teastain2 Yes I've downloaded the examples from there but none will compile in the Arduino IDE. I am not certain which board I should select though. At this moment I'm just interested in getting the basics running, not more than a simple "Hello world" example. From there I can develop the rest.
I'm building an altitude-indicator for my gliderplane, using the BMP280 sensor. I have it running on an Arduino Nano, but I want to display clock-like hands on a round display.
Any help is welcome, since I cannot get any example to compile and upload.
(I know the Nano is an AVR board and the T-RGB is ESP32, so modifications will be necessary) -
@teastain2
Hi Terry, after some experiments with boards I now get this error:Sketch uses 735085 bytes (23%) of program storage space. Maximum is 3145728 bytes.
Global variables use 20632 bytes (6%) of dynamic memory, leaving 307048 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM16A fatal error occurred: Could not open COM16, the port doesn't exist
Failed uploading: uploading error: exit status 2However, I'm sure the board is connected to COM16. Obviously something wrong in my installation, but what....? I'm lost. I re-installed most of the environment, but still this error. It also fails on other ports (changed port in windows device manager).
Looks like esptool.py v4.5.1 has a problem somewhere, but I do not know what is wrong or how to fix this.Your help is highly appreciated !!!
-
@basvandepavert The S3 ESP32 variant can be tricky with connection.
On Arduino IDE select ESP32S3-Dev Module
If you do not see a port, press the Boot button and hold. Then press Reset button and release, then release Boot. See if a port opens up.
This is just a start, get back to me of you need more help!
-Terry -
@teastain2 Simple Serial Monitor test code:
bool ticktock = true; void setup() { Serial.begin (115200); } void loop() { ticktock = !ticktock; if (ticktock) { Serial.println("tick"); } else { Serial.println("tock"); } delay (1000); }
-
@teastain2
Hi Terry, this tick-tock works! I see the output in the Serial monitor
So, connection is OKI use the board LilyGo T-Display-S3 an I can now compile, upload and run the display.ino example:-)
However, the factory.ino gives me many errors that seem to be related to the lvgl library. There are many lvgl libraries, which one do I need to install for the factory.ino to compile?
Again, your help is really preventing me from giving up!!
-
@teastain2
When I compile the factory.ino I get these messages:
H:\Bas\Arduino\Sketches\T-RGB\factory\photo2.c:24:30: error: unknown type name 'LV_ATTRIBUTE_LARGE_CONST'
const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_PHOTO2 uint8_t photo2_map[] = {
^~~~~~~~~~~~~~~~~~~~~~~~
H:\Bas\Arduino\Sketches\T-RGB\factory\photo2.c:24:87: error: expected '=', ',', ';', 'asm' or 'attribute' before 'photo2_map'
const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_PHOTO2 uint8_t photo2_map[] = {
^~~~~~~~~~
H:\Bas\Arduino\Sketches\T-RGB\factory\photo2.c:1959:7: error: unknown type name 'lv_img_dsc_t'
const lv_img_dsc_t photo2 = {
^~~~~~~~~~~~
H:\Bas\Arduino\Sketches\T-RGB\factory\photo2.c:1960:3: error: field name not in record or union initializer
.header.cf = LV_IMG_CF_TRUE_COLOR,
^
And a lot more, that cannot be included in this message (too many characters)Compilation error: unknown type name 'LV_ATTRIBUTE_LARGE_CONST'
-
@basvandepavert Good morning.Sounds like excellent progress!
Did you copy all files from:
https://github.com/Xinyuan-LilyGO/T-RGB/tree/main/lib
and copy them to your libraries folder, overwriting (replacing), not merging them?
LilyGO is notorious for modifying (forking) established well know libraries to use on their products. -
@teastain2
Thank you Terry for this suggestion. I will try this in the coming days ....
Infortunately I have a medical issue that requires hospitalization for some days...I sincerely hope I can come back to you in a couple of days
Thanks Bas -
@basvandepavert Take care!
-
@teastain2
Hi Terry, one last request before I'll be down for a couple days:- Yes, I copied all these files from https://github.com/Xinyuan-LilyGO/T-RGB/tree/main/lib
- There is an example that I would very much use for my altimeter project:
https://github.com/Xinyuan-LilyGO/T-RGB/tree/main/lib/Arduino_GFX/examples/Clock
But, as expected, I cannot complie this sketch. Can you have a look at this example and try to get it running on the T-RGB? If you succeed, I then know that it is possible!
Thanks so far, Bas van de Pavert
-
@basvandepavert Sadly I do not have a T-RGB to use!
My advice is based on other LilyGO products using ESP32 S3.
Can you get ANY of the T-RGB examples running?
Regards, Terry -
@teastain2
Hi Terry, I'm back in business again!
And... I have solved the problems, thanks to this link:
Device declarationMy basic altitudemeter is working now. I still have to 'clean' my sketch. Afterwards I will post the code here.
Thank you again for helping me.
-
@basvandepavert Thanks for getting back to me!
Let me know!
-Terry