Page 1 of 1

[NECTO Studio 2.5.0] Undeclared identifier 'TFT_MAX_BACKLIGHT' in expression [Solved]

Posted: 28 Dec 2022 17:22
by frank.malik
Hello,

installed Necto Studio v2.5.0 five minutes ago and already found the first mistake.

I made a new Designer Project to check another bug found several months ago ( which is still there ).
I just took the default template generated by Necto without any changes.

Code: Select all

void board_init()
{
    touch_controller_init(&display_driver, TFT_MAX_BACKLIGHT);
    // Initialize Graphic library.
    gl_set_driver(&display_driver);

    touch_controller_tp_init(&tp, &tp_interface);
}
This code raises the following compiler error ( also indicated by the parser )

Code: Select all

Undeclared identifier 'TFT_MAX_BACKLIGHT' in expression
Correct setting is TFT8_MAX_BACKLIGHT, as defined in "tft8.h"

Re: [NECTO Studio 2.5.0] Undeclared identifier 'TFT_MAX_BACKLIGHT' in expression [Solved]

Posted: 29 Dec 2022 07:56
by frank.malik
Hello,

the combination of Necto Studio 2.5.0 with any of the old MikroSDK versions is not a good idea.

In the setup that is used for the project, the SDK needs to be changed/updated to v2.7.1.
Now it works.