Component LCD_ST7789V and PIC18F26k22

Post and discuss new components that you have created.
Post Reply
JAGagiano
Posts: 5
http://meble-kuchenne.info.pl
Joined: Sun Mar 02, 2025 5:44 am

Component LCD_ST7789V and PIC18F26k22

Post by JAGagiano »

3663: LCDDCPIN = FCL_DC;
(192) undefined identifier "LCDDCPIN"

Error from XC8

medelec35
Valued Contributor
Posts: 2203
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 669 times
Been thanked: 748 times

Re: Component LCD_ST7789V and PIC18F26k22

Post by medelec35 »

Hello.
That is suggesting that within properties you have not assigned any pina to the LCD DC connection.
If you have assigned all the pins and still got an error then can you upload the fcfx, and msg.txt files.
Martin

JAGagiano
Posts: 5
Joined: Sun Mar 02, 2025 5:44 am

Re: Component LCD_ST7789V and PIC18F26k22

Post by JAGagiano »

Hi Martin
Yes, I have setup all the pins correctly.
After compiling the message appear. Most likely from XC8.
When I look at the C code , I do not see the DC pin assigned to any port.

JAGagiano
Posts: 5
Joined: Sun Mar 02, 2025 5:44 am

Re: Component LCD_ST7789V and PIC18F26k22

Post by JAGagiano »

Hi Martin

You will see that after compiling the message from XC8.
Attachments
LCD test.msg.txt
(2.7 KiB) Downloaded 9 times
LCD test.fcfx
(18.27 KiB) Downloaded 11 times

BenR
Matrix Staff
Posts: 2027
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 537 times
Been thanked: 721 times

Re: Component LCD_ST7789V and PIC18F26k22

Post by BenR »

Hello,

Many thanks for letting us know, Looks like at some point we renamed A0 Pin to DC Pin and this has caused the compile error.

All fixed now in v10 and v11 via the library updates..

JAGagiano
Posts: 5
Joined: Sun Mar 02, 2025 5:44 am

Re: Component LCD_ST7789V and PIC18F26k22

Post by JAGagiano »

Hi Ben

Many Thanks to you.

JAGagiano
Posts: 5
Joined: Sun Mar 02, 2025 5:44 am

Re: Component LCD_ST7789V and PIC18F26k22

Post by JAGagiano »

Hi Ben

First test and it compiled correct.
Had my SPI on the wrong port.
Correct the port and it did not compile.
Get the following message.

Copyright (C) 2019 Microchip Technology Inc.
(908) exit status = -1073741819
(908) exit status = 1

BenR
Matrix Staff
Posts: 2027
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 537 times
Been thanked: 721 times

Re: Component LCD_ST7789V and PIC18F26k22

Post by BenR »

Hello,

Please can you attach your project file that's doing this and I'll look into it for you.

Post Reply