Navigation

    LILYGO

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

    T-0.99TFT Source Code

    Technical Discussion
    t-0.99tft code source code explanation
    2
    4
    269
    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.
    • J
      jxk last edited by jxk

      hello, im trying to make the .99 inch tft work on an Arduino, and when inspecting the source code for the esp library, i got quite confused by the following lines in the LCD_INIT of src/TFT_GC9D01N.cpp

      RST_H;
      delay(80);
      
      RST_L;
      delay(80);
      
      RST_H;
      delay(480);
      

      //ok the above lines reset the screen

      writecommand(0xFE);
      writecommand(0xEF);
      

      //based on the datasheet provided, this unlocks the inner register set

      writecommand(0x80);
      writedata(0xFF);
      
      writecommand(0x81);
      writedata(0xFF);
      

      //now this (and the other commands that don't match with any hex calls in the datasheet) is what i don't understand. what does it do here exactly. 0x80 is a setting in set_gamma1, but shouldn't then F0 should be called to arrive at set_gamma1?

      and then 0x81-0x8E lines aren't even mentioned in the whole datasheet.

      so my question is, how do those lines work, what functions do they perform for the screen, or is this leftover code from adapting this library from other screens?

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

        @jxk What LilyGO board and what application are you having trouble with?

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

          @teastain2
          the T-0.99TFT display, and it's code, as mentioned in the previous comment.

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

            @jxk Ok, then.

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