Navigation

    LILYGO

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    T-rgb (half circle)

    Product information
    t-rgb
    2
    15
    932
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      basvandepavert @teastain2 last edited by

      @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)

      1 Reply Last reply Reply Quote 0
      • B
        basvandepavert @teastain2 last edited by

        @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 COM16

        A fatal error occurred: Could not open COM16, the port doesn't exist
        Failed uploading: uploading error: exit status 2

        However, 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 !!!

        teastain2 1 Reply Last reply Reply Quote 0
        • teastain2
          teastain2 @basvandepavert last edited by

          @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 1 Reply Last reply Reply Quote 0
          • teastain2
            teastain2 @teastain2 last edited by

            @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);
            }
            
            B 2 Replies Last reply Reply Quote 0
            • B
              basvandepavert @teastain2 last edited by

              @teastain2
              Hi Terry, this tick-tock works! I see the output in the Serial monitor
              So, connection is OK

              I 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!!

              1 Reply Last reply Reply Quote 1
              • B
                basvandepavert @teastain2 last edited by

                @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'

                teastain2 1 Reply Last reply Reply Quote 0
                • teastain2
                  teastain2 @basvandepavert last edited by teastain2

                  @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.

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    basvandepavert @teastain2 last edited by

                    @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

                    teastain2 1 Reply Last reply Reply Quote 0
                    • teastain2
                      teastain2 @basvandepavert last edited by

                      @basvandepavert Take care!

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        basvandepavert @teastain2 last edited by

                        @teastain2
                        Hi Terry, one last request before I'll be down for a couple days:

                        1. Yes, I copied all these files from https://github.com/Xinyuan-LilyGO/T-RGB/tree/main/lib
                        2. 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

                        teastain2 1 Reply Last reply Reply Quote 0
                        • teastain2
                          teastain2 @basvandepavert last edited by

                          @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

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            basvandepavert @teastain2 last edited by

                            @teastain2
                            Hi Terry, I'm back in business again!
                            And... I have solved the problems, thanks to this link:
                            Device declaration

                            My 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.

                            teastain2 1 Reply Last reply Reply Quote 1
                            • teastain2
                              teastain2 @basvandepavert last edited by

                              @basvandepavert Thanks for getting back to me!
                              Let me know!
                              -Terry

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Powered by NodeBB | Contributors