Problem with Display NHD-3.5-320240MF-ATXL#-T-1

Comments

4 comments

  • Saurabh_B

    This sounds like something must have happened to either the code or the processor.

    Were there any changes between now and the last time the display worked.

    0
  • Gregory_C

    Hello Saurabh_B

    Nothing has changed. I could download the code into the microcontroller and everything seems to be , so I know that communication with the prototype works .


    There are some in law or the compiler gives me an error on the edge (see photo) : Unable to resolve identifier

    By cons , it is able to compile without error. Why that ?

    Thank you for your help

    0
  • Saurabh_B

    Gregory,

    The error you are getting seems to be either because you are declaring static variables inside of the function or the variables you are declaring might have been declared elsewhere in your code.
    Would it be possible to remove the static modifier, or check to see if the same variables are declared globally elsewhere?


    I tried to reply to the message you left on our site earlier, however the email address you provided did not work.

    0
  • Gregory_C

    Hello

    I removed the static variable declaration of functions, but the same error occurs. I also checked if the variables were declared in global, but no.

    The same error occurs for the functions of variable declaration (see picture)

    These errors occur in the library provides for NHD-3.5-320240MF-ATXL#-T-1 , no modification has been done on this code .


    I am able to communicate with the PIC32 because I am able to program and make moficiations . For example, the start image can be changed even if the touch screen is not working .

    Did I say that the PIC32 working properly?

    In debug mode, I never stopped me was the following function:

    /*********************************************************************
    * Function: SHORT TouchGetX()
    *
    * PreCondition: none
    *
    * Input: none
    *
    * Output: x coordinate
    *
    * Side Effects: none
    *
    * Overview: returns x coordinate if touch screen is pressed
    *           and -1 if not
    *
    * Note: none
    *
    ********************************************************************/
    SHORT TouchGetX(void)
    {
        long    result;

        result = TouchGetRawX();

        if(result >= 0)
        {
            result = CalcTouchX(result);

            #ifdef TOUCHSCREEN_RESISTIVE_FLIP_X
                result = GetMaxX() - result;
            #endif
       
            if(result < 0) return(0);
       
            if(result > GetMaxX()) return(GetMaxX());   
        }

        return (result);
    }

    * Function: SHORT TouchGetY()
    *
    * PreCondition: none
    *
    * Input: none
    *
    * Output: y coordinate
    *
    * Side Effects: none
    *
    * Overview: returns y coordinate if touch screen is pressed
    *           and -1 if not
    *
    * Note: none
    *
    ********************************************************************/
    SHORT TouchGetY(void)
    {
        long    result;

        result = TouchGetRawY();

        if(result >= 0)
        {
            result = CalcTouchY(result);

            #ifdef TOUCHSCREEN_RESISTIVE_FLIP_Y
                result = GetMaxY() - result;
            #endif

            if(result < 0) return(0);

            if(result > GetMaxY()) return(GetMaxY());
        }
       
        return (result);
    }

    I already change the screen

    Thank you

    Grégory

    0

Please sign in to leave a comment.